@@ -122,7 +122,7 @@ struct HfCorrelatorLcHadronsSelection {
122122 isNosameBunchPileUp = static_cast <bool >(collision.selection_bit (o2::aod::evsel::kNoSameBunchPileup ));
123123 }
124124
125- isCentInRange = cent >= centMin && cent < centMax;
125+ isCentInRange = ( cent >= centMin && cent < centMax) ;
126126 isSelColl = isLcFound && isSel8 && isNosameBunchPileUp && isCentInRange;
127127 lcSel (isSelColl);
128128 }
@@ -225,6 +225,7 @@ struct HfCorrelatorLcHadrons {
225225 Configurable<bool > isRecTrkPhyPrimary{" isRecTrkPhyPrimary" , true , " Calculate the efficiency of reconstructed primary physical tracks" };
226226 Configurable<bool > calEffLcEvent{" calEffLcEvent" , true , " Calculate the efficiency of Lc candidate" };
227227 Configurable<float > eventFractionToAnalyze{" eventFractionToAnalyze" , -1 , " Fraction of events to analyze (use only for ME offline on very large samples)" };
228+ Configurable<bool > isMultiplicityDependent{" isMultiplicityDependent" , false , " Flag for multiplicity dependent analyses" };
228229
229230 HfHelper hfHelper;
230231 SliceCache cache;
@@ -305,9 +306,12 @@ struct HfCorrelatorLcHadrons {
305306 registry.add (" hCentFT0M" ," Centrality FT0M; Centrality;entries" , {HistType::kTH1F , {{100 , 0 ., 100 .}}});
306307 registry.add (" hLcBin" , " Lc selected in pool Bin;pool Bin;entries" , {HistType::kTH1F , {{9 , 0 ., 9 .}}});
307308 registry.add (" hTracksBin" , " Tracks selected in pool Bin;pool Bin;entries" , {HistType::kTH1F , {{9 , 0 ., 9 .}}});
309+ if (isMultiplicityDependent) {
308310 registry.add (" hMassLcVsPtvsmult" , " Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries" , {HistType::kTH3F , {{axisMassLc}, {axisPtLc}, {axisCent}}});
309-
310- // registry.add("hMassLcVsPt", "Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries", {HistType::kTH2F, {{axisMassLc}, {axisPtLc}}});
311+ }
312+ else {
313+ registry.add (" hMassLcVsPt" , " Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{axisMassLc}, {axisPtLc}}});
314+ }
311315 registry.add (" hMassLcData" , " Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries" , {HistType::kTH1F , {{axisMassLc}}});
312316 registry.add (" hLcPoolBin" , " Lc candidates pool bin" , {HistType::kTH1F , {axisPoolBin}});
313317 registry.add (" hTracksPoolBin" , " Particles associated pool bin" , {HistType::kTH1F , {axisPoolBin}});
@@ -426,7 +430,12 @@ struct HfCorrelatorLcHadrons {
426430 registry.fill (HIST (" hLcBin" ), poolBin);
427431
428432 if (candidate.isSelLcToPKPi () >= selectionFlagLc) {
433+ if (isMultiplicityDependent) {
429434 registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
435+ }
436+ else {
437+ registry.fill (HIST (" hMassLcVsPt" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
438+ }
430439 registry.fill (HIST (" hMassLcData" ), hfHelper.invMassLcToPKPi (candidate), efficiencyWeightLc);
431440 registry.fill (HIST (" hSelectionStatusLcToPKPi" ), candidate.isSelLcToPKPi ());
432441 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
@@ -436,7 +445,12 @@ struct HfCorrelatorLcHadrons {
436445 entryLc (candidate.phi (), candidate.eta (), candidate.pt () * chargeLc, hfHelper.invMassLcToPKPi (candidate), poolBin, gCollisionId , timeStamp);
437446 }
438447 if (candidate.isSelLcToPiKP () >= selectionFlagLc) {
439- registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPiKP (candidate), candidate.pt (), cent, efficiencyWeightLc);
448+ if (isMultiplicityDependent) {
449+ registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
450+ }
451+ else {
452+ registry.fill (HIST (" hMassLcVsPt" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
453+ }
440454 registry.fill (HIST (" hMassLcData" ), hfHelper.invMassLcToPiKP (candidate), efficiencyWeightLc);
441455 registry.fill (HIST (" hSelectionStatusLcToPiKP" ), candidate.isSelLcToPiKP ());
442456 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
0 commit comments