1 parent bd0a1fa commit c4b051fCopy full SHA for c4b051f
1 file changed
PWGCF/MultiparticleCorrelations/Tasks/multiparticleCorrelationsMei.cxx
@@ -782,8 +782,9 @@ struct MultiparticleCorrelationsMei // this name is used in lower-case format to
782
}
783
auto mcParticle = track.mcParticle();
784
auto chargeMC = pdg->GetParticle(mcParticle.pdgCode())->Charge();
785
- if (std::abs(chargeMC) == 3) {
786
- chargeMC /= 3;
+ const int chargeMCUnit = 3;
+ if (std::abs(chargeMC) == chargeMCUnit) {
787
+ chargeMC /= chargeMCUnit;
788
789
if constexpr (cuts == eBefore) {
790
pc.fParticleHistograms[eHistPt][eSim][eBefore]->Fill(mcParticle.pt());
0 commit comments