@@ -268,7 +268,7 @@ struct HfTaskCorrelationLcHadrons {
268268 registry.add (" hDeltaPhiPtIntSidebandsMcRec" , stringLcHadron + stringSideband + stringDeltaPhi + " entries" , {HistType::kTH1D , {axisDeltaPhi}});
269269 registry.add (" hCorrel2DPtIntSidebandsMcRec" , stringLcHadron + stringSideband + stringDeltaPhi + stringDeltaEta + " entries" , {HistType::kTH2F , {{axisDeltaPhi}, {axisDeltaEta}}});
270270 registry.add (" hCorrel2DVsPtSidebandsMcRec" , stringLcHadron + stringSideband + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisPoolBin}}});
271- registry.add (" hCorrel2DVsPtPhysicalPrimaryMcRec" , stringLcHadron + " (only true primary particles)" + stringSignal, {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisLcPrompt}, {axisPoolBin}}});
271+ registry.add (" hCorrel2DVsPtPhysicalPrimaryMcRec" , stringLcHadron + " (only true primary particles)" + stringSignal, {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisLcPrompt}, {axisPoolBin},{axisCentFT0M} }});
272272 registry.add (" hCorrel2DVsPtTrueLcPhysicalPrimaryMcRec" , stringLcHadron + " (only true Lc, and true primary particles)" + stringSignal, {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisLcPrompt}, {axisPoolBin}}});
273273 registry.add (" hDeltaEtaPtIntSidebandLeftMcRec" , stringLcHadron + " Left" + stringSideband + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTH1D , {axisDeltaEta}});
274274 registry.add (" hDeltaPhiPtIntSidebandLeftMcRec" , stringLcHadron + " Left" + stringSideband + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTH1D , {axisDeltaPhi}});
@@ -282,8 +282,8 @@ struct HfTaskCorrelationLcHadrons {
282282 registry.add (" hCorrel2DVsPtSignalRegionNonPromptLcNonPromptHadronMcRec" , stringLcHadron + " signal region PromptLc - NonPrompt Track MC reco" , {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisPoolBin}}});
283283 registry.add (" hCorrel2DVsPtSignalRegionTruePromptLcPromptHadronMcRec" , stringLcHadron + " signal region and true PromptLc - Prompt Track MC reco" , {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisPoolBin}}});
284284 registry.add (" hCorrel2DVsPtSignalRegionTrueNonPromptLcNonPromptHadronMcRec" , stringLcHadron + " signal region and true PromptLc - NonPrompt Track MC reco" , {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisPoolBin}}});
285- registry.add (" hCorrel2DVsPtSignalMcRec" , stringLcHadron + stringSignal + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisPoolBin}}});
286- registry.add (" hCorrel2DVsPtSignalRegionMcRec" , stringLcHadron + stringSignal + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisLcPrompt}, {axisPoolBin}}});
285+ registry.add (" hCorrel2DVsPtSignalMcRec" , stringLcHadron + stringSignal + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M} }});
286+ registry.add (" hCorrel2DVsPtSignalRegionMcRec" , stringLcHadron + stringSignal + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisLcPrompt}, {axisPoolBin},{axisCentFT0M} }});
287287 registry.add (" hCorrel2DVsPtBkgMcRec" , stringLcHadron + stringSignal + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseD , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisPoolBin}}});
288288
289289 registry.get <THnSparse>(HIST (" hCorrel2DVsPtSidebandLeftMcRec" ))->Sumw2 ();
@@ -636,6 +636,13 @@ struct HfTaskCorrelationLcHadrons {
636636 bool const isAutoCorrelated = pairEntry.isAutoCorrelated ();
637637 int signPair = 0 ;
638638
639+ float cent = 0 .;
640+ if (useCentrality) {
641+ cent = pairEntry.cent ();
642+ }
643+
644+ LOGF (info, " haha big boss lets see Centrality = %.2f" , cent);
645+
639646 // reject entries outside pT ranges of interest
640647 if (ptLc < binsPtEfficiencyLc->front () || ptLc > binsPtEfficiencyLc->back ()) {
641648 continue ;
@@ -696,7 +703,7 @@ struct HfTaskCorrelationLcHadrons {
696703 if (fillSign) {
697704 registry.fill (HIST (" hCorrel2DVsPtSignSignalMcRec" ), deltaPhi, deltaEta, ptLc, ptHadron, signPair, poolBin, efficiencyWeight);
698705 } else {
699- registry.fill (HIST (" hCorrel2DVsPtSignalMcRec" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, efficiencyWeight);
706+ registry.fill (HIST (" hCorrel2DVsPtSignalMcRec" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, efficiencyWeight);
700707 }
701708 } else {
702709 if (fillSign) {
@@ -713,13 +720,13 @@ struct HfTaskCorrelationLcHadrons {
713720 if (fillSign) {
714721 registry.fill (HIST (" hCorrel2DVsPtSignSignalRegionMcRec" ), deltaPhi, deltaEta, ptLc, ptHadron, signPair, poolBin, efficiencyWeight);
715722 } else {
716- registry.fill (HIST (" hCorrel2DVsPtSignalRegionMcRec" ), deltaPhi, deltaEta, ptLc, ptHadron, statusLcPrompt, poolBin, efficiencyWeight);
723+ registry.fill (HIST (" hCorrel2DVsPtSignalRegionMcRec" ), deltaPhi, deltaEta, ptLc, ptHadron, statusLcPrompt, poolBin, cent, efficiencyWeight);
717724 }
718725 registry.fill (HIST (" hCorrel2DPtIntSignalRegionMcRec" ), deltaPhi, deltaEta, efficiencyWeight);
719726 registry.fill (HIST (" hDeltaEtaPtIntSignalRegionMcRec" ), deltaEta, efficiencyWeight);
720727 registry.fill (HIST (" hDeltaPhiPtIntSignalRegionMcRec" ), deltaPhi, efficiencyWeight);
721728 if (isPhysicalPrimary) {
722- registry.fill (HIST (" hCorrel2DVsPtPhysicalPrimaryMcRec" ), deltaPhi, deltaEta, ptLc, ptHadron, statusLcPrompt, poolBin, efficiencyWeight);
729+ registry.fill (HIST (" hCorrel2DVsPtPhysicalPrimaryMcRec" ), deltaPhi, deltaEta, ptLc, ptHadron, statusLcPrompt, poolBin, cent, efficiencyWeight);
723730 if (pairEntry.signalStatus () != 0 ) {
724731 registry.fill (HIST (" hCorrel2DVsPtTrueLcPhysicalPrimaryMcRec" ), deltaPhi, deltaEta, ptLc, ptHadron, statusLcPrompt, poolBin, efficiencyWeight);
725732 }
0 commit comments