Skip to content

Commit e1fc40b

Browse files
Rename rapidityCut configurable and fix O2Linter errors
1 parent 7ad8a90 commit e1fc40b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGLF/Tasks/QC/mcParticlePrediction.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ struct mcParticlePrediction {
180180
"Estimators enabled"};
181181
Configurable<bool> selectInelGt0{"selectInelGt0", true, "Select only inelastic events"};
182182
Configurable<bool> selectPrimaries{"selectPrimaries", true, "Select only primary particles"};
183+
Configurable<float> rapidityCut{"rapidityCut", 0.5, "Select only particles within |y| < cut"};
183184
Configurable<bool> requireCoincidenceEstimators{"requireCoincidenceEstimators", false, "Asks for a coincidence when two estimators are used"};
184185
Configurable<bool> discardkIsGoodZvtxFT0vsPV{"discardkIsGoodZvtxFT0vsPV", false, "Select only collisions with matching BC and MC BC"};
185186
Configurable<bool> discardMismatchedBCs{"discardMismatchedBCs", false, "Select only collisions with matching BC and MC BC"};
@@ -194,7 +195,6 @@ struct mcParticlePrediction {
194195
Configurable<bool> enableVsEta05Histograms{"enableVsEta05Histograms", true, "Enables the correlation between ETA05 and other estimators"};
195196
Configurable<bool> enableVsEta08Histograms{"enableVsEta08Histograms", true, "Enables the correlation between ETA08 and other estimators"};
196197
Configurable<bool> enableVsImpactParameterHistograms{"enableVsImpactParameterHistograms", true, "Enables the correlation between impact parameter and other estimators"};
197-
Configurable<float> rapidityMother{"rapidityMother", 0.5, "Mother particle rapidity"};
198198

199199
Service<o2::framework::O2DatabasePDG> pdgDB;
200200
o2::pwglf::ParticleCounter<o2::framework::O2DatabasePDG> mCounter;
@@ -507,7 +507,7 @@ struct mcParticlePrediction {
507507
}
508508
}
509509

510-
if (std::abs(particle.y()) >= rapidityMother) {
510+
if (std::abs(particle.y()) >= rapidityCut) {
511511
continue;
512512
}
513513

@@ -694,10 +694,10 @@ struct mcParticlePrediction {
694694
float nMultRecoMCBC[Estimators::nEstimators] = {0};
695695
if (mcBC.has_ft0()) {
696696
const auto& ft0 = mcBC.ft0();
697-
for (auto amplitude : ft0.amplitudeA()) {
697+
for (const auto amplitude : ft0.amplitudeA()) {
698698
nMultRecoMCBC[Estimators::FT0A] += amplitude;
699699
}
700-
for (auto amplitude : ft0.amplitudeC()) {
700+
for (const auto amplitude : ft0.amplitudeC()) {
701701
nMultRecoMCBC[Estimators::FT0C] += amplitude;
702702
}
703703
nMultRecoMCBC[Estimators::FT0AC] = nMultRecoMCBC[Estimators::FT0A] + nMultRecoMCBC[Estimators::FT0C];

0 commit comments

Comments
 (0)