3333#include " Common/Core/RecoDecay.h"
3434#include " Common/DataModel/TrackSelectionTables.h"
3535
36- #include " CommonConstants/MathConstants.h"
37- #include " DCAFitter/DCAFitterN.h"
38- #include " DataFormatsParameters/GRPMagField.h"
39- #include " DetectorsBase/Propagator.h"
40- #include " DetectorsVertexing/PVertexer.h"
41- #include " DetectorsVertexing/PVertexerHelpers.h"
42- #include " Field/MagneticField.h"
43- #include " Framework/AnalysisDataModel.h"
44- #include " Framework/AnalysisTask.h"
45- #include " Framework/HistogramRegistry.h"
46- #include " Framework/O2DatabasePDGPlugin.h"
47- #include " Framework/runDataProcessing.h"
48- #include " ReconstructionDataFormats/DCA.h"
49- #include " SimulationDataFormat/InteractionSampler.h"
36+ #include < CommonConstants/MathConstants.h>
37+ #include < CommonConstants/PhysicsConstants.h>
38+ #include < DCAFitter/DCAFitterN.h>
39+ #include < DataFormatsParameters/GRPMagField.h>
40+ #include < DetectorsBase/Propagator.h>
41+ #include < DetectorsVertexing/PVertexer.h>
42+ #include < DetectorsVertexing/PVertexerHelpers.h>
43+ #include < Field/MagneticField.h>
44+ #include < Framework/AnalysisDataModel.h>
45+ #include < Framework/AnalysisTask.h>
46+ #include < Framework/HistogramRegistry.h>
47+ #include < Framework/O2DatabasePDGPlugin.h>
48+ #include < Framework/runDataProcessing.h>
49+ #include < ReconstructionDataFormats/DCA.h>
50+ #include < SimulationDataFormat/InteractionSampler.h>
5051
5152#include < TGenPhaseSpace.h>
5253#include < TGeoGlobalMagField.h>
@@ -527,7 +528,7 @@ struct OnTheFlyTracker {
527528 if (!longLivedToBeHandled) {
528529 if (!cascadeDecaySettings.decayXi ) {
529530 continue ;
530- } else if (pdg != 3312 ) {
531+ } else if (pdg != kXiMinus ) {
531532 continue ;
532533 }
533534 }
@@ -554,7 +555,7 @@ struct OnTheFlyTracker {
554555 std::vector<double > xiDecayVertex, laDecayVertex;
555556 std::vector<double > layers = {0.50 , 1.20 , 2.50 , 3.75 , 7.00 , 12.0 , 20.0 };
556557 if (cascadeDecaySettings.decayXi ) {
557- if (mcParticle.pdgCode () == 3312 ) {
558+ if (mcParticle.pdgCode () == kXiMinus ) {
558559 o2::track::TrackParCov xiTrackParCov;
559560 o2::upgrade::convertMCParticleToO2Track (mcParticle, xiTrackParCov, pdgDB);
560561 decayParticle (mcParticle, xiTrackParCov, decayProducts, xiDecayVertex, laDecayVertex);
@@ -567,15 +568,15 @@ struct OnTheFlyTracker {
567568 if (!mcParticle.isPhysicalPrimary ()) {
568569 if (!cascadeDecaySettings.decayXi ) {
569570 continue ;
570- } else if (pdg != 3312 ) {
571+ } else if (pdg != kXiMinus ) {
571572 continue ;
572573 }
573574 }
574575 const bool longLivedToBeHandled = std::find (longLivedHandledPDGs.begin (), longLivedHandledPDGs.end (), pdg) != longLivedHandledPDGs.end ();
575576 if (!longLivedToBeHandled) {
576577 if (!cascadeDecaySettings.decayXi ) {
577578 continue ;
578- } else if (pdg != 3312 ) {
579+ } else if (pdg != kXiMinus ) {
579580 continue ;
580581 }
581582 }
@@ -593,7 +594,7 @@ struct OnTheFlyTracker {
593594 if (std::abs (mcParticle.pdgCode ()) == 2212 )
594595 histos.fill (HIST (" hPtGeneratedPr" ), mcParticle.pt ());
595596
596- if (cascadeDecaySettings.doXiQA && mcParticle.pdgCode () == 3312 ) {
597+ if (cascadeDecaySettings.doXiQA && mcParticle.pdgCode () == kXiMinus ) {
597598 histos.fill (HIST (" hGenXi" ), xiDecayRadius2D, mcParticle.pt ());
598599 histos.fill (HIST (" hGenPiFromXi" ), xiDecayRadius2D, decayProducts[0 ].Pt ());
599600 histos.fill (HIST (" hGenPiFromLa" ), laDecayRadius2D, decayProducts[1 ].Pt ());
@@ -619,7 +620,7 @@ struct OnTheFlyTracker {
619620 std::vector<int > nHits (3 ); // total
620621 std::vector<int > nSiliconHits (3 ); // silicon type
621622 std::vector<int > nTPCHits (3 ); // TPC type
622- if (cascadeDecaySettings.decayXi && mcParticle.pdgCode () == 3312 ) {
623+ if (cascadeDecaySettings.decayXi && mcParticle.pdgCode () == kXiMinus ) {
623624 if (cascadeDecaySettings.doXiQA )
624625 histos.fill (HIST (" hXiBuilding" ), 0 .0f );
625626 if (xiDecayRadius2D > 20 ) {
@@ -669,7 +670,7 @@ struct OnTheFlyTracker {
669670 }
670671 }
671672
672- if (cascadeDecaySettings.doXiQA && mcParticle.pdgCode () == 3312 ) {
673+ if (cascadeDecaySettings.doXiQA && mcParticle.pdgCode () == kXiMinus ) {
673674 if (isReco[0 ] && isReco[1 ] && isReco[2 ]) {
674675 histos.fill (HIST (" hXiBuilding" ), 2 .0f );
675676 histos.fill (HIST (" hRecoXi" ), xiDecayRadius2D, mcParticle.pt ());
@@ -685,7 +686,7 @@ struct OnTheFlyTracker {
685686 // +-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+
686687 // combine particles into actual Xi candidate
687688 // cascade building starts here
688- if (cascadeDecaySettings.findXi && mcParticle.pdgCode () == 3312 && isReco[0 ] && isReco[1 ] && isReco[2 ]) {
689+ if (cascadeDecaySettings.findXi && mcParticle.pdgCode () == kXiMinus && isReco[0 ] && isReco[1 ] && isReco[2 ]) {
689690 if (cascadeDecaySettings.doXiQA )
690691 histos.fill (HIST (" hXiBuilding" ), 3 .0f );
691692 // assign indices of the particles we've used
0 commit comments