Skip to content

Commit 32bb4c6

Browse files
authored
U
1 parent f26de1b commit 32bb4c6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -259,15 +259,15 @@ struct OnTheFlyTracker {
259259
std::LOG(fatal) << "Having issue with loading the LUT " << pdg << " " << lutFile;
260260
}
261261
};
262-
loadLUT(11, lutEl.value);
263-
loadLUT(13, lutMu.value);
264-
loadLUT(211, lutPi.value);
265-
loadLUT(321, lutKa.value);
266-
loadLUT(2212, lutPr.value);
267-
loadLUT(1000010020, lutDe.value);
268-
loadLUT(1000010030, lutTr.value);
269-
loadLUT(1000020030, lutHe3.value);
270-
loadLUT(1000020040, lutAl.value);
262+
loadLUT(kElectron, lutEl.value);
263+
loadLUT(kMuonMinus, lutMu.value);
264+
loadLUT(kPiMinus, lutPi.value);
265+
loadLUT(kKPlus, lutKa.value);
266+
loadLUT(kProton, lutPr.value);
267+
loadLUT(o2::constants::physics::kDeuteron, lutDe.value);
268+
loadLUT(o2::constants::physics::kTriton, lutTr.value);
269+
loadLUT(o2::constants::physics::kHelium3, lutHe3.value);
270+
loadLUT(o2::constants::physics::kAlpha, lutAl.value);
271271

272272
// interpolate efficiencies if requested to do so
273273
mSmearer.interpolateEfficiency(static_cast<bool>(interpolateLutEfficiencyVsNch));
@@ -609,7 +609,7 @@ struct OnTheFlyTracker {
609609
o2::upgrade::convertMCParticleToO2Track(mcParticle, trackParCov, pdgDB);
610610

611611
bool isDecayDaughter = false;
612-
if (mcParticle.getProcess() == 4)
612+
if (mcParticle.getProcess() == TMCProcess::kPDecay)
613613
isDecayDaughter = true;
614614

615615
multiplicityCounter++;
@@ -627,9 +627,9 @@ struct OnTheFlyTracker {
627627
continue;
628628
}
629629

630-
o2::upgrade::convertTLorentzVectorToO2Track(-211, decayProducts[0], xiDecayVertex, xiDaughterTrackParCovsPerfect[0], pdgDB);
631-
o2::upgrade::convertTLorentzVectorToO2Track(-211, decayProducts[1], laDecayVertex, xiDaughterTrackParCovsPerfect[1], pdgDB);
632-
o2::upgrade::convertTLorentzVectorToO2Track(2212, decayProducts[2], laDecayVertex, xiDaughterTrackParCovsPerfect[2], pdgDB);
630+
o2::upgrade::convertTLorentzVectorToO2Track(kPiMinus, decayProducts[0], xiDecayVertex, xiDaughterTrackParCovsPerfect[0], pdgDB);
631+
o2::upgrade::convertTLorentzVectorToO2Track(kPiMinus, decayProducts[1], laDecayVertex, xiDaughterTrackParCovsPerfect[1], pdgDB);
632+
o2::upgrade::convertTLorentzVectorToO2Track(kProton, decayProducts[2], laDecayVertex, xiDaughterTrackParCovsPerfect[2], pdgDB);
633633

634634
for (int i = 0; i < 3; i++) {
635635
isReco[i] = false;

0 commit comments

Comments
 (0)