611 |
|
} |
612 |
|
|
613 |
|
TLegend* samplecollection::allbglegend(string title="",float posx=0.65, float posy=0.60) { |
614 |
– |
// Int_t currlevel=gErrorIgnoreLevel; |
615 |
– |
// gErrorIgnoreLevel=5000; |
614 |
|
TH1F *blub = new TH1F("nothing","nothing",1,0,1); |
617 |
– |
// gErrorIgnoreLevel=currlevel;//we know this possibly replaces a previous histo, but we don't care since it's fake anyway. |
615 |
|
TLegend *leg = this->allbglegend(title,blub,posx,posy); |
616 |
< |
delete blub; |
616 |
> |
PlottingSetup::FakeHistoHeap.push_back(blub); |
617 |
|
return leg; |
618 |
|
} |
619 |
|
|