diff --git a/PWGCF/Flow/Tasks/flowGfwTask.cxx b/PWGCF/Flow/Tasks/flowGfwTask.cxx index cabfc65586b..269fd7f1d4a 100644 --- a/PWGCF/Flow/Tasks/flowGfwTask.cxx +++ b/PWGCF/Flow/Tasks/flowGfwTask.cxx @@ -80,7 +80,7 @@ struct FlowGfwTask { O2_DEFINE_CONFIGURABLE(cfgNoSameBunchPileup, bool, true, "kNoSameBunchPileup"); O2_DEFINE_CONFIGURABLE(cfgIsGoodZvtxFT0vsPV, bool, true, "kIsGoodZvtxFT0vsPV"); O2_DEFINE_CONFIGURABLE(cfgNoCollInTimeRangeStandard, bool, true, "kNoCollInTimeRangeStandard"); - O2_DEFINE_CONFIGURABLE(cfgEvSelkIsGoodITSLayersAll, bool, true, "kIsGoodITSLayersAll") + O2_DEFINE_CONFIGURABLE(cfgEvSelkIsGoodITSLayersAll, bool, true, "kIsGoodITSLayersAll") O2_DEFINE_CONFIGURABLE(cfgOccupancy, bool, true, "Bool for event selection on detector occupancy"); O2_DEFINE_CONFIGURABLE(cfgMultCut, bool, true, "Use additional event cut on mult correlations"); O2_DEFINE_CONFIGURABLE(FineBinning, bool, false, "Manually change to fine binning") @@ -558,8 +558,8 @@ struct FlowGfwTask { } registry.fill(HIST("hEventCount"), kNOCOLLINTIMERANGESTANDART); } - if (cfgEvSelkIsGoodITSLayersAll){ - if (cfgEvSelkIsGoodITSLayersAll && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) { + if (cfgEvSelkIsGoodITSLayersAll) { + if (cfgEvSelkIsGoodITSLayersAll && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) { // removes dead staves of ITS return false; } @@ -643,7 +643,6 @@ struct FlowGfwTask { } } - // Apply process filters Filter collisionFilter = nabs(aod::collision::posZ) < cfgCutVertex && (aod::cent::centFT0C > cfgMinCentFT0C) && (aod::cent::centFT0C < cfgMaxCentFT0C); Filter trackFilter = (nabs(aod::track::eta) < cfgCutEta) && (aod::track::pt > cfgCutPtMin) && (aod::track::pt < cfgCutPtMax) && ((requireGlobalTrackInFilter()) || (aod::track::isGlobalTrackSDD == (uint8_t) true)) && (aod::track::tpcChi2NCl < cfgCutChi2prTPCcls) && (nabs(aod::track::dcaZ) < cfgCutDCAz) && (nabs(aod::track::dcaXY) < cfgCutDCAxy); @@ -689,25 +688,24 @@ struct FlowGfwTask { } const auto& foundBC = collision.foundBC_as(); - if (foundBC.has_zdc()) - { - registry.fill(HIST("hEventCounterForZDC"), 1); + if (foundBC.has_zdc()) { + registry.fill(HIST("hEventCounterForZDC"), 1); // FT0 amplitude to use in fine binning double ft0aAmp = 0; double ft0cAmp = 0; double ft0mAmp = 0; - if (foundBC.has_ft0()) { + if (foundBC.has_ft0()) { for (const auto& amplitude : foundBC.ft0().amplitudeA()) { - ft0aAmp += amplitude; + ft0aAmp += amplitude; } for (const auto& amplitude : foundBC.ft0().amplitudeC()) { ft0cAmp += amplitude; - } - } else{ + } + } else { ft0aAmp = ft0cAmp = -999; - } + } registry.fill(HIST("FT0AAmp"), ft0aAmp); registry.fill(HIST("FT0CAmp"), ft0cAmp); @@ -724,10 +722,10 @@ struct FlowGfwTask { auto aZEM1 = zdcread.amplitudeZEM1(); auto aZEM2 = zdcread.amplitudeZEM2(); - registry.fill(HIST("ZNAcoll"),aZNA); - registry.fill(HIST("ZNCcoll"),aZNC); - registry.fill(HIST("ZPAcoll"),aZPA); - registry.fill(HIST("ZPCcoll"),aZPC); + registry.fill(HIST("ZNAcoll"), aZNA); + registry.fill(HIST("ZNCcoll"), aZNC); + registry.fill(HIST("ZPAcoll"), aZPA); + registry.fill(HIST("ZPCcoll"), aZPC); registry.fill(HIST("ZNvsFT0correl"), (ft0aAmp + ft0cAmp) / 100., aZNC + aZNA); @@ -738,18 +736,18 @@ struct FlowGfwTask { registry.fill(HIST("ZNvsZEMcoll"), aZEM1 + aZEM2, aZNA + aZNC); - if(centrality>=0 && centrality<=5){ + if (centrality >= 0 && centrality <= 5) { registry.fill(HIST("ZNvsZEMcoll05"), aZEM1 + aZEM2, aZNA + aZNC); - }else if (centrality>5 && centrality<=10){ + } else if (centrality > 5 && centrality <= 10) { registry.fill(HIST("ZNvsZEMcoll510"), aZEM1 + aZEM2, aZNA + aZNC); - }else if (centrality>10 && centrality<=20){ + } else if (centrality > 10 && centrality <= 20) { registry.fill(HIST("ZNvsZEMcoll1020"), aZEM1 + aZEM2, aZNA + aZNC); - }else if (centrality>20 && centrality<=30){ + } else if (centrality > 20 && centrality <= 30) { registry.fill(HIST("ZNvsZEMcoll2030"), aZEM1 + aZEM2, aZNA + aZNC); - }else{ + } else { registry.fill(HIST("ZNvsZEMcollrest"), aZEM1 + aZEM2, aZNA + aZNC); } - }//End of ZDC + } // End of ZDC float vtxz = collision.posZ(); float lRandom = fRndm->Rndm(); @@ -787,8 +785,7 @@ struct FlowGfwTask { // track loop int globalTracksNch = 0; - for (const auto& track : tracks) - { + for (const auto& track : tracks) { if (!trackSelected(track)) continue;