Skip to content

Commit aed8226

Browse files
authored
Update onTheFlyRichPid.cxx
1 parent 933b09f commit aed8226

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

ALICE3/TableProducer/OTF/onTheFlyRichPid.cxx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@
4141
#include "CCDB/BasicCCDBManager.h"
4242
#include "CCDB/CcdbApi.h"
4343
#include "CommonConstants/GeomConstants.h"
44+
<<<<<<< Updated upstream
45+
=======
4446
#include "CommonConstants/MathConstants.h"
47+
>>>>>>> Stashed changes
4548
#include "CommonConstants/PhysicsConstants.h"
4649
#include "CommonUtils/NameConf.h"
4750
#include "DataFormatsCalibration/MeanVertexObject.h"
@@ -932,40 +935,40 @@ struct OnTheFlyRichPid {
932935
histos.fill(HIST("hSectorID"), iSecor);
933936

934937
switch (mcParticle.pdgCode()) {
935-
case lpdgArray[0]: // Electron
936-
case -lpdgArray[0]: // Positron
938+
case lpdgArray[kEl]: // Electron
939+
case -lpdgArray[kEl]: // Positron
937940
histos.fill(HIST("h2dBarrelNsigmaTrueElecVsElecHypothesis"), recoTrack.getP(), nSigmaBarrelRich[0]);
938941
histos.fill(HIST("h2dBarrelNsigmaTrueElecVsMuonHypothesis"), recoTrack.getP(), nSigmaBarrelRich[1]);
939942
histos.fill(HIST("h2dBarrelNsigmaTrueElecVsPionHypothesis"), recoTrack.getP(), nSigmaBarrelRich[2]);
940943
histos.fill(HIST("h2dBarrelNsigmaTrueElecVsKaonHypothesis"), recoTrack.getP(), nSigmaBarrelRich[3]);
941944
histos.fill(HIST("h2dBarrelNsigmaTrueElecVsProtHypothesis"), recoTrack.getP(), nSigmaBarrelRich[4]);
942945
break;
943-
case lpdgArray[1]: // Muon
944-
case -lpdgArray[1]: // AntiMuon
946+
case lpdgArray[kMu]: // Muon
947+
case -lpdgArray[kMu]: // AntiMuon
945948
histos.fill(HIST("h2dBarrelNsigmaTrueMuonVsElecHypothesis"), recoTrack.getP(), nSigmaBarrelRich[0]);
946949
histos.fill(HIST("h2dBarrelNsigmaTrueMuonVsMuonHypothesis"), recoTrack.getP(), nSigmaBarrelRich[1]);
947950
histos.fill(HIST("h2dBarrelNsigmaTrueMuonVsPionHypothesis"), recoTrack.getP(), nSigmaBarrelRich[2]);
948951
histos.fill(HIST("h2dBarrelNsigmaTrueMuonVsKaonHypothesis"), recoTrack.getP(), nSigmaBarrelRich[3]);
949952
histos.fill(HIST("h2dBarrelNsigmaTrueMuonVsProtHypothesis"), recoTrack.getP(), nSigmaBarrelRich[4]);
950953
break;
951-
case lpdgArray[2]: // Pion
952-
case -lpdgArray[2]: // AntiPion
954+
case lpdgArray[kPi]: // Pion
955+
case -lpdgArray[kPi]: // AntiPion
953956
histos.fill(HIST("h2dBarrelNsigmaTruePionVsElecHypothesis"), recoTrack.getP(), nSigmaBarrelRich[0]);
954957
histos.fill(HIST("h2dBarrelNsigmaTruePionVsMuonHypothesis"), recoTrack.getP(), nSigmaBarrelRich[1]);
955958
histos.fill(HIST("h2dBarrelNsigmaTruePionVsPionHypothesis"), recoTrack.getP(), nSigmaBarrelRich[2]);
956959
histos.fill(HIST("h2dBarrelNsigmaTruePionVsKaonHypothesis"), recoTrack.getP(), nSigmaBarrelRich[3]);
957960
histos.fill(HIST("h2dBarrelNsigmaTruePionVsProtHypothesis"), recoTrack.getP(), nSigmaBarrelRich[4]);
958961
break;
959-
case lpdgArray[3]: // Kaon
960-
case -lpdgArray[3]: // AntiKaon
962+
case lpdgArray[kka]: // Kaon
963+
case -lpdgArray[kka]: // AntiKaon
961964
histos.fill(HIST("h2dBarrelNsigmaTrueKaonVsElecHypothesis"), recoTrack.getP(), nSigmaBarrelRich[0]);
962965
histos.fill(HIST("h2dBarrelNsigmaTrueKaonVsMuonHypothesis"), recoTrack.getP(), nSigmaBarrelRich[1]);
963966
histos.fill(HIST("h2dBarrelNsigmaTrueKaonVsPionHypothesis"), recoTrack.getP(), nSigmaBarrelRich[2]);
964967
histos.fill(HIST("h2dBarrelNsigmaTrueKaonVsKaonHypothesis"), recoTrack.getP(), nSigmaBarrelRich[3]);
965968
histos.fill(HIST("h2dBarrelNsigmaTrueKaonVsProtHypothesis"), recoTrack.getP(), nSigmaBarrelRich[4]);
966969
break;
967-
case lpdgArray[4]: // Proton
968-
case -lpdgArray[4]: // AntiProton
970+
case lpdgArray[kPr]: // Proton
971+
case -lpdgArray[kPr]: // AntiProton
969972
histos.fill(HIST("h2dBarrelNsigmaTrueProtVsElecHypothesis"), recoTrack.getP(), nSigmaBarrelRich[0]);
970973
histos.fill(HIST("h2dBarrelNsigmaTrueProtVsMuonHypothesis"), recoTrack.getP(), nSigmaBarrelRich[1]);
971974
histos.fill(HIST("h2dBarrelNsigmaTrueProtVsPionHypothesis"), recoTrack.getP(), nSigmaBarrelRich[2]);

0 commit comments

Comments
 (0)