1212// / \since May 2024
1313// o2-linter: disable='doc/file'
1414
15- #include < experimental/type_traits>
16- #include < string>
17- #include < TFile.h>
18- #include < THn.h>
19-
20- #include " Framework/AnalysisTask.h"
21- #include " Framework/ASoAHelpers.h"
22- #include " Framework/RunningWorkflowInfo.h"
23- #include " Framework/HistogramRegistry.h"
15+ #include " PWGCF/DataModel/CorrelationsDerived.h"
16+ #include " PWGCF/JCorran/DataModel/JCatalyst.h"
2417
25- #include " Common/DataModel/EventSelection.h"
2618#include " Common/Core/TrackSelection.h"
27- #include " Common/DataModel/TrackSelectionTables.h"
2819#include " Common/DataModel/Centrality.h"
29- #include " ReconstructionDataFormats/V0.h"
20+ #include " Common/DataModel/EventSelection.h"
21+ #include " Common/DataModel/TrackSelectionTables.h"
3022
3123#include " CCDB/BasicCCDBManager.h"
32-
33- #include " PWGCF/JCorran/DataModel/JCatalyst.h"
34- #include " PWGCF/DataModel/CorrelationsDerived.h"
24+ #include " Framework/ASoAHelpers.h"
25+ #include " Framework/AnalysisTask.h"
26+ #include " Framework/HistogramRegistry.h"
27+ #include " Framework/RunningWorkflowInfo.h"
3528#include " Framework/runDataProcessing.h"
29+ #include " ReconstructionDataFormats/V0.h"
30+
31+ #include < TFile.h>
32+ #include < THn.h>
33+
34+ #include < experimental/type_traits>
35+ #include < string>
3636
3737using namespace o2 ;
3838using namespace o2 ::framework;
@@ -50,7 +50,7 @@ struct JflucWeightsLoader {
5050
5151 THnF* ph = 0 ;
5252 TFile* pf = 0 ;
53- THnD * pheff = 0 ;
53+ THnF * pheff = 0 ;
5454 TFile* pfeff = 0 ;
5555 int runNumber = 0 ;
5656 int timestamp = 0 ;
@@ -108,7 +108,6 @@ struct JflucWeightsLoader {
108108 useCCDB = false ;
109109 } else {
110110 LOGF (info, " Didn't find \" local://\" or \" ccdb\" for non-uniform acceptance corrections." );
111- return ;
112111 }
113112
114113 if (cfgPathEffWeights.value .substr (0 , 8 ) == " local://" ) {
@@ -118,16 +117,13 @@ struct JflucWeightsLoader {
118117 delete pfeff;
119118 pfeff = 0 ;
120119 LOGF (fatal, " Efficiency correction weights file not found: %s" , cfgPathEffWeights.value .substr (8 ).c_str ());
121- }
122- //
123- if (!(pheff = pfeff->Get <THnD>(" ccdb_object" ))) {
120+ } else if (!(pheff = pfeff->Get <THnF>(" ccdb_object" ))) {
124121 LOGF (warning, " Efficiency correction histogram not found." );
125122 } else {
126123 LOGF (info, " Loaded efficiency correction histogram locally." );
127124 }
128125 } else {
129126 LOGF (info, " Didn't find \" local://\" or \" ccdb\" for efficiency corrections." );
130- return ;
131127 }
132128 }
133129
0 commit comments