Skip to content

Commit 2d78c2f

Browse files
committed
Implement updates for multi-system ana
1 parent 50f0282 commit 2d78c2f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

PWGCF/EbyEFluctuations/Tasks/radialFlowDecorr.cxx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ struct RadialFlowDecorr {
179179
Configurable<bool> cfgUseGoodITSLayerAllCut{"cfgUseGoodITSLayerAllCut", true, "Remove time interval with dead ITS zone"};
180180
Configurable<bool> cfgEvSelkNoITSROFrameBorder{"cfgEvSelkNoITSROFrameBorder", true, "ITSROFrame border event selection cut"};
181181
Configurable<bool> cfgEvSelkNoTimeFrameBorder{"cfgEvSelkNoTimeFrameBorder", true, "TimeFrame border event selection cut"};
182+
Configurable<int> cfgSys{"cfgSys", 2, "Efficiency to be used for which wystem? 1-->PbPb, 2-->OO, 3-->pPb, 4-->pp"};
182183

183184
Service<ccdb::BasicCCDBManager> ccdb;
184185
Service<o2::framework::O2DatabasePDG> pdg;
@@ -407,6 +408,7 @@ struct RadialFlowDecorr {
407408

408409
float getFlatteningWeight(float cent, float eta, float phi, PID pidType) const
409410
{
411+
/*
410412
TH3F* h = hWeightMap3D[pidType];
411413
if (!h)
412414
return -1;
@@ -415,6 +417,8 @@ struct RadialFlowDecorr {
415417
const int ibz = h->GetZaxis()->FindBin(phi);
416418
float val = h->GetBinContent(ibx, iby, ibz);
417419
return val;
420+
*/
421+
return 1.0;//set to 1 for now, will be restored later
418422
}
419423

420424
template <int KIntM, int KIntK>
@@ -788,7 +792,11 @@ struct RadialFlowDecorr {
788792

789793
declareCommonQA();
790794

791-
const std::string userCcdbPath = "/Users/s/somadutt/PbPbTest/";
795+
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/";
792800

793801
if (cfgRunMCMean || cfgRunMCFluc || cfgRunGetEff) {
794802
declareMCCommonHists();
@@ -857,7 +865,7 @@ struct RadialFlowDecorr {
857865

858866
loadEffFakeForPID(kInclusive);
859867
loadEffFakeForPID(kCombinedPID);
860-
868+
/*
861869
const bool isDataRun = cfgRunDataMean || cfgRunDataFluc;
862870
if (isDataRun) {
863871
LOGF(info, "Data Run: Loading flattening maps from CCDB path: %s", userCcdbPath.c_str());
@@ -894,6 +902,7 @@ struct RadialFlowDecorr {
894902
loadFlatForPID(kInclusive);
895903
loadFlatForPID(kCombinedPID);
896904
}
905+
*/
897906
}
898907

899908
auto loadTProfile3DFromCCDB = [&](const std::string& ccdbPath, const char* objName, TProfile3D*& target) {

0 commit comments

Comments
 (0)