@@ -92,11 +92,12 @@ struct HfCorrelatorLcHadronsSelection {
9292 Configurable<int > selectionFlagLc{" selectionFlagLc" , 1 , " Selection Flag for Lc" };
9393 Configurable<float > yCandMax{" yCandMax" , 0.8 , " max. cand. rapidity" };
9494 Configurable<float > ptCandMin{" ptCandMin" , 1 ., " min. cand. pT" };
95+ Configurable<float > centMin{" centMin" , 0 ., " Minimum Centrality" };
96+ Configurable<float > centMax{" centMax" , 100 .," Maximum Centrality" };
9597
9698 HfHelper hfHelper;
9799 SliceCache cache;
98100
99- // using SelCollisions = soa::Join<aod::Collisions, aod::EvSels>;
100101 using SelCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms>;
101102 using CandidatesLcData = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelLc>>;
102103 using CandidatesLcMcRec = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelLc, aod::HfCand3ProngMcRec>>;
@@ -140,9 +141,8 @@ struct HfCorrelatorLcHadronsSelection {
140141 if (selNoSameBunchPileUpColl) {
141142 isNosameBunchPileUp = static_cast <bool >(collision.selection_bit (o2::aod::evsel::kNoSameBunchPileup ));
142143 }
143- // isSelColl = isLcFound && isSel8 && isNosameBunchPileUp;
144- // lcSel(isSelColl);
145- isCentInRange = cent >= 0 . && cent < 100 .; // adjust percentile as needed
144+
145+ isCentInRange = cent >= centMin && cent < centMax;
146146 isSelColl = isLcFound && isSel8 && isNosameBunchPileUp && isCentInRange;
147147 lcSel (isSelColl);
148148 }
@@ -214,7 +214,7 @@ struct HfCorrelatorLcHadrons {
214214 Produces<aod::Hadron> entryHadron;
215215 Produces<aod::LcHadronTrkPID> entryTrkPID;
216216
217- Configurable<int > selectionFlagLc{" selectionFlagLc" , 1 , " Selection Flag for Lc in mult " };
217+ Configurable<int > selectionFlagLc{" selectionFlagLc" , 1 , " Selection Flag for Lc" };
218218 Configurable<int > numberEventsMixed{" numberEventsMixed" , 5 , " number of events mixed in ME process" };
219219 Configurable<int > applyEfficiency{" applyEfficiency" , 1 , " Flag for applying Lc efficiency weights" };
220220 Configurable<float > yCandMax{" yCandMax" , 0.8 , " max. cand. rapidity" };
@@ -257,8 +257,6 @@ struct HfCorrelatorLcHadrons {
257257
258258 // Event Mixing for the Data Mode
259259 using SelCollisionsWithLc = soa::Filtered<soa::Join<aod::Collisions, aod::Mults, aod::EvSels, aod::LcSelection, aod::CentFT0Ms>>;
260-
261- // using SelCollisionsWithLc = soa::Filtered<soa::Join<aod::Collisions, aod::Mults, aod::EvSels, aod::LcSelection>>;
262260 using SelCollisionsWithLcMc = soa::Filtered<soa::Join<aod::McCollisions, aod::LcSelection, aod::MultsExtraMC>>; // collisionFilter applied
263261 using CandidatesLcData = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelLc, aod::HfMlLcToPKPi>>;
264262 // Event Mixing for the MCRec Mode
@@ -327,6 +325,7 @@ struct HfCorrelatorLcHadrons {
327325 registry.add (" hMultiplicity" , " multiplicity;multiplicity;entries" , {HistType::kTH1F , {{10000 , 0 ., 10000 .}}});
328326 registry.add (" hMultFT0M" , " multiplicity;multiplicity;entries" , {HistType::kTH1F , {{10000 , 0 ., 10000 .}}});
329327 registry.add (" hZvtx" , " z vertex;z vertex;entries" , {HistType::kTH1F , {{200 , -20 ., 20 .}}});
328+ registry.add (" hCentFT0M" ," Centrality FT0M; Centrality;entries" , {HistType::kTH1F , {{100 , 0 ., 100 .}}});
330329 registry.add (" hLcBin" , " Lc selected in pool Bin;pool Bin;entries" , {HistType::kTH1F , {{9 , 0 ., 9 .}}});
331330 registry.add (" hTracksBin" , " Tracks selected in pool Bin;pool Bin;entries" , {HistType::kTH1F , {{9 , 0 ., 9 .}}});
332331 registry.add (" hMassLcVsPtvsmult" , " Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries" , {HistType::kTH3F , {{axisMassLc}, {axisPtLc}, {axisCent}}});
@@ -452,7 +451,6 @@ struct HfCorrelatorLcHadrons {
452451
453452 if (candidate.isSelLcToPKPi () >= selectionFlagLc) {
454453 registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
455- // registry.fill(HIST("hMassLcVsPt"), hfHelper.invMassLcToPKPi(candidate), candidate.pt(), efficiencyWeightLc);
456454 registry.fill (HIST (" hMassLcData" ), hfHelper.invMassLcToPKPi (candidate), efficiencyWeightLc);
457455 registry.fill (HIST (" hSelectionStatusLcToPKPi" ), candidate.isSelLcToPKPi ());
458456 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
@@ -463,7 +461,6 @@ struct HfCorrelatorLcHadrons {
463461 }
464462 if (candidate.isSelLcToPiKP () >= selectionFlagLc) {
465463 registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPiKP (candidate), candidate.pt (), cent, efficiencyWeightLc);
466- // registry.fill(HIST("hMassLcVsPt"), hfHelper.invMassLcToPiKP(candidate), candidate.pt(), efficiencyWeightLc);
467464 registry.fill (HIST (" hMassLcData" ), hfHelper.invMassLcToPiKP (candidate), efficiencyWeightLc);
468465 registry.fill (HIST (" hSelectionStatusLcToPiKP" ), candidate.isSelLcToPiKP ());
469466 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
@@ -547,6 +544,7 @@ struct HfCorrelatorLcHadrons {
547544 } // end outer Lc loop
548545 registry.fill (HIST (" hZvtx" ), collision.posZ ());
549546 registry.fill (HIST (" hMultFT0M" ), collision.multFT0M ());
547+ registry.fill (HIST (" hCentFT0M" ), cent);
550548 }
551549 PROCESS_SWITCH (HfCorrelatorLcHadrons, processData, " Process data" , true );
552550
0 commit comments