Skip to content

Commit a08c283

Browse files
committed
reco part done
1 parent 8c0800c commit a08c283

2 files changed

Lines changed: 176 additions & 99 deletions

File tree

PWGUD/Core/UPCTauCentralBarrelHelperRL.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,25 @@ int enumMyParticle(int valuePDG)
156156
}
157157
}
158158

159+
int trackPDGfromEnum(int trackEnum)
160+
// reads pdg value and returns particle number as in enumMyParticle
161+
{
162+
if (trackEnum == P_ELECTRON) {
163+
return 11;
164+
} else if (trackEnum == P_MUON) {
165+
return 13;
166+
} else if (trackEnum == P_PION) {
167+
return 211;
168+
} else if (trackEnum == P_KAON) {
169+
return 321;
170+
} else if (trackEnum == P_PROTON) {
171+
return 2212;
172+
} else {
173+
printDebugMessage("PDG value not found in enumMyParticle. Returning -1.");
174+
return -1.;
175+
}
176+
}
177+
159178
float pt(float px, float py)
160179
// Just a simple function to return pt
161180
{

0 commit comments

Comments
 (0)