Skip to content

Commit 66d42a4

Browse files
authored
Merge pull request #35 from alibuild/alibot-cleanup-9779
Please consider the following formatting changes to AliceO2Group#9779
2 parents c339f49 + 95fd1ab commit 66d42a4

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

PWGCF/Flow/Tasks/flowGfwTask.cxx

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct FlowGfwTask {
8080
O2_DEFINE_CONFIGURABLE(cfgNoSameBunchPileup, bool, true, "kNoSameBunchPileup");
8181
O2_DEFINE_CONFIGURABLE(cfgIsGoodZvtxFT0vsPV, bool, true, "kIsGoodZvtxFT0vsPV");
8282
O2_DEFINE_CONFIGURABLE(cfgNoCollInTimeRangeStandard, bool, true, "kNoCollInTimeRangeStandard");
83-
O2_DEFINE_CONFIGURABLE(cfgEvSelkIsGoodITSLayersAll, bool, true, "kIsGoodITSLayersAll")
83+
O2_DEFINE_CONFIGURABLE(cfgEvSelkIsGoodITSLayersAll, bool, true, "kIsGoodITSLayersAll")
8484
O2_DEFINE_CONFIGURABLE(cfgOccupancy, bool, true, "Bool for event selection on detector occupancy");
8585
O2_DEFINE_CONFIGURABLE(cfgMultCut, bool, true, "Use additional event cut on mult correlations");
8686
O2_DEFINE_CONFIGURABLE(FineBinning, bool, false, "Manually change to fine binning")
@@ -558,8 +558,8 @@ struct FlowGfwTask {
558558
}
559559
registry.fill(HIST("hEventCount"), kNOCOLLINTIMERANGESTANDART);
560560
}
561-
if (cfgEvSelkIsGoodITSLayersAll){
562-
if (cfgEvSelkIsGoodITSLayersAll && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) {
561+
if (cfgEvSelkIsGoodITSLayersAll) {
562+
if (cfgEvSelkIsGoodITSLayersAll && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) {
563563
// removes dead staves of ITS
564564
return false;
565565
}
@@ -643,7 +643,6 @@ struct FlowGfwTask {
643643
}
644644
}
645645

646-
647646
// Apply process filters
648647
Filter collisionFilter = nabs(aod::collision::posZ) < cfgCutVertex && (aod::cent::centFT0C > cfgMinCentFT0C) && (aod::cent::centFT0C < cfgMaxCentFT0C);
649648
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 {
689688
}
690689

691690
const auto& foundBC = collision.foundBC_as<BCsRun3>();
692-
if (foundBC.has_zdc())
693-
{
694-
registry.fill(HIST("hEventCounterForZDC"), 1);
691+
if (foundBC.has_zdc()) {
692+
registry.fill(HIST("hEventCounterForZDC"), 1);
695693

696694
// FT0 amplitude to use in fine binning
697695
double ft0aAmp = 0;
698696
double ft0cAmp = 0;
699697
double ft0mAmp = 0;
700698

701-
if (foundBC.has_ft0()) {
699+
if (foundBC.has_ft0()) {
702700
for (const auto& amplitude : foundBC.ft0().amplitudeA()) {
703-
ft0aAmp += amplitude;
701+
ft0aAmp += amplitude;
704702
}
705703
for (const auto& amplitude : foundBC.ft0().amplitudeC()) {
706704
ft0cAmp += amplitude;
707-
}
708-
} else{
705+
}
706+
} else {
709707
ft0aAmp = ft0cAmp = -999;
710-
}
708+
}
711709

712710
registry.fill(HIST("FT0AAmp"), ft0aAmp);
713711
registry.fill(HIST("FT0CAmp"), ft0cAmp);
@@ -724,10 +722,10 @@ struct FlowGfwTask {
724722
auto aZEM1 = zdcread.amplitudeZEM1();
725723
auto aZEM2 = zdcread.amplitudeZEM2();
726724

727-
registry.fill(HIST("ZNAcoll"),aZNA);
728-
registry.fill(HIST("ZNCcoll"),aZNC);
729-
registry.fill(HIST("ZPAcoll"),aZPA);
730-
registry.fill(HIST("ZPCcoll"),aZPC);
725+
registry.fill(HIST("ZNAcoll"), aZNA);
726+
registry.fill(HIST("ZNCcoll"), aZNC);
727+
registry.fill(HIST("ZPAcoll"), aZPA);
728+
registry.fill(HIST("ZPCcoll"), aZPC);
731729

732730
registry.fill(HIST("ZNvsFT0correl"), (ft0aAmp + ft0cAmp) / 100., aZNC + aZNA);
733731

@@ -738,18 +736,18 @@ struct FlowGfwTask {
738736

739737
registry.fill(HIST("ZNvsZEMcoll"), aZEM1 + aZEM2, aZNA + aZNC);
740738

741-
if(centrality>=0 && centrality<=5){
739+
if (centrality >= 0 && centrality <= 5) {
742740
registry.fill(HIST("ZNvsZEMcoll05"), aZEM1 + aZEM2, aZNA + aZNC);
743-
}else if (centrality>5 && centrality<=10){
741+
} else if (centrality > 5 && centrality <= 10) {
744742
registry.fill(HIST("ZNvsZEMcoll510"), aZEM1 + aZEM2, aZNA + aZNC);
745-
}else if (centrality>10 && centrality<=20){
743+
} else if (centrality > 10 && centrality <= 20) {
746744
registry.fill(HIST("ZNvsZEMcoll1020"), aZEM1 + aZEM2, aZNA + aZNC);
747-
}else if (centrality>20 && centrality<=30){
745+
} else if (centrality > 20 && centrality <= 30) {
748746
registry.fill(HIST("ZNvsZEMcoll2030"), aZEM1 + aZEM2, aZNA + aZNC);
749-
}else{
747+
} else {
750748
registry.fill(HIST("ZNvsZEMcollrest"), aZEM1 + aZEM2, aZNA + aZNC);
751749
}
752-
}//End of ZDC
750+
} // End of ZDC
753751

754752
float vtxz = collision.posZ();
755753
float lRandom = fRndm->Rndm();
@@ -787,8 +785,7 @@ struct FlowGfwTask {
787785
// track loop
788786
int globalTracksNch = 0;
789787

790-
for (const auto& track : tracks)
791-
{
788+
for (const auto& track : tracks) {
792789
if (!trackSelected(track))
793790
continue;
794791

0 commit comments

Comments
 (0)