Skip to content

Commit 1af706f

Browse files
committed
Remove redundant ProfileSubset clone
1 parent f26cc04 commit 1af706f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

PWGCF/GenericFramework/Core/FlowContainer.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,6 @@ TH1D* FlowContainer::GetCorrXXVsPt(const char* order, double lminmulti, double l
426426
}
427427
if (lmaxmulti > lminmulti)
428428
maxm = fProf->GetXaxis()->FindBin(lmaxmulti - 0.001);
429-
ProfileSubset* rhProfSub = new ProfileSubset(*fProf);
430429
TString l_name("");
431430
Ssiz_t l_pos = 0;
432431
while (fIDName.Tokenize(l_name, l_pos)) {
@@ -439,18 +438,15 @@ TH1D* FlowContainer::GetCorrXXVsPt(const char* order, double lminmulti, double l
439438
return nullptr;
440439
}
441440
const TString temporaryTag = Form("%s_%s_%.3f_%.3f", fIDName.Data(), order, lminmulti, lmaxmulti);
442-
TProfile* profY = rhProfSub->ProfileY(Form("profY_%s", temporaryTag.Data()), minm, maxm);
441+
TProfile* profY = fProf->ProfileY(Form("profY_%s", temporaryTag.Data()), minm, maxm);
443442
TH1D* histY = ProfToHist(profY);
444443
delete profY;
445444
TH1D* hist = new TH1D(Form("temphist_%s", temporaryTag.Data()), "temphist", fNbinsPt, fbinsPt);
446445
for (int ibin = 1; ibin <= hist->GetNbinsX(); ibin++) {
447-
TString bLabel = rhProfSub->GetYaxis()->GetBinLabel(ibin + ybn1 - 1);
448-
// hist->GetXaxis()->SetBinLabel(ibin, bLabel.Data());
449446
hist->SetBinContent(ibin, histY->GetBinContent(ibin + ybn1 - 1));
450447
hist->SetBinError(ibin, histY->GetBinError(ibin + ybn1 - 1));
451448
}
452449
delete histY;
453-
delete rhProfSub;
454450
return hist;
455451
}
456452
return nullptr;

0 commit comments

Comments
 (0)