Skip to content

Commit 3260357

Browse files
committed
Feat: use name constants for PDG codes
1 parent 96ea34a commit 3260357

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PWGCF/FemtoDream/Core/femtoDreamParticleHisto.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <string>
2323
#include "PWGCF/DataModel/FemtoDerived.h"
2424
#include "Framework/HistogramRegistry.h"
25+
#include "CommonConstants/PhysicsConstants.h"
2526

2627
using namespace o2::framework;
2728

@@ -372,15 +373,15 @@ class FemtoDreamParticleHisto
372373
pidTPC = part.tpcNSigmaPr();
373374
pidTOF = part.tofNSigmaPr();
374375
break;
375-
case 1000010020: // Deuteron
376+
case constants::physics::kDeuteron:
376377
pidTPC = part.tpcNSigmaDe();
377378
pidTOF = part.tofNSigmaDe();
378379
break;
379-
case 1000010030: // Triton
380+
case constants::physics::kTriton:
380381
pidTPC = part.tpcNSigmaTr();
381382
pidTOF = part.tofNSigmaTr();
382383
break;
383-
case 1000020030: // Helium3
384+
case constants::physics::kHelium3:
384385
pidTPC = part.tpcNSigmaHe();
385386
pidTOF = part.tofNSigmaHe();
386387
break;

0 commit comments

Comments
 (0)