File tree Expand file tree Collapse file tree
PWGCF/GenericFramework/Tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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>
You can’t perform that action at this time.
0 commit comments