Skip to content

Commit bc1e18c

Browse files
Fixed two O2_linter error
1 parent 9947ac8 commit bc1e18c

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ struct V0ptHadPiKaProt {
9393
kTOF,
9494
kITS
9595
};
96+
enum CentralityEstimator {
97+
kFT0C = 0,
98+
kFT0A,
99+
kFT0M,
100+
kFV0A
101+
};
96102

97103
Configurable<float> cfgCutVertex{"cfgCutVertex", 10.0f, "Accepted z-vertex range"};
98104
Configurable<float> cfgCutTpcChi2NCl{"cfgCutTpcChi2NCl", 2.5f, "Maximum TPCchi2NCl"};
@@ -116,7 +122,7 @@ struct V0ptHadPiKaProt {
116122
Configurable<float> cfgCutEtaLeft{"cfgCutEtaLeft", 0.8f, "Left end of eta gap"};
117123
Configurable<float> cfgCutEtaRight{"cfgCutEtaRight", 0.8f, "Right end of eta gap"};
118124
Configurable<int> cfgNSubsample{"cfgNSubsample", 10, "Number of subsamples"};
119-
Configurable<int> cfgCentralityChoice{"cfgCentralityChoice", 1, "Which centrality estimator? 1-->FT0C, 2-->FT0A, 3-->FT0M, 4-->FV0A"};
125+
Configurable<int> cfgCentralityChoice{"cfgCentralityChoice", 0, "Which centrality estimator? 0-->FT0C, 1-->FT0A, 2-->FT0M, 3-->FV0A"};
120126
Configurable<bool> cfgEvSelkNoSameBunchPileup{"cfgEvSelkNoSameBunchPileup", true, "Pileup removal"};
121127
Configurable<bool> cfgUseGoodITSLayerAllCut{"cfgUseGoodITSLayerAllCut", true, "Remove time interval with dead ITS zone"};
122128
Configurable<bool> cfgEvSelkNoITSROFrameBorder{"cfgEvSelkNoITSROFrameBorder", true, "ITSROFrame border event selection cut"};
@@ -461,13 +467,13 @@ struct V0ptHadPiKaProt {
461467

462468
// Centrality
463469
double cent = 0.0;
464-
if (cfgCentralityChoice == 1)
470+
if (cfgCentralityChoice == kFT0C)
465471
cent = coll.centFT0C();
466-
else if (cfgCentralityChoice == 2)
472+
else if (cfgCentralityChoice == kFT0A)
467473
cent = coll.centFT0A();
468-
else if (cfgCentralityChoice == 3)
474+
else if (cfgCentralityChoice == kFT0M)
469475
cent = coll.centFT0M();
470-
else if (cfgCentralityChoice == 4)
476+
else if (cfgCentralityChoice == kFV0A)
471477
cent = coll.centFV0A();
472478

473479
histos.fill(HIST("hZvtx_after_sel"), coll.posZ());
@@ -552,11 +558,11 @@ struct V0ptHadPiKaProt {
552558

553559
if (cfgUseRun3V2PID) {
554560
int pidVal = getNsigmaPID(track);
555-
if (pidVal == 1)
561+
if (pidVal == PIONS + 1)
556562
isPion = true;
557-
if (pidVal == 2)
563+
if (pidVal == KAONS + 1)
558564
isKaon = true;
559-
if (pidVal == 3)
565+
if (pidVal == PROTONS + 1)
560566
isProton = true;
561567
} else {
562568
isPion = selectionPion(track);

0 commit comments

Comments
 (0)