@@ -180,6 +180,7 @@ struct RadialFlowDecorr {
180180 Configurable<bool > cfgEvSelkNoITSROFrameBorder{" cfgEvSelkNoITSROFrameBorder" , true , " ITSROFrame border event selection cut" };
181181 Configurable<bool > cfgEvSelkNoTimeFrameBorder{" cfgEvSelkNoTimeFrameBorder" , true , " TimeFrame border event selection cut" };
182182 Configurable<int > cfgSys{" cfgSys" , 2 , " Efficiency to be used for which wystem? 1-->PbPb, 2-->OO, 3-->pPb, 4-->pp" };
183+ Configurable<bool > cfgFlat{" cfgFlat" , true , " Whether to use flattening weights or not" };
183184
184185 Service<ccdb::BasicCCDBManager> ccdb;
185186 Service<o2::framework::O2DatabasePDG> pdg;
@@ -408,17 +409,17 @@ struct RadialFlowDecorr {
408409
409410 float getFlatteningWeight (float cent, float eta, float phi, PID pidType) const
410411 {
411- /*
412412 TH3F* h = hWeightMap3D[pidType];
413413 if (!h)
414414 return -1 ;
415415 const int ibx = h->GetXaxis ()->FindBin (cent);
416416 const int iby = h->GetYaxis ()->FindBin (eta);
417417 const int ibz = h->GetZaxis ()->FindBin (phi);
418418 float val = h->GetBinContent (ibx, iby, ibz);
419- return val;
420- */
421- return 1.0 ;// set to 1 for now, will be restored later
419+ if (cfgFlat)
420+ return val;
421+ else
422+ return 1.0 ;
422423 }
423424
424425 template <int KIntM, int KIntK>
@@ -793,10 +794,18 @@ struct RadialFlowDecorr {
793794 declareCommonQA ();
794795
795796 std::string userCcdbPath;
796- if (cfgSys==1 ) userCcdbPath = " /Users/s/somadutt/PbPbTest/" ;
797- if (cfgSys==2 ) userCcdbPath = " /Users/s/somadutt/OOTest/" ;
798- if (cfgSys==3 ) userCcdbPath = " /Users/s/somadutt/pPbTest/" ;
799- if (cfgSys==4 ) userCcdbPath = " /Users/s/somadutt/ppTest/" ;
797+ if (cfgSys == 1 ) {
798+ userCcdbPath = " /Users/s/somadutt/PbPbTest/" ;
799+ }
800+ if (cfgSys == 2 ) {
801+ userCcdbPath = " /Users/s/somadutt/OOTest/" ;
802+ }
803+ if (cfgSys == 3 ) {
804+ userCcdbPath = " /Users/s/somadutt/pPbTest/" ;
805+ }
806+ if (cfgSys == 4 ) {
807+ userCcdbPath = " /Users/s/somadutt/ppTest/" ;
808+ }
800809
801810 if (cfgRunMCMean || cfgRunMCFluc || cfgRunGetEff) {
802811 declareMCCommonHists ();
@@ -865,7 +874,7 @@ struct RadialFlowDecorr {
865874
866875 loadEffFakeForPID (kInclusive );
867876 loadEffFakeForPID (kCombinedPID );
868- /*
877+
869878 const bool isDataRun = cfgRunDataMean || cfgRunDataFluc;
870879 if (isDataRun) {
871880 LOGF (info, " Data Run: Loading flattening maps from CCDB path: %s" , userCcdbPath.c_str ());
@@ -902,7 +911,6 @@ struct RadialFlowDecorr {
902911 loadFlatForPID (kInclusive );
903912 loadFlatForPID (kCombinedPID );
904913 }
905- */
906914 }
907915
908916 auto loadTProfile3DFromCCDB = [&](const std::string& ccdbPath, const char * objName, TProfile3D*& target) {
0 commit comments