@@ -366,8 +366,6 @@ struct HfCorrelatorXicHadrons {
366366 Produces<aod::PairedV0InvMass> entryPairedV0InvMass;
367367 Produces<aod::V0InvMass> entryV0InvMass;
368368
369- Service<o2::framework::O2DatabasePDG> pdg{};
370-
371369 struct : ConfigurableGroup {
372370 Configurable<int > selectionFlagXic{" selectionFlagXic" , 1 , " Selection flag for Xic" };
373371 Configurable<int > numberEventsMixed{" numberEventsMixed" , 5 , " number of events mixed in ME process" };
@@ -420,6 +418,9 @@ struct HfCorrelatorXicHadrons {
420418 Configurable<bool > calEffV0{" calEffV0" , false , " calculate lambda0 efficiency" };
421419 } cfgV0;
422420
421+ SliceCache cache;
422+ Service<o2::framework::O2DatabasePDG> pdg{};
423+
423424 // Event Mixing for the Data Mode
424425 using SelCollisions = soa::Filtered<soa::Join<aod::Collisions, aod::Mults, aod::EvSels, aod::LcSelection>>;
425426 using SelCollisionsMc = soa::Filtered<soa::Join<aod::McCollisions, aod::LcSelection, aod::MultsExtraMC>>;
@@ -448,7 +449,7 @@ struct HfCorrelatorXicHadrons {
448449 using TracksWithMc = soa::Filtered<soa::Join<aod::TracksWDca, aod::TrackSelection, aod::TracksExtra, o2::aod::McTrackLabels, aod::pidTPCFullPi, aod::pidTPCFullKa, aod::pidTPCFullPr, aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr>>;
449450
450451 template <class T >
451- using hasStrangeTOFinV0 = decltype (std::declval<T&>().tofNSigmaLaPr());
452+ using HasStrangeTOFinV0 = decltype (std::declval<T&>().tofNSigmaLaPr());
452453
453454 Filter collisionFilter = aod::hf_selection_lc_collision::lcSel == true ;
454455 Filter trackFilter = (nabs(aod::track::eta) < cfgXicCand.etaTrackMax) && (nabs(aod::track::pt) > cfgXicCand.ptTrackMin) && (nabs(aod::track::dcaXY) < cfgXicCand.dcaXYTrackMax) && (nabs(aod::track::dcaZ) < cfgXicCand.dcaZTrackMax);
@@ -476,7 +477,6 @@ struct HfCorrelatorXicHadrons {
476477 BinningType corrBinning{{binsZVtx, binsMultiplicity}, true };
477478 HistogramRegistry registry{" registry" };
478479
479- SliceCache cache;
480480 int8_t chargeCand = 3 ;
481481 int leadingIndex = 0 ;
482482 int poolBin = 0 ;
@@ -648,7 +648,7 @@ struct HfCorrelatorXicHadrons {
648648 return false ;
649649 }
650650 if (track.hasTOF ()) {
651- if constexpr (std::experimental::is_detected<hasStrangeTOFinV0 , V0Type>::value) {
651+ if constexpr (std::experimental::is_detected<HasStrangeTOFinV0 , V0Type>::value) {
652652 // pid > 0: Proton from Lambda (LaPr)
653653 // pid < 0: Antiproton from Anti-Lambda (ALaPr)
654654 double strangeTOF = (pid > 0 ) ? v0.tofNSigmaLaPr () : v0.tofNSigmaALaPr ();
@@ -675,7 +675,7 @@ struct HfCorrelatorXicHadrons {
675675 }
676676
677677 if (track.hasTOF ()) {
678- if constexpr (std::experimental::is_detected<hasStrangeTOFinV0 , V0Type>::value) {
678+ if constexpr (std::experimental::is_detected<HasStrangeTOFinV0 , V0Type>::value) {
679679 // A pion can belong to either a Lambda/Anti-Lambda decay or a K0s decay.
680680 // We evaluate both applicable hypotheses based on charge sign and pick the best match.
681681 double tofLa = (pid > 0 ) ? v0.tofNSigmaALaPi () : v0.tofNSigmaLaPi ();
@@ -815,9 +815,9 @@ struct HfCorrelatorXicHadrons {
815815 }
816816
817817 auto daughterParts = particle.daughters_as <aod::McParticles>();
818- const int8_t NdaughtersV0 = 2 ;
818+ const int8_t nDaughtersV0 = 2 ;
819819
820- if (daughterParts.size () != NdaughtersV0 ) {
820+ if (daughterParts.size () != nDaughtersV0 ) {
821821 continue ;
822822 }
823823
0 commit comments