Skip to content

Commit 35c7651

Browse files
authored
Initialize multiplicity counters for new estimators
Initialize multiplicity counters for ZEM1, ZEM2, ZPA, and ZPC estimators to zero when enabled.
1 parent 63a60cb commit 35c7651

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

PWGLF/Tasks/QC/mcParticlePrediction.cxx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,18 @@ struct McParticlePrediction {
467467
if (enabledEstimatorsArray[Estimators::ZNC]) {
468468
nMult[Estimators::ZNC] = mCounter.countZNC(mcParticles);
469469
}
470+
if (enabledEstimatorsArray[Estimators::ZEM1]) {
471+
nMult[Estimators::ZEM1] = 0;
472+
}
473+
if (enabledEstimatorsArray[Estimators::ZEM2]) {
474+
nMult[Estimators::ZEM2] = 0;
475+
}
476+
if (enabledEstimatorsArray[Estimators::ZPA]) {
477+
nMult[Estimators::ZPA] = 0;
478+
}
479+
if (enabledEstimatorsArray[Estimators::ZPC]) {
480+
nMult[Estimators::ZPC] = 0;
481+
}
470482
if (enabledEstimatorsArray[Estimators::ITSIB] || enableVsITSHistograms) {
471483
nMult[Estimators::ITSIB] = mCounter.countITSIB(mcParticles);
472484
}

0 commit comments

Comments
 (0)