We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1fc40b commit 3bd30c8Copy full SHA for 3bd30c8
1 file changed
PWGLF/Tasks/QC/mcParticlePrediction.cxx
@@ -694,10 +694,10 @@ struct mcParticlePrediction {
694
float nMultRecoMCBC[Estimators::nEstimators] = {0};
695
if (mcBC.has_ft0()) {
696
const auto& ft0 = mcBC.ft0();
697
- for (const auto amplitude : ft0.amplitudeA()) {
+ for (const auto& amplitude : ft0.amplitudeA()) {
698
nMultRecoMCBC[Estimators::FT0A] += amplitude;
699
}
700
- for (const auto amplitude : ft0.amplitudeC()) {
+ for (const auto& amplitude : ft0.amplitudeC()) {
701
nMultRecoMCBC[Estimators::FT0C] += amplitude;
702
703
nMultRecoMCBC[Estimators::FT0AC] = nMultRecoMCBC[Estimators::FT0A] + nMultRecoMCBC[Estimators::FT0C];
0 commit comments