Skip to content

Commit b4b18a1

Browse files
committed
Feat: improve getter for PDG mass
1 parent afa6bfe commit b4b18a1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGCF/Femto/Core/femtoUtils.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ inline double getPdgMass(int pdgCode)
8383
{
8484
// use this function instead of TDatabasePDG to return masses defined in the PhysicsConstants.h header
8585
// this approach saves a lot of memory and important partilces like deuteron are missing in TDatabasePDG anyway
86-
double mass = 0.f;
86+
double mass = 0.;
8787
// add new particles if necessary here
8888
switch (std::abs(pdgCode)) {
8989
case kPiPlus:
@@ -102,10 +102,10 @@ inline double getPdgMass(int pdgCode)
102102
mass = o2::constants::physics::MassPhi;
103103
break;
104104
case kRho770_0:
105-
mass = 775.26; // not defined in O2?
105+
mass = 0.77526; // not defined in O2?
106106
break;
107107
case kRho770Plus:
108-
mass = 775.11; // not defined in O2?
108+
mass = 0.77511; // not defined in O2?
109109
break;
110110
case o2::constants::physics::Pdg::kK0Star892:
111111
mass = o2::constants::physics::MassK0Star892;
@@ -138,7 +138,7 @@ inline double getPdgMass(int pdgCode)
138138
mass = o2::constants::physics::MassOmegaMinus;
139139
break;
140140
default:
141-
LOG(warn) << "PDG code is not suppored. Return 0...";
141+
LOG(warn) << "PDG code " << pdgCode << " is not suppored. Return 0... ";
142142
}
143143
return mass;
144144
}

0 commit comments

Comments
 (0)