Skip to content

Commit 2c7b45c

Browse files
author
Preet Pati
committed
Prefixed enum names
1 parent b8d1fdb commit 2c7b45c

File tree

1 file changed

+103
-103
lines changed

1 file changed

+103
-103
lines changed

PWGCF/Flow/Tasks/flowPbpbPikp.cxx

Lines changed: 103 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -160,34 +160,34 @@ struct FlowPbpbPikp {
160160
};
161161

162162
enum EventCutTypes {
163-
filteredEvents = 0,
164-
afterSel8,
165-
useNoTimeFrameBorder,
166-
useNoITSROFrameBorder,
167-
useNoSameBunchPileup,
168-
useGoodZvtxFT0vsPV,
169-
useNoCollInTimeRangeStandard,
170-
useGoodITSLayersAll,
171-
useNoCollInRofStandard,
172-
useNoHighMultCollInPrevRof,
173-
useOccupancy,
174-
useMultCorrCut,
175-
useT0AV0ACut,
176-
useVertexITSTPC,
177-
useTVXinTRD
163+
kFilteredEvents = 0,
164+
kAfterSel8,
165+
kUseNoTimeFrameBorder,
166+
kUseNoITSROFrameBorder,
167+
kUseNoSameBunchPileup,
168+
kUseGoodZvtxFT0vsPV,
169+
kUseNoCollInTimeRangeStandard,
170+
kUseGoodITSLayersAll,
171+
kUseNoCollInRofStandard,
172+
kUseNoHighMultCollInPrevRof,
173+
kUseOccupancy,
174+
kUseMultCorrCut,
175+
kUseT0AV0ACut,
176+
kUseVertexITSTPC,
177+
kUseTVXinTRD
178178
};
179179

180180
enum TrackCutTypes {
181-
filteredTracks = 0,
182-
useGlobalTracks,
183-
usePvContributor,
184-
itsClustersCut,
185-
hasTpcSignal,
186-
tpcClustersCut,
187-
tpcCrossedRowsCut,
188-
numPions,
189-
numKaons,
190-
numProtons
181+
kFilteredTracks = 0,
182+
kUseGlobalTracks,
183+
kUsePvContributor,
184+
kItsClustersCut,
185+
kHasTpcSignal,
186+
kTpcClustersCut,
187+
kTpcCrossedRowsCut,
188+
kNumPions,
189+
kNumKaons,
190+
kNumProtons
191191
};
192192

193193
int lastRunNumer = -1;
@@ -270,33 +270,33 @@ struct FlowPbpbPikp {
270270
histos.add("partCount", "", {HistType::kTHnSparseD, {{axisParticles, axisMultiplicity, axisPt}}});
271271

272272
histos.add("hEventCount", "Number of Events;; Count", {HistType::kTH1D, {{15, -0.5, 14.5}}});
273-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(filteredEvents + 1, "Filtered event");
274-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(afterSel8 + 1, "After sel8");
275-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useNoTimeFrameBorder + 1, "kNoTimeFrameBorder");
276-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useNoITSROFrameBorder + 1, "kNoITSROFrameBorder");
277-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useNoSameBunchPileup + 1, "kNoSameBunchPileup");
278-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useGoodZvtxFT0vsPV + 1, "kIsGoodZvtxFT0vsPV");
279-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useNoCollInRofStandard + 1, "kNoCollInTimeRangeStandard");
280-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useGoodITSLayersAll + 1, "kIsGoodITSLayersAll");
281-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useNoCollInRofStandard + 1, "kNoCollInRofStandard");
282-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useNoHighMultCollInPrevRof + 1, "kNoHighMultCollInPrevRof");
283-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useOccupancy + 1, "Occupancy Cut");
284-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useMultCorrCut + 1, "Multiplicity correlation Cut");
285-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useT0AV0ACut + 1, "T0AV0A cut");
286-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useVertexITSTPC + 1, "kIsVertexITSTPC");
287-
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(useTVXinTRD + 1, "kTVXinTRD");
273+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kFilteredEvents + 1, "Filtered event");
274+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kAfterSel8 + 1, "After sel8");
275+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseNoTimeFrameBorder + 1, "kNoTimeFrameBorder");
276+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseNoITSROFrameBorder + 1, "kNoITSROFrameBorder");
277+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseNoSameBunchPileup + 1, "kNoSameBunchPileup");
278+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseGoodZvtxFT0vsPV + 1, "kIsGoodZvtxFT0vsPV");
279+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseNoCollInRofStandard + 1, "kNoCollInTimeRangeStandard");
280+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseGoodITSLayersAll + 1, "kIsGoodITSLayersAll");
281+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseNoCollInRofStandard + 1, "kNoCollInRofStandard");
282+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseNoHighMultCollInPrevRof + 1, "kNoHighMultCollInPrevRof");
283+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseOccupancy + 1, "Occupancy Cut");
284+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseMultCorrCut + 1, "Multiplicity correlation Cut");
285+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseT0AV0ACut + 1, "T0AV0A cut");
286+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseVertexITSTPC + 1, "kIsVertexITSTPC");
287+
histos.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(kUseTVXinTRD + 1, "kTVXinTRD");
288288

289289
histos.add("hTrackCount", "Number of Tracks;; Count", {HistType::kTH1D, {{10, -0.5, 9.5}}});
290-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(filteredTracks + 1, "Filtered track");
291-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(useGlobalTracks + 1, "Global tracks");
292-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(usePvContributor + 1, "PV contributor");
293-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(itsClustersCut + 1, "ITS clusters");
294-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(hasTpcSignal + 1, "TPC signal");
295-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(tpcClustersCut + 1, "TPC clusters");
296-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(tpcCrossedRowsCut + 1, "TPC crossed rows");
297-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(numPions + 1, "Pions");
298-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(numKaons + 1, "Kaons");
299-
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(numProtons + 1, "Protons");
290+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kFilteredTracks + 1, "Filtered track");
291+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kUseGlobalTracks + 1, "Global tracks");
292+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kUsePvContributor + 1, "PV contributor");
293+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kItsClustersCut + 1, "ITS clusters");
294+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kHasTpcSignal + 1, "TPC signal");
295+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kTpcClustersCut + 1, "TPC clusters");
296+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kTpcCrossedRowsCut + 1, "TPC crossed rows");
297+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kNumPions + 1, "Pions");
298+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kNumKaons + 1, "Kaons");
299+
histos.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(kNumProtons + 1, "Protons");
300300

301301
if (cfgOutputNUAWeights && !cfgOutputRunByRun) {
302302
histos.add<TH3>("NUA/hPhiEtaVtxz_ref", ";#varphi;#eta;v_{z}", {HistType::kTH3D, {axisPhi, axisEta, axisVertex}});
@@ -363,7 +363,7 @@ struct FlowPbpbPikp {
363363
fFC->Initialize(oba, axisMultiplicity, cfgNbootstrap);
364364
delete oba;
365365

366-
if (eventCuts[useMultCorrCut]) {
366+
if (eventCuts[kUseMultCorrCut]) {
367367
fMultPVCutLow = new TF1("fMultPVCutLow", "[0]+[1]*x+[2]*x*x+[3]*x*x*x+[4]*x*x*x*x - 3.5*([5]+[6]*x+[7]*x*x+[8]*x*x*x+[9]*x*x*x*x)", 0, 100);
368368
fMultPVCutLow->SetParameters(3257.29, -121.848, 1.98492, -0.0172128, 6.47528e-05, 154.756, -1.86072, -0.0274713, 0.000633499, -3.37757e-06);
369369
fMultPVCutHigh = new TF1("fMultPVCutHigh", "[0]+[1]*x+[2]*x*x+[3]*x*x*x+[4]*x*x*x*x + 3.5*([5]+[6]*x+[7]*x*x+[8]*x*x*x+[9]*x*x*x*x)", 0, 100);
@@ -374,7 +374,7 @@ struct FlowPbpbPikp {
374374
fMultCutHigh = new TF1("fMultCutHigh", "[0]+[1]*x+[2]*x*x+[3]*x*x*x + 3.*([4]+[5]*x+[6]*x*x+[7]*x*x*x+[8]*x*x*x*x)", 0, 100);
375375
fMultCutHigh->SetParameters(1654.46, -47.2379, 0.449833, -0.0014125, 150.773, -3.67334, 0.0530503, -0.000614061, 3.15956e-06);
376376
}
377-
if (eventCuts[useT0AV0ACut]) {
377+
if (eventCuts[kUseT0AV0ACut]) {
378378
fT0AV0AMean = new TF1("fT0AV0AMean", "[0]+[1]*x", 0, 200000);
379379
fT0AV0AMean->SetParameters(-1601.0581, 9.417652e-01);
380380
fT0AV0ASigma = new TF1("fT0AV0ASigma", "[0]+[1]*x+[2]*x*x+[3]*x*x*x+[4]*x*x*x*x", 0, 200000);
@@ -429,37 +429,37 @@ struct FlowPbpbPikp {
429429
template <typename TTrack>
430430
bool selectionTrack(const TTrack& track)
431431
{
432-
histos.fill(HIST("hTrackCount"), filteredTracks); // Filtered tracks
432+
histos.fill(HIST("hTrackCount"), kFilteredTracks); // Filtered tracks
433433
if (cfgUseGlobalTrack && !(track.isGlobalTrack())) {
434434
return 0;
435435
}
436436
if (cfgUseGlobalTrack)
437-
histos.fill(HIST("hTrackCount"), useGlobalTracks); // After global track selection
437+
histos.fill(HIST("hTrackCount"), kUseGlobalTracks); // After global track selection
438438

439439
if (!(track.isPVContributor())) {
440440
return 0;
441441
}
442-
histos.fill(HIST("hTrackCount"), usePvContributor); // After PV contributor selection
442+
histos.fill(HIST("hTrackCount"), kUsePvContributor); // After PV contributor selection
443443

444444
if (!(track.itsNCls() > cfgITScluster)) {
445445
return 0;
446446
}
447-
histos.fill(HIST("hTrackCount"), itsClustersCut); // After ITS cluster selection
447+
histos.fill(HIST("hTrackCount"), kItsClustersCut); // After ITS cluster selection
448448

449449
if (!(track.hasTPC())) {
450450
return 0;
451451
}
452-
histos.fill(HIST("hTrackCount"), hasTpcSignal); // If track has TPC signal
452+
histos.fill(HIST("hTrackCount"), kHasTpcSignal); // If track has TPC signal
453453

454454
if (!(track.tpcNClsFound() > cfgTpcCluster)) {
455455
return 0;
456456
}
457-
histos.fill(HIST("hTrackCount"), tpcClustersCut); // After TPC cluster selection
457+
histos.fill(HIST("hTrackCount"), kTpcClustersCut); // After TPC cluster selection
458458

459459
if (!(track.tpcNClsCrossedRows() > cfgTpcCrossRows)) {
460460
return 0;
461461
}
462-
histos.fill(HIST("hTrackCount"), tpcCrossedRowsCut); // After TPC crossed rows selection
462+
histos.fill(HIST("hTrackCount"), kTpcCrossedRowsCut); // After TPC crossed rows selection
463463
return 1;
464464
}
465465

@@ -473,7 +473,7 @@ struct FlowPbpbPikp {
473473
histos.fill(HIST("TofTpcNsigma_after"), pidIndex - 1, track.tpcNSigmaPi(), track.tofNSigmaPi(), track.pt());
474474
if (cfgUseItsPID)
475475
histos.fill(HIST("TofItsNsigma_after"), pidIndex - 1, itsResponse.nSigmaITS<o2::track::PID::Pion>(track), track.tofNSigmaPi(), track.pt());
476-
histos.fill(HIST("hTrackCount"), numPions); // Pion count
476+
histos.fill(HIST("hTrackCount"), kNumPions); // Pion count
477477
if (!cfgAcceptance.value.empty() && cfgUseWeightPhiEtaVtxz)
478478
histos.fill(HIST("PhiCorrected/hPhiEtaVtxz_pi_corrd"), track.phi(), track.eta(), collision.posZ(), wacc); // pion weights
479479
if (!cfgAcceptance.value.empty() && cfgUseWeightPhiPtCent)
@@ -486,7 +486,7 @@ struct FlowPbpbPikp {
486486
histos.fill(HIST("TofTpcNsigma_after"), pidIndex - 1, track.tpcNSigmaKa(), track.tofNSigmaKa(), track.pt());
487487
if (cfgUseItsPID)
488488
histos.fill(HIST("TofItsNsigma_after"), pidIndex - 1, itsResponse.nSigmaITS<o2::track::PID::Kaon>(track), track.tofNSigmaKa(), track.pt());
489-
histos.fill(HIST("hTrackCount"), numKaons); // Kaon count
489+
histos.fill(HIST("hTrackCount"), kNumKaons); // Kaon count
490490
if (!cfgAcceptance.value.empty() && cfgUseWeightPhiEtaVtxz)
491491
histos.fill(HIST("PhiCorrected/hPhiEtaVtxz_ka_corrd"), track.phi(), track.eta(), collision.posZ(), wacc); // kaon weights
492492
if (!cfgAcceptance.value.empty() && cfgUseWeightPhiPtCent)
@@ -499,7 +499,7 @@ struct FlowPbpbPikp {
499499
histos.fill(HIST("TofTpcNsigma_after"), pidIndex - 1, track.tpcNSigmaPr(), track.tofNSigmaPr(), track.pt());
500500
if (cfgUseItsPID)
501501
histos.fill(HIST("TofItsNsigma_after"), pidIndex - 1, itsResponse.nSigmaITS<o2::track::PID::Proton>(track), track.tofNSigmaPr(), track.pt());
502-
histos.fill(HIST("hTrackCount"), numProtons); // Proton count
502+
histos.fill(HIST("hTrackCount"), kNumProtons); // Proton count
503503
if (!cfgAcceptance.value.empty() && cfgUseWeightPhiEtaVtxz)
504504
histos.fill(HIST("PhiCorrected/hPhiEtaVtxz_pr_corrd"), track.phi(), track.eta(), collision.posZ(), wacc); // proton weights
505505
if (!cfgAcceptance.value.empty() && cfgUseWeightPhiPtCent)
@@ -775,70 +775,70 @@ struct FlowPbpbPikp {
775775
template <typename TCollision>
776776
bool selectionEvent(TCollision collision, const int mult, const float cent)
777777
{
778-
histos.fill(HIST("hEventCount"), filteredEvents);
778+
histos.fill(HIST("hEventCount"), kFilteredEvents);
779779
if (!collision.sel8()) {
780780
return 0;
781781
}
782-
histos.fill(HIST("hEventCount"), afterSel8);
782+
histos.fill(HIST("hEventCount"), kAfterSel8);
783783

784-
if (eventCuts[useNoTimeFrameBorder] && !collision.selection_bit(aod::evsel::kNoTimeFrameBorder)) {
784+
if (eventCuts[kUseNoTimeFrameBorder] && !collision.selection_bit(aod::evsel::kNoTimeFrameBorder)) {
785785
return 0;
786786
}
787-
if (eventCuts[useNoTimeFrameBorder])
788-
histos.fill(HIST("hEventCount"), useNoTimeFrameBorder);
787+
if (eventCuts[kUseNoTimeFrameBorder])
788+
histos.fill(HIST("hEventCount"), kUseNoTimeFrameBorder);
789789

790-
if (eventCuts[useNoITSROFrameBorder] && !collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) {
790+
if (eventCuts[kUseNoITSROFrameBorder] && !collision.selection_bit(aod::evsel::kNoITSROFrameBorder)) {
791791
return 0;
792792
}
793-
if (eventCuts[useNoITSROFrameBorder])
794-
histos.fill(HIST("hEventCount"), useNoITSROFrameBorder);
793+
if (eventCuts[kUseNoITSROFrameBorder])
794+
histos.fill(HIST("hEventCount"), kUseNoITSROFrameBorder);
795795

796-
if (eventCuts[useNoSameBunchPileup] && !collision.selection_bit(aod::evsel::kNoSameBunchPileup)) {
796+
if (eventCuts[kUseNoSameBunchPileup] && !collision.selection_bit(aod::evsel::kNoSameBunchPileup)) {
797797
return 0;
798798
}
799-
if (eventCuts[useNoSameBunchPileup])
800-
histos.fill(HIST("hEventCount"), useNoSameBunchPileup);
799+
if (eventCuts[kUseNoSameBunchPileup])
800+
histos.fill(HIST("hEventCount"), kUseNoSameBunchPileup);
801801

802-
if (eventCuts[useGoodZvtxFT0vsPV] && !collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) {
802+
if (eventCuts[kUseGoodZvtxFT0vsPV] && !collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) {
803803
return 0;
804804
}
805-
if (eventCuts[useGoodZvtxFT0vsPV])
806-
histos.fill(HIST("hEventCount"), useGoodZvtxFT0vsPV);
805+
if (eventCuts[kUseGoodZvtxFT0vsPV])
806+
histos.fill(HIST("hEventCount"), kUseGoodZvtxFT0vsPV);
807807

808-
if (eventCuts[useNoCollInTimeRangeStandard] && !collision.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard)) {
808+
if (eventCuts[kUseNoCollInTimeRangeStandard] && !collision.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard)) {
809809
return 0;
810810
}
811-
if (eventCuts[useNoCollInTimeRangeStandard])
812-
histos.fill(HIST("hEventCount"), useNoCollInTimeRangeStandard);
811+
if (eventCuts[kUseNoCollInTimeRangeStandard])
812+
histos.fill(HIST("hEventCount"), kUseNoCollInTimeRangeStandard);
813813

814-
if (eventCuts[useGoodITSLayersAll] && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) {
814+
if (eventCuts[kUseGoodITSLayersAll] && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayersAll)) {
815815
return 0;
816816
}
817-
if (eventCuts[useGoodITSLayersAll])
818-
histos.fill(HIST("hEventCount"), useGoodITSLayersAll);
817+
if (eventCuts[kUseGoodITSLayersAll])
818+
histos.fill(HIST("hEventCount"), kUseGoodITSLayersAll);
819819

820-
if (eventCuts[useNoCollInRofStandard] && !collision.selection_bit(o2::aod::evsel::kNoCollInRofStandard)) {
820+
if (eventCuts[kUseNoCollInRofStandard] && !collision.selection_bit(o2::aod::evsel::kNoCollInRofStandard)) {
821821
return 0;
822822
}
823-
if (eventCuts[useNoCollInRofStandard])
824-
histos.fill(HIST("hEventCount"), useNoCollInRofStandard);
823+
if (eventCuts[kUseNoCollInRofStandard])
824+
histos.fill(HIST("hEventCount"), kUseNoCollInRofStandard);
825825

826-
if (eventCuts[useNoHighMultCollInPrevRof] && !collision.selection_bit(o2::aod::evsel::kNoHighMultCollInPrevRof)) {
826+
if (eventCuts[kUseNoHighMultCollInPrevRof] && !collision.selection_bit(o2::aod::evsel::kNoHighMultCollInPrevRof)) {
827827
return 0;
828828
}
829-
if (eventCuts[useNoHighMultCollInPrevRof])
830-
histos.fill(HIST("hEventCount"), useNoHighMultCollInPrevRof);
829+
if (eventCuts[kUseNoHighMultCollInPrevRof])
830+
histos.fill(HIST("hEventCount"), kUseNoHighMultCollInPrevRof);
831831

832832
auto multNTracksPV = collision.multNTracksPV();
833833
auto occupancy = collision.trackOccupancyInTimeRange();
834834

835-
if (eventCuts[useOccupancy] && (occupancy < cfgCutOccupancyMin || occupancy > cfgCutOccupancyMax)) {
835+
if (eventCuts[kUseOccupancy] && (occupancy < cfgCutOccupancyMin || occupancy > cfgCutOccupancyMax)) {
836836
return 0;
837837
}
838-
if (eventCuts[useOccupancy])
839-
histos.fill(HIST("hEventCount"), useOccupancy);
838+
if (eventCuts[kUseOccupancy])
839+
histos.fill(HIST("hEventCount"), kUseOccupancy);
840840

841-
if (eventCuts[useMultCorrCut]) {
841+
if (eventCuts[kUseMultCorrCut]) {
842842
if (multNTracksPV < fMultPVCutLow->Eval(cent))
843843
return 0;
844844
if (multNTracksPV > fMultPVCutHigh->Eval(cent))
@@ -848,25 +848,25 @@ struct FlowPbpbPikp {
848848
if (mult > fMultCutHigh->Eval(cent))
849849
return 0;
850850
}
851-
if (eventCuts[useMultCorrCut])
852-
histos.fill(HIST("hEventCount"), useMultCorrCut);
851+
if (eventCuts[kUseMultCorrCut])
852+
histos.fill(HIST("hEventCount"), kUseMultCorrCut);
853853

854854
// V0A T0A 5 sigma cut
855-
if (eventCuts[useT0AV0ACut] && (std::fabs(collision.multFV0A() - fT0AV0AMean->Eval(collision.multFT0A())) > cfgV0AT0Acut * fT0AV0ASigma->Eval(collision.multFT0A())))
855+
if (eventCuts[kUseT0AV0ACut] && (std::fabs(collision.multFV0A() - fT0AV0AMean->Eval(collision.multFT0A())) > cfgV0AT0Acut * fT0AV0ASigma->Eval(collision.multFT0A())))
856856
return 0;
857-
if (eventCuts[useT0AV0ACut])
858-
histos.fill(HIST("hEventCount"), useT0AV0ACut);
857+
if (eventCuts[kUseT0AV0ACut])
858+
histos.fill(HIST("hEventCount"), kUseT0AV0ACut);
859859

860-
if (eventCuts[useVertexITSTPC] && !collision.selection_bit(o2::aod::evsel::kIsVertexITSTPC))
860+
if (eventCuts[kUseVertexITSTPC] && !collision.selection_bit(o2::aod::evsel::kIsVertexITSTPC))
861861
return 0;
862-
if (eventCuts[useVertexITSTPC])
863-
histos.fill(HIST("hEventCount"), useVertexITSTPC);
862+
if (eventCuts[kUseVertexITSTPC])
863+
histos.fill(HIST("hEventCount"), kUseVertexITSTPC);
864864

865-
if (eventCuts[useTVXinTRD] && collision.alias_bit(kTVXinTRD)) {
865+
if (eventCuts[kUseTVXinTRD] && collision.alias_bit(kTVXinTRD)) {
866866
return 0;
867867
}
868-
if (eventCuts[useTVXinTRD])
869-
histos.fill(HIST("hEventCount"), useTVXinTRD);
868+
if (eventCuts[kUseTVXinTRD])
869+
histos.fill(HIST("hEventCount"), kUseTVXinTRD);
870870

871871
return 1;
872872
}

0 commit comments

Comments
 (0)