File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,25 +96,25 @@ enum McMatchFlag : uint8_t {
9696 V0Unmatched
9797};
9898
99- // Convert the KFParticle PDG code to the O2 track PID enum needed by getTrackParCovFromKFP()
99+ // Convert the absolute KFParticle PDG code to the O2 track PID enum needed by getTrackParCovFromKFP()
100100o2::track::PID::ID getTrackPIDFromPDG (const int pdg)
101101{
102102 switch (std::abs (pdg)) {
103- case 211 :
103+ case kPiPlus :
104104 return o2::track::PID::Pion;
105- case 321 :
105+ case kKPlus :
106106 return o2::track::PID::Kaon;
107- case 2212 :
107+ case kProton :
108108 return o2::track::PID::Proton;
109- case 3122 :
109+ case kLambda0 :
110110 return o2::track::PID::Lambda;
111- case 3312 :
111+ case kXiMinus :
112112 return o2::track::PID::XiMinus;
113- case 3334 :
113+ case kOmegaMinus :
114114 return o2::track::PID::OmegaMinus;
115115 default :
116116 LOGF (fatal, " Unsupported PDG code %d in getTrackPIDFromPDG()" , pdg);
117- return o2::track::PID::Pion;
117+ return o2::track::PID::Pion;
118118 }
119119}
120120
You can’t perform that action at this time.
0 commit comments