@@ -337,6 +337,8 @@ struct HfCorrelatorLcScHadrons {
337337 Produces<aod::PairedV0InvMass> entryPairedV0InvMass;
338338 Produces<aod::V0InvMass> entryV0InvMass;
339339
340+ Service<o2::framework::O2DatabasePDG> pdg{};
341+
340342 struct : ConfigurableGroup {
341343 Configurable<int > selectionFlagLc{" selectionFlagLc" , 1 , " Selection Flag for Lc" };
342344 Configurable<int > numberEventsMixed{" numberEventsMixed" , 5 , " number of events mixed in ME process" };
@@ -387,27 +389,7 @@ struct HfCorrelatorLcScHadrons {
387389 Configurable<bool > calEffV0{" calEffV0" , false , " calculate lambda0 efficiency" };
388390 } cfgV0;
389391
390- SliceCache cache;
391- Service<o2::framework::O2DatabasePDG> pdg{};
392- int8_t chargeCand = 3 ;
393- int8_t signSoftPion = 0 ;
394- int leadingIndex = 0 ;
395- int poolBin = 0 ;
396- int poolBinLc = 0 ;
397- bool correlationStatus = false ;
398- bool isPrompt = false ;
399- bool isNonPrompt = false ;
400- bool isSignal = false ;
401- static constexpr int8_t ChargeScPlusPlus{2 };
402- static constexpr int8_t ChargeZero{0 };
403- static constexpr int8_t AssignedChargeSc0{1 }; // to distinguish sc0 from anti-sc0, charge set to +1 and -1
404-
405- TRandom3* rnd = new TRandom3(0 );
406- // std::vector<float> outputMl = {-1., -1., -1.};
407- std::vector<float > outputMlPKPi = {-1 ., -1 ., -1 .};
408- std::vector<float > outputMlPiKP = {-1 ., -1 ., -1 .};
409-
410- // Event Mixing for the Data Mode
392+ // Event Mixing for the Data Mode
411393 // using SelCollisionsWithSc = soa::Join<aod::Collisions, aod::Mults, aod::EvSels>;
412394 using SelCollisions = soa::Filtered<soa::Join<aod::Collisions, aod::Mults, aod::EvSels, aod::LcSelection>>;
413395 using SelCollisionsMc = soa::Filtered<soa::Join<aod::McCollisions, aod::LcSelection, aod::MultsExtraMC>>; // collisionFilter applied
@@ -428,6 +410,9 @@ struct HfCorrelatorLcScHadrons {
428410 using TracksData = soa::Filtered<soa::Join<aod::TracksWDca, aod::TrackSelection, aod::TracksExtra, aod::pidTPCFullPi, aod::pidTPCFullKa, aod::pidTPCFullPr, aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr>>; // trackFilter applied
429411 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>>; // trackFilter applied
430412
413+ template <class T >
414+ using hasStrangeTOFinV0 = decltype (std::declval<T&>().tofNSigmaLaPr());
415+
431416 // Filters for ME
432417 Filter collisionFilter = aod::hf_selection_lc_collision::lcSel == true ;
433418 Filter lcFilter = ((o2::aod::hf_track_index::hfflag & static_cast <uint8_t >(1 << aod::hf_cand_3prong::DecayType::LcToPKPi)) != static_cast <uint8_t >(0 )) && (aod::hf_sel_candidate_lc::isSelLcToPKPi >= cfgCharmCand.selectionFlagLc || aod::hf_sel_candidate_lc::isSelLcToPiKP >= cfgCharmCand.selectionFlagLc);
@@ -451,8 +436,25 @@ struct HfCorrelatorLcScHadrons {
451436 ConfigurableAxis binsNSigmas{" binsNSigmas" , {4000 , -500 ., 500 .}, " n#sigma" };
452437
453438 BinningType corrBinning{{binsZVtx, binsMultiplicity}, true };
454-
455439 HistogramRegistry registry{" registry" , {}, OutputObjHandlingPolicy::AnalysisObject};
440+
441+ SliceCache cache;
442+ int8_t chargeCand = 3 ;
443+ int8_t signSoftPion = 0 ;
444+ int leadingIndex = 0 ;
445+ int poolBin = 0 ;
446+ int poolBinLc = 0 ;
447+ bool correlationStatus = false ;
448+ bool isPrompt = false ;
449+ bool isNonPrompt = false ;
450+ bool isSignal = false ;
451+ static constexpr int8_t ChargeScPlusPlus{2 };
452+ static constexpr int8_t ChargeZero{0 };
453+ static constexpr int8_t AssignedChargeSc0{1 }; // to distinguish sc0 from anti-sc0, charge set to +1 and -1
454+ TRandom3 rnd{0 };
455+ std::vector<float > outputMlPKPi = {-1 ., -1 ., -1 .};
456+ std::vector<float > outputMlPiKP = {-1 ., -1 ., -1 .};
457+
456458 void init (InitContext&)
457459 {
458460 AxisSpec axisCandMass = {binsCandMass, " inv. mass (p K #pi) (GeV/#it{c}^{2})" };
@@ -580,9 +582,6 @@ struct HfCorrelatorLcScHadrons {
580582 return y;
581583 }
582584
583- template <class T >
584- using hasStrangeTOFinV0 = decltype (std::declval<T&>().tofNSigmaLaPr());
585-
586585 template <typename Tracktype, typename V0Type>
587586 bool isSelectedV0Daughter (Tracktype const & track, V0Type v0, int pid)
588587 {
@@ -680,7 +679,7 @@ struct HfCorrelatorLcScHadrons {
680679 }
681680
682681 if (cfgCharmCand.eventFractionToAnalyze > 0 ) {
683- if (rnd-> Uniform (0 , 1 ) > cfgCharmCand.eventFractionToAnalyze ) {
682+ if (rnd. Uniform (0 , 1 ) > cfgCharmCand.eventFractionToAnalyze ) {
684683 skipMixedEventTableFilling = true ;
685684 }
686685 }
@@ -1162,7 +1161,7 @@ struct HfCorrelatorLcScHadrons {
11621161 }
11631162
11641163 if (cfgCharmCand.eventFractionToAnalyze > 0 ) {
1165- if (rnd-> Uniform (0 , 1 ) > cfgCharmCand.eventFractionToAnalyze ) {
1164+ if (rnd. Uniform (0 , 1 ) > cfgCharmCand.eventFractionToAnalyze ) {
11661165 skipMixedEventTableFilling = true ;
11671166 }
11681167 }
0 commit comments