Skip to content

Commit 065d166

Browse files
authored
[PWGCF] Add more PDG codes to mass getter in femto framework (#18712)
1 parent e4d60b1 commit 065d166

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎PWGCF/Femto/Core/femtoUtils.h‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ constexpr int DeltaPlusPlus1232 = 2224;
9696
constexpr int Xi01530 = 3324;
9797
constexpr int XiMinus1530 = 3314;
9898

99+
// Sigma(1385) baryons: same situation as Delta(1232)/Xi(1530) above -- no enum entry and no
100+
// mass constant exists anywhere in O2, so both are hardcoded here.
101+
constexpr int SigmaMinus1385 = 3114;
102+
constexpr int Sigma01385 = 3214;
103+
constexpr int SigmaPlus1385 = 3224;
104+
99105
inline double getPdgMass(int pdgCode)
100106
{
101107
// use this function instead of TDatabasePDG to return masses defined in the PhysicsConstants.h header
@@ -184,6 +190,30 @@ inline double getPdgMass(int pdgCode)
184190
case kLambda1520:
185191
mass = o2::constants::physics::MassLambda1520;
186192
break;
193+
case kDown:
194+
mass = o2::constants::physics::MassDown;
195+
break;
196+
case kUp:
197+
mass = o2::constants::physics::MassUp;
198+
break;
199+
case kStrange:
200+
mass = o2::constants::physics::MassStrange;
201+
break;
202+
case kCharm:
203+
mass = o2::constants::physics::MassCharm;
204+
break;
205+
case kBottom:
206+
mass = o2::constants::physics::MassBottom;
207+
break;
208+
case kTop:
209+
mass = o2::constants::physics::MassTop;
210+
break;
211+
case kGluon:
212+
mass = o2::constants::physics::MassGluon;
213+
break;
214+
case kElectron:
215+
mass = o2::constants::physics::MassElectron;
216+
break;
187217
case DeltaMinus1232:
188218
case Delta01232:
189219
case DeltaPlus1232:
@@ -194,6 +224,11 @@ inline double getPdgMass(int pdgCode)
194224
case XiMinus1530:
195225
mass = 1.532; // not defined in O2?
196226
break;
227+
case SigmaMinus1385:
228+
case Sigma01385:
229+
case SigmaPlus1385:
230+
mass = 1.3837; // not defined in O2?
231+
break;
197232
default:
198233
LOG(warn) << "PDG code " << pdgCode << " is not suppored. Return 0... ";
199234
}

0 commit comments

Comments
 (0)