Skip to content

Commit

Permalink
Feat: use name constants for PDG codes
Browse files Browse the repository at this point in the history
  • Loading branch information
ariedel-cern committed Oct 25, 2024
1 parent 96ea34a commit 3260357
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions PWGCF/FemtoDream/Core/femtoDreamParticleHisto.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <string>
#include "PWGCF/DataModel/FemtoDerived.h"
#include "Framework/HistogramRegistry.h"
#include "CommonConstants/PhysicsConstants.h"

using namespace o2::framework;

Expand Down Expand Up @@ -372,15 +373,15 @@ class FemtoDreamParticleHisto
pidTPC = part.tpcNSigmaPr();
pidTOF = part.tofNSigmaPr();
break;
case 1000010020: // Deuteron
case constants::physics::kDeuteron:
pidTPC = part.tpcNSigmaDe();
pidTOF = part.tofNSigmaDe();
break;
case 1000010030: // Triton
case constants::physics::kTriton:
pidTPC = part.tpcNSigmaTr();
pidTOF = part.tofNSigmaTr();
break;
case 1000020030: // Helium3
case constants::physics::kHelium3:
pidTPC = part.tpcNSigmaHe();
pidTOF = part.tofNSigmaHe();
break;
Expand Down

0 comments on commit 3260357

Please sign in to comment.