Skip to content

Commit 397df7c

Browse files
committed
codecheck
1 parent 0c2a24a commit 397df7c

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

PWGCF/GenericFramework/Tasks/flowGfwNonflow.cxx

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
#include <TF1.h>
4646
#include <TH1.h>
47+
#include <TH2.h>
4748
#include <TH3.h>
4849
#include <TNamed.h>
4950
#include <TObjArray.h>
@@ -722,22 +723,22 @@ struct FlowGfwNonflow {
722723
return -1.;
723724
}
724725
return 1. / eff;
725-
} else {
726-
auto* effHist = dynamic_cast<TH1D*>(correctionsConfig.mEfficiency);
727-
if (!effHist) {
728-
LOGF(error, "Efficiency object at %s is not a TH1D", cfgCorrections.cfgEfficiencyPath.value.c_str());
729-
return -1.;
730-
}
731-
bin = effHist->FindBin(track.pt());
732-
if (!bin) {
733-
return -1.;
734-
}
735-
const double eff = effHist->GetBinContent(bin);
736-
if (!std::isfinite(eff) || eff <= 0.) {
737-
return -1.;
738-
}
739-
return 1. / eff;
740726
}
727+
728+
auto* effHist = dynamic_cast<TH1D*>(correctionsConfig.mEfficiency);
729+
if (!effHist) {
730+
LOGF(error, "Efficiency object at %s is not a TH1D", cfgCorrections.cfgEfficiencyPath.value.c_str());
731+
return -1.;
732+
}
733+
bin = effHist->FindBin(track.pt());
734+
if (!bin) {
735+
return -1.;
736+
}
737+
const double eff = effHist->GetBinContent(bin);
738+
if (!std::isfinite(eff) || eff <= 0.) {
739+
return -1.;
740+
}
741+
return 1. / eff;
741742
}
742743

743744
template <typename TCollision>

0 commit comments

Comments
 (0)