@@ -142,7 +142,7 @@ struct HfCorrelatorLcHadronsSelection {
142142 isNosameBunchPileUp = static_cast <bool >(collision.selection_bit (o2::aod::evsel::kNoSameBunchPileup ));
143143 }
144144
145- isCentInRange = cent >= centMin && cent < centMax;
145+ isCentInRange = ( cent >= centMin && cent < centMax) ;
146146 isSelColl = isLcFound && isSel8 && isNosameBunchPileUp && isCentInRange;
147147 lcSel (isSelColl);
148148 }
@@ -245,6 +245,7 @@ struct HfCorrelatorLcHadrons {
245245 Configurable<bool > isRecTrkPhyPrimary{" isRecTrkPhyPrimary" , true , " Calculate the efficiency of reconstructed primary physical tracks" };
246246 Configurable<bool > calEffLcEvent{" calEffLcEvent" , true , " Calculate the efficiency of Lc candidate" };
247247 Configurable<float > eventFractionToAnalyze{" eventFractionToAnalyze" , -1 , " Fraction of events to analyze (use only for ME offline on very large samples)" };
248+ Configurable<bool > isMultiplicityDependent{" isMultiplicityDependent" , false , " Flag for multiplicity dependent analyses" };
248249
249250 HfHelper hfHelper;
250251 SliceCache cache;
@@ -327,9 +328,12 @@ struct HfCorrelatorLcHadrons {
327328 registry.add (" hCentFT0M" ," Centrality FT0M; Centrality;entries" , {HistType::kTH1F , {{100 , 0 ., 100 .}}});
328329 registry.add (" hLcBin" , " Lc selected in pool Bin;pool Bin;entries" , {HistType::kTH1F , {{9 , 0 ., 9 .}}});
329330 registry.add (" hTracksBin" , " Tracks selected in pool Bin;pool Bin;entries" , {HistType::kTH1F , {{9 , 0 ., 9 .}}});
331+ if (isMultiplicityDependent) {
330332 registry.add (" hMassLcVsPtvsmult" , " Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries" , {HistType::kTH3F , {{axisMassLc}, {axisPtLc}, {axisCent}}});
331-
332- // registry.add("hMassLcVsPt", "Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries", {HistType::kTH2F, {{axisMassLc}, {axisPtLc}}});
333+ }
334+ else {
335+ registry.add (" hMassLcVsPt" , " Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries" , {HistType::kTH2F , {{axisMassLc}, {axisPtLc}}});
336+ }
333337 registry.add (" hMassLcData" , " Lc candidates;inv. mass (p K #pi) (GeV/#it{c}^{2});entries" , {HistType::kTH1F , {{axisMassLc}}});
334338 registry.add (" hLcPoolBin" , " Lc candidates pool bin" , {HistType::kTH1F , {axisPoolBin}});
335339 registry.add (" hTracksPoolBin" , " Particles associated pool bin" , {HistType::kTH1F , {axisPoolBin}});
@@ -448,7 +452,12 @@ struct HfCorrelatorLcHadrons {
448452 registry.fill (HIST (" hLcBin" ), poolBin);
449453
450454 if (candidate.isSelLcToPKPi () >= selectionFlagLc) {
455+ if (isMultiplicityDependent) {
451456 registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
457+ }
458+ else {
459+ registry.fill (HIST (" hMassLcVsPt" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
460+ }
452461 registry.fill (HIST (" hMassLcData" ), hfHelper.invMassLcToPKPi (candidate), efficiencyWeightLc);
453462 registry.fill (HIST (" hSelectionStatusLcToPKPi" ), candidate.isSelLcToPKPi ());
454463 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
@@ -458,7 +467,12 @@ struct HfCorrelatorLcHadrons {
458467 entryLc (candidate.phi (), candidate.eta (), candidate.pt () * chargeLc, hfHelper.invMassLcToPKPi (candidate), poolBin, gCollisionId , timeStamp);
459468 }
460469 if (candidate.isSelLcToPiKP () >= selectionFlagLc) {
461- registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPiKP (candidate), candidate.pt (), cent, efficiencyWeightLc);
470+ if (isMultiplicityDependent) {
471+ registry.fill (HIST (" hMassLcVsPtvsmult" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
472+ }
473+ else {
474+ registry.fill (HIST (" hMassLcVsPt" ), hfHelper.invMassLcToPKPi (candidate), candidate.pt (), cent, efficiencyWeightLc);
475+ }
462476 registry.fill (HIST (" hMassLcData" ), hfHelper.invMassLcToPiKP (candidate), efficiencyWeightLc);
463477 registry.fill (HIST (" hSelectionStatusLcToPiKP" ), candidate.isSelLcToPiKP ());
464478 for (unsigned int iclass = 0 ; iclass < classMl->size (); iclass++) {
0 commit comments