@@ -585,7 +585,7 @@ struct OnTheFlyTofPid {
585585 static std::array<float , kParticles > expectedTimeInnerTOF, expectedTimeOuterTOF;
586586 static std::array<float , kParticles > deltaTimeInnerTOF, deltaTimeOuterTOF;
587587 static std::array<float , kParticlex > nSigmaInnerTOF, nSigmaOuterTOF;
588- static constexpr int pdgArray [kParticles ] = {kElectron , kMuonMinus , kPiPlus , kKPlus , kProton };
588+ static constexpr int kParticlePdgs [kParticles ] = {kElectron , kMuonMinus , kPiPlus , kKPlus , kProton };
589589 float masses[kParticles ];
590590
591591 if (plotsConfig.doQAplots ) {
@@ -608,7 +608,7 @@ struct OnTheFlyTofPid {
608608 nSigmaInnerTOF[ii] = -100 ;
609609 nSigmaOuterTOF[ii] = -100 ;
610610
611- auto pdgInfoThis = pdg->GetParticle (pdgArray [ii]);
611+ auto pdgInfoThis = pdg->GetParticle (kParticlePdgs [ii]);
612612 masses[ii] = pdgInfoThis->Mass ();
613613 const float v = particleVelocity (momentum, masses[ii]);
614614
@@ -634,7 +634,7 @@ struct OnTheFlyTofPid {
634634 outerTotalTimeReso = std::hypot (simConfig.outerTOFTimeReso , outerTrackTimeReso);
635635
636636 if (plotsConfig.doQAplots ) {
637- if (std::fabs (mcParticle.pdgCode ()) == pdg->GetParticle (pdgArray [ii])->PdgCode ()) {
637+ if (std::fabs (mcParticle.pdgCode ()) == pdg->GetParticle (kParticlePdgs [ii])->PdgCode ()) {
638638 if (trackLengthRecoInnerTOF > 0 ) {
639639 h2dInnerTimeResTrack[ii]->Fill (momentum, innerTrackTimeReso);
640640 h2dInnerTimeResTotal[ii]->Fill (momentum, innerTotalTimeReso);
@@ -663,7 +663,7 @@ struct OnTheFlyTofPid {
663663
664664 if (plotsConfig.doQAplots ) {
665665 for (int ii = 0 ; ii < kParticles ; ii++) {
666- if (std::fabs (mcParticle.pdgCode ()) != pdg->GetParticle (pdgArray [ii])->PdgCode ()) {
666+ if (std::fabs (mcParticle.pdgCode ()) != pdg->GetParticle (kParticlePdgs [ii])->PdgCode ()) {
667667 continue ;
668668 }
669669 if (trackLengthRecoInnerTOF > 0 ) {
0 commit comments