@@ -42,36 +42,36 @@ using namespace o2::constants::physics;
4242using LorentzVectorPtEtaPhiMass = ROOT::Math::PtEtaPhiMVector;
4343
4444enum {
45- inel = 1 ,
46- inel10 ,
47- inelg0 ,
48- inelg010 ,
49- trig ,
50- trig10 ,
51- trigINELg0 ,
52- trigINELg010 ,
53- sel8 ,
54- sel810 ,
55- sel8INELg0 ,
56- sel8INELg010 ,
57- allCuts ,
58- allCuts10 ,
59- allCutsINELg0 ,
60- allCutsINELg010 ,
45+ Inel = 1 ,
46+ Inel10 ,
47+ Inelg0 ,
48+ Inelg010 ,
49+ Trig ,
50+ Trig10 ,
51+ TrigINELg0 ,
52+ TrigINELg010 ,
53+ Sel8 ,
54+ Sel810 ,
55+ Sel8INELg0 ,
56+ Sel8INELg010 ,
57+ AllCuts ,
58+ AllCuts10 ,
59+ AllCutsINELg0 ,
60+ AllCutsINELg010 ,
6161};
6262
6363enum TrackSelectionType {
64- allTracks = 0 ,
65- globalTracks ,
66- globalTracksWoPtEta ,
67- globalTracksWoDCA ,
68- qualityTracks ,
69- inAcceptanceTracks ,
64+ AllTracks = 0 ,
65+ GlobalTracks ,
66+ GlobalTracksWoPtEta ,
67+ GlobalTracksWoDCA ,
68+ QualityTracks ,
69+ InAcceptanceTracks ,
7070};
7171
7272enum PIDCutType {
73- squareType = 1 ,
74- circularType ,
73+ SquareType = 1 ,
74+ CircularType ,
7575};
7676
7777struct Lambda1520analysisinpp {
@@ -202,12 +202,12 @@ struct Lambda1520analysisinpp {
202202
203203 Filter tofPIDFilter = aod::track::tofExpMom < 0 .f || ((aod::track::tofExpMom > 0 .f) && (/* (nabs(aod::pidtof::tofNSigmaPi) < configPID.pidnSigmaPreSelectionCut) || */ (nabs(aod::pidtof::tofNSigmaKa) < configPID.pidnSigmaPreSelectionCut) || (nabs(aod::pidtof::tofNSigmaPr) < configPID.pidnSigmaPreSelectionCut))); // TOF
204204 Filter tpcPIDFilter = /* nabs(aod::pidtpc::tpcNSigmaPi) < configPID.pidnSigmaPreSelectionCut || */ nabs(aod::pidtpc::tpcNSigmaKa) < configPID.pidnSigmaPreSelectionCut || nabs(aod::pidtpc::tpcNSigmaPr) < configPID.pidnSigmaPreSelectionCut; // TPC
205- Filter trackFilter = (configTracks.trackSelection == allTracks ) ||
206- ((configTracks.trackSelection == globalTracks ) && requireGlobalTrackInFilter()) ||
207- ((configTracks.trackSelection == globalTracksWoPtEta ) && requireGlobalTrackWoPtEtaInFilter()) ||
208- ((configTracks.trackSelection == globalTracksWoDCA ) && requireGlobalTrackWoDCAInFilter()) ||
209- ((configTracks.trackSelection == qualityTracks ) && requireQualityTracksInFilter()) ||
210- ((configTracks.trackSelection == inAcceptanceTracks ) && requireTrackCutInFilter(TrackSelectionFlags::kInAcceptanceTracks ));
205+ Filter trackFilter = (configTracks.trackSelection == AllTracks ) ||
206+ ((configTracks.trackSelection == GlobalTracks ) && requireGlobalTrackInFilter()) ||
207+ ((configTracks.trackSelection == GlobalTracksWoPtEta ) && requireGlobalTrackWoPtEtaInFilter()) ||
208+ ((configTracks.trackSelection == GlobalTracksWoDCA ) && requireGlobalTrackWoDCAInFilter()) ||
209+ ((configTracks.trackSelection == QualityTracks ) && requireQualityTracksInFilter()) ||
210+ ((configTracks.trackSelection == InAcceptanceTracks ) && requireTrackCutInFilter(TrackSelectionFlags::kInAcceptanceTracks ));
211211
212212 Filter acceptanceFilter = (nabs(aod::track::eta) < configTracks.cfgCutEta && nabs(aod::track::pt) > configTracks.cMinPtcut);
213213 // Filter DCAcutFilter = (nabs(aod::track::dcaXY) < configTracks.cfgCutDCAxy) && (nabs(aod::track::dcaZ) < configTracks.cfgCutDCAz);
@@ -427,7 +427,7 @@ struct Lambda1520analysisinpp {
427427 float massKa = MassKaonCharged;
428428 float massPr = MassProton;
429429
430- int cLambda1520PDG = static_cast < int >( 102134 ) ; // PDG code for Lambda(1520)
430+ auto static constexpr Lambda1520PDG = 102134 ; // PDG code for Lambda(1520)
431431
432432 // Centralicity estimator selection
433433 template <typename Coll>
@@ -451,7 +451,7 @@ struct Lambda1520analysisinpp {
451451 return returnValue;
452452 }
453453
454- auto static constexpr cTripleCharge = 3 .f;
454+ auto static constexpr TripleCharge = 3 .f;
455455
456456 // Check if the collision is INEL>0
457457 template <typename MCColl, typename MCPart>
@@ -462,7 +462,7 @@ struct Lambda1520analysisinpp {
462462 continue ;
463463 auto p = pdg->GetParticle (mcparticle.pdgCode ());
464464 if (p != nullptr ) {
465- if (std::abs (p->Charge ()) >= cTripleCharge ) { // check if the particle is charged
465+ if (std::abs (p->Charge ()) >= TripleCharge ) { // check if the particle is charged
466466 if (std::abs (mcparticle.eta ()) < 1.0 )
467467 return true ;
468468 }
@@ -554,7 +554,7 @@ struct Lambda1520analysisinpp {
554554
555555 // Case 3: Has TOF → use TPC + TOF (square or circular)
556556 if (candidate.hasTOF ()) {
557- if (configPID.cPIDcutType == squareType ) {
557+ if (configPID.cPIDcutType == SquareType ) {
558558 // Rectangular cut
559559 for (size_t i = 0 ; i < vProtonTOFPIDpTintv.size (); ++i) {
560560 if (pt < vProtonTOFPIDpTintv[i]) {
@@ -563,7 +563,7 @@ struct Lambda1520analysisinpp {
563563 return true ;
564564 }
565565 }
566- } else if (configPID.cPIDcutType == circularType ) {
566+ } else if (configPID.cPIDcutType == CircularType ) {
567567 // Circular cut
568568 for (size_t i = 0 ; i < vProtonTPCTOFCombinedpTintv.size (); ++i) {
569569 if (pt < vProtonTPCTOFCombinedpTintv[i]) {
@@ -625,7 +625,7 @@ struct Lambda1520analysisinpp {
625625
626626 // Case 3: TOF is available → apply TPC+TOF PID logic
627627 if (candidate.hasTOF ()) {
628- if (configPID.cPIDcutType == squareType ) {
628+ if (configPID.cPIDcutType == SquareType ) {
629629 // Rectangular cut
630630 for (size_t i = 0 ; i < vKaonTOFPIDpTintv.size (); ++i) {
631631 if (pt < vKaonTOFPIDpTintv[i]) {
@@ -635,7 +635,7 @@ struct Lambda1520analysisinpp {
635635 }
636636 }
637637 }
638- } else if (configPID.cPIDcutType == circularType ) {
638+ } else if (configPID.cPIDcutType == CircularType ) {
639639 // Circular cut
640640 for (size_t i = 0 ; i < vKaonTPCTOFCombinedpTintv.size (); ++i) {
641641 if (pt < vKaonTPCTOFCombinedpTintv[i]) {
@@ -966,7 +966,7 @@ struct Lambda1520analysisinpp {
966966 if (motherstrk1[0 ] != motherstrk2[0 ]) // Same mother
967967 continue ;
968968
969- if (std::abs (mothersPDGtrk1[0 ]) != cLambda1520PDG )
969+ if (std::abs (mothersPDGtrk1[0 ]) != Lambda1520PDG )
970970 continue ;
971971
972972 // LOGF(info, "mother trk1 id: %d, mother trk1: %d, trk1 id: %d, trk1 pdgcode: %d, mother trk2 id: %d, mother trk2: %d, trk2 id: %d, trk2 pdgcode: %d", motherstrk1[0], mothersPDGtrk1[0], trk1.globalIndex(), mctrk1.pdgCode(), motherstrk2[0], mothersPDGtrk2[0], trk2.globalIndex(), mctrk2.pdgCode());
@@ -1070,7 +1070,7 @@ struct Lambda1520analysisinpp {
10701070 }
10711071 PROCESS_SWITCH (Lambda1520analysisinpp, processMC, " Process Event for MC Light without partition" , false );
10721072
1073- Partition<aod::McParticles> selectedMCParticles = (nabs(aod::mcparticle::pdgCode) == cLambda1520PDG ); // Lambda(1520)
1073+ Partition<aod::McParticles> selectedMCParticles = (nabs(aod::mcparticle::pdgCode) == Lambda1520PDG ); // Lambda(1520)
10741074
10751075 void processMCTrue (MCEventCandidates::iterator const & collision, aod::McCollisions const &, aod::McParticles const & mcParticles)
10761076 {
@@ -1086,7 +1086,7 @@ struct Lambda1520analysisinpp {
10861086 // Not related to the real collisions
10871087 for (const auto & part : mcParts) { // loop over all MC particles
10881088
1089- if (std::abs (part.pdgCode ()) != cLambda1520PDG ) // Lambda1520(0)
1089+ if (std::abs (part.pdgCode ()) != Lambda1520PDG ) // Lambda1520(0)
10901090 continue ;
10911091
10921092 std::vector<int > daughterPDGs;
@@ -1166,43 +1166,43 @@ struct Lambda1520analysisinpp {
11661166 }
11671167
11681168 // QA for Trigger efficiency
1169- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, inel );
1169+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Inel );
11701170 if (inVtx10)
1171- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, inel10 );
1171+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Inel10 );
11721172 if (isTrueINELgt0)
1173- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, inelg0 );
1173+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Inelg0 );
11741174 if (inVtx10 && isTrueINELgt0)
1175- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, inelg010 );
1175+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Inelg010 );
11761176
11771177 // TVX MB trigger
11781178 if (isTriggerTVX)
1179- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, trig );
1179+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Trig );
11801180 if (isTriggerTVX && inVtx10)
1181- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, trig10 );
1181+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Trig10 );
11821182 if (isTriggerTVX && isTrueINELgt0)
1183- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, trigINELg0 );
1183+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, TrigINELg0 );
11841184 if (isTriggerTVX && isTrueINELgt0 && inVtx10)
1185- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, trigINELg010 );
1185+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, TrigINELg010 );
11861186
11871187 // Sel8 event selection
11881188 if (isSel8)
1189- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, sel8 );
1189+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Sel8 );
11901190 if (isSel8 && inVtx10)
1191- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, sel810 );
1191+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Sel810 );
11921192 if (isSel8 && isTrueINELgt0)
1193- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, sel8INELg0 );
1193+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Sel8INELg0 );
11941194 if (isSel8 && isTrueINELgt0 && inVtx10)
1195- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, sel8INELg010 );
1195+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, Sel8INELg010 );
11961196
11971197 // CollisionCuts selection
11981198 if (isInAfterAllCuts)
1199- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, allCuts );
1199+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, AllCuts );
12001200 if (isInAfterAllCuts && inVtx10)
1201- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, allCuts10 );
1201+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, AllCuts10 );
12021202 if (isInAfterAllCuts && isTrueINELgt0)
1203- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, allCutsINELg0 );
1203+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, AllCutsINELg0 );
12041204 if (isInAfterAllCuts && isTrueINELgt0 && inVtx10)
1205- histos.fill (HIST (" Event/hMCEventIndices" ), centrality, allCutsINELg010 );
1205+ histos.fill (HIST (" Event/hMCEventIndices" ), centrality, AllCutsINELg010 );
12061206 }
12071207 PROCESS_SWITCH (Lambda1520analysisinpp, processMCTrue, " Process Event for MC only" , false );
12081208
0 commit comments