@@ -72,11 +72,12 @@ struct HfCorrelatorLcHadronsSelection {
7272 Configurable<int > selectionFlagLc{" selectionFlagLc" , 1 , " Selection Flag for Lc" };
7373 Configurable<float > yCandMax{" yCandMax" , 0.8 , " max. cand. rapidity" };
7474 Configurable<float > ptCandMin{" ptCandMin" , 1 ., " min. cand. pT" };
75+ Configurable<float > centMin{" centMin" , 0 ., " Minimum Centrality" };
76+ Configurable<float > centMax{" centMax" , 100 .," Maximum Centrality" };
7577
7678 HfHelper hfHelper;
7779 SliceCache cache;
7880
79- // using SelCollisions = soa::Join<aod::Collisions, aod::EvSels>;
8081 using SelCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::CentFT0Ms>;
8182 using CandidatesLcData = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelLc>>;
8283 using CandidatesLcMcRec = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelLc, aod::HfCand3ProngMcRec>>;
@@ -120,9 +121,8 @@ struct HfCorrelatorLcHadronsSelection {
120121 if (selNoSameBunchPileUpColl) {
121122 isNosameBunchPileUp = static_cast <bool >(collision.selection_bit (o2::aod::evsel::kNoSameBunchPileup ));
122123 }
123- // isSelColl = isLcFound && isSel8 && isNosameBunchPileUp;
124- // lcSel(isSelColl);
125- isCentInRange = cent >= 0 . && cent < 100 .; // adjust percentile as needed
124+
125+ isCentInRange = cent >= centMin && cent < centMax;
126126 isSelColl = isLcFound && isSel8 && isNosameBunchPileUp && isCentInRange;
127127 lcSel (isSelColl);
128128 }
@@ -194,7 +194,7 @@ struct HfCorrelatorLcHadrons {
194194 Produces<aod::Hadron> entryHadron;
195195 Produces<aod::LcHadronTrkPID> entryTrkPID;
196196
197- Configurable<int > selectionFlagLc{" selectionFlagLc" , 1 , " Selection Flag for Lc in mult " };
197+ Configurable<int > selectionFlagLc{" selectionFlagLc" , 1 , " Selection Flag for Lc" };
198198 Configurable<int > numberEventsMixed{" numberEventsMixed" , 5 , " number of events mixed in ME process" };
199199 Configurable<int > applyEfficiency{" applyEfficiency" , 1 , " Flag for applying Lc efficiency weights" };
200200 Configurable<float > yCandMax{" yCandMax" , 0.8 , " max. cand. rapidity" };
@@ -237,8 +237,6 @@ struct HfCorrelatorLcHadrons {
237237
238238 // Event Mixing for the Data Mode
239239 using SelCollisionsWithLc = soa::Filtered<soa::Join<aod::Collisions, aod::Mults, aod::EvSels, aod::LcSelection, aod::CentFT0Ms>>;
240-
241- // using SelCollisionsWithLc = soa::Filtered<soa::Join<aod::Collisions, aod::Mults, aod::EvSels, aod::LcSelection>>;
242240 using SelCollisionsWithLcMc = soa::Filtered<soa::Join<aod::McCollisions, aod::LcSelection, aod::MultsExtraMC>>; // collisionFilter applied
243241 using CandidatesLcData = soa::Filtered<soa::Join<aod::HfCand3Prong, aod::HfSelLc, aod::HfMlLcToPKPi>>;
244242 // Event Mixing for the MCRec Mode
@@ -305,6 +303,7 @@ struct HfCorrelatorLcHadrons {
305303 registry.add (" hMultiplicity" , " multiplicity;multiplicity;entries" , {HistType::kTH1F , {{10000 , 0 ., 10000 .}}});
306304 registry.add (" hMultFT0M" , " multiplicity;multiplicity;entries" , {HistType::kTH1F , {{10000 , 0 ., 10000 .}}});
307305 registry.add (" hZvtx" , " z vertex;z vertex;entries" , {HistType::kTH1F , {{200 , -20 ., 20 .}}});
306+ registry.add (" hCentFT0M" ," Centrality FT0M; Centrality;entries" , {HistType::kTH1F , {{100 , 0 ., 100 .}}});
308307 registry.add (" hLcBin" , " Lc selected in pool Bin;pool Bin;entries" , {HistType::kTH1F , {{9 , 0 ., 9 .}}});
309308 registry.add (" hTracksBin" , " Tracks selected in pool Bin;pool Bin;entries" , {HistType::kTH1F , {{9 , 0 ., 9 .}}});
310309 registry.add (" hMassLcVsPtvsmult" , " Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries" , {HistType::kTH3F , {{axisMassLc}, {axisPtLc}, {axisCent}}});
@@ -430,7 +429,6 @@ struct HfCorrelatorLcHadrons {
430429
431430 if (candidate.isSelLcToPKPi () >= selectionFlagLc) {
432431 registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
433- // registry.fill(HIST("hMassLcVsPt"), hfHelper.invMassLcToPKPi(candidate), candidate.pt(), efficiencyWeightLc);
434432 registry.fill (HIST (" hMassLcData" ), hfHelper.invMassLcToPKPi (candidate), efficiencyWeightLc);
435433 registry.fill (HIST (" hSelectionStatusLcToPKPi" ), candidate.isSelLcToPKPi ());
436434 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
@@ -441,7 +439,6 @@ struct HfCorrelatorLcHadrons {
441439 }
442440 if (candidate.isSelLcToPiKP () >= selectionFlagLc) {
443441 registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPiKP (candidate), candidate.pt (), cent, efficiencyWeightLc);
444- // registry.fill(HIST("hMassLcVsPt"), hfHelper.invMassLcToPiKP(candidate), candidate.pt(), efficiencyWeightLc);
445442 registry.fill (HIST (" hMassLcData" ), hfHelper.invMassLcToPiKP (candidate), efficiencyWeightLc);
446443 registry.fill (HIST (" hSelectionStatusLcToPiKP" ), candidate.isSelLcToPiKP ());
447444 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
@@ -525,6 +522,7 @@ struct HfCorrelatorLcHadrons {
525522 } // end outer Lc loop
526523 registry.fill (HIST (" hZvtx" ), collision.posZ ());
527524 registry.fill (HIST (" hMultFT0M" ), collision.multFT0M ());
525+ registry.fill (HIST (" hCentFT0M" ), cent);
528526 }
529527 PROCESS_SWITCH (HfCorrelatorLcHadrons, processData, " Process data" , true );
530528
0 commit comments