@@ -108,6 +108,7 @@ struct HfTaskCorrelationLcHadrons {
108108 Configurable<bool > fillHistoMcRec{" fillHistoMcRec" , true , " Flag for filling histograms in MC Rec processes" };
109109 Configurable<bool > fillHistoMcGen{" fillHistoMcGen" , true , " Flag for filling histograms in MC Gen processes" };
110110 Configurable<bool > fillHistoMcEff{" fillHistoMcEff" , true , " Flag for filling histograms in efficiency processes" };
111+ Configurable<int > storeMass{" storeMass" , 1 , " Flag for storing mass information" };
111112 Configurable<int > applyEfficiency{" applyEfficiency" , 1 , " Flag for applying efficiency weights" };
112113 Configurable<bool > loadAccXEffFromCCDB{" loadAccXEffFromCCDB" , false , " Flag for loading efficiency distributions from CCDB" };
113114 Configurable<int > selectionFlagLc{" selectionFlagLc" , 1 , " Selection Flag for Lc" };
@@ -221,16 +222,16 @@ struct HfTaskCorrelationLcHadrons {
221222 registry.add (" hDeltaEtaPtIntSidebands" , stringLcHadron + stringSideband + stringDeltaEta + " entries" , {HistType::kTH1D , {axisDeltaEta}});
222223 registry.add (" hDeltaPhiPtIntSidebands" , stringLcHadron + stringSideband + stringDeltaPhi + " entries" , {HistType::kTH1D , {axisDeltaPhi}});
223224 registry.add (" hCorrel2DPtIntSidebands" , stringLcHadron + stringSideband + stringDeltaPhi + stringDeltaEta + " entries" , {HistType::kTH2F , {{axisDeltaPhi}, {axisDeltaEta}}});
224- registry.add (" hCorrel2DVsPtSidebands" , stringLcHadron + stringSideband + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseF , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M}, {axisMassLc} }});
225+ registry.add (" hCorrel2DVsPtSidebands" , stringLcHadron + stringSideband + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseF , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M}}});
225226 registry.add (" hDeltaEtaPtIntSidebandLeft" , stringLcHadron + " Left" + stringSideband + stringDeltaEta, {HistType::kTH1D , {axisDeltaEta}});
226227 registry.add (" hDeltaPhiPtIntSidebandLeft" , stringLcHadron + " Left" + stringSideband + stringDeltaPhi, {HistType::kTH1D , {axisDeltaPhi}});
227228 registry.add (" hDeltaEtaPtIntSidebandRight" , stringLcHadron + " Right" + stringSideband + stringDeltaEta, {HistType::kTH1D , {axisDeltaEta}});
228229 registry.add (" hDeltaPhiPtIntSidebandRight" , stringLcHadron + " Right" + stringSideband + stringDeltaPhi, {HistType::kTH1D , {axisDeltaPhi}});
229230
230231 if (!fillSign) {
231- registry.add (" hCorrel2DVsPtSidebandLeft" , stringLcHadron + " Left" + stringSideband + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseF , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M}, {axisMassLc} }});
232- registry.add (" hCorrel2DVsPtSidebandRight" , stringLcHadron + " Right" + stringSideband + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseF , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M}, {axisMassLc} }});
233- registry.add (" hCorrel2DVsPtSignalRegion" , stringLcHadron + stringSignal + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseF , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M}, {axisMassLc} }});
232+ registry.add (" hCorrel2DVsPtSidebandLeft" , stringLcHadron + " Left" + stringSideband + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseF , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M}}});
233+ registry.add (" hCorrel2DVsPtSidebandRight" , stringLcHadron + " Right" + stringSideband + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseF , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtLc}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M}}});
234+ registry.add (" hCorrel2DVsPtSignalRegion" , stringLcHadron + stringSignal + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseF , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M}}});
234235 registry.add (" hCorrel2DVsPtGlobalRegion" , stringLcHadron + stringSignal + stringDeltaPhi + stringDeltaEta + stringPtLc + stringPtHadron + " entries" , {HistType::kTHnSparseF , {{axisDeltaPhi}, {axisDeltaEta}, {axisPtCorr}, {axisPtHadron}, {axisPoolBin}, {axisCentFT0M}, {axisMassLc}}});
235236 registry.get <THnSparse>(HIST (" hCorrel2DVsPtSidebandLeft" ))->Sumw2 ();
236237 registry.get <THnSparse>(HIST (" hCorrel2DVsPtSidebandRight" ))->Sumw2 ();
@@ -514,13 +515,16 @@ struct HfTaskCorrelationLcHadrons {
514515 registry.fill (HIST (" hCorrel2DVsPtSignMass" ), deltaPhi, deltaEta, ptLc, ptHadron, massLc, signPair, poolBin, efficiencyWeight);
515516 }
516517 // check if correlation entry belongs to signal region, sidebands or is outside both, and fill correlation plots
517- registry.fill (HIST (" hCorrel2DVsPtGlobalRegion" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, massLc, efficiencyWeight);
518+ if (storeMass) {
519+ registry.fill (HIST (" hCorrel2DVsPtGlobalRegion" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, massLc, efficiencyWeight);
520+ continue ;
521+ }
518522 if (massLc > signalRegionInner->at (ptBinLc) && massLc < signalRegionOuter->at (ptBinLc)) {
519523 // in signal region
520524 if (fillSign) {
521525 registry.fill (HIST (" hCorrel2DVsPtSignSignalRegion" ), deltaPhi, deltaEta, ptLc, ptHadron, signPair, poolBin, efficiencyWeight);
522526 } else {
523- registry.fill (HIST (" hCorrel2DVsPtSignalRegion" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, massLc, efficiencyWeight);
527+ registry.fill (HIST (" hCorrel2DVsPtSignalRegion" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, efficiencyWeight);
524528 }
525529 registry.fill (HIST (" hCorrel2DPtIntSignalRegion" ), deltaPhi, deltaEta, efficiencyWeight);
526530 registry.fill (HIST (" hDeltaEtaPtIntSignalRegion" ), deltaEta, efficiencyWeight);
@@ -531,11 +535,11 @@ struct HfTaskCorrelationLcHadrons {
531535 if (fillSign) {
532536 registry.fill (HIST (" hCorrel2DVsPtSignSidebandLeft" ), deltaPhi, deltaEta, ptLc, ptHadron, signPair, poolBin, efficiencyWeight);
533537 } else {
534- registry.fill (HIST (" hCorrel2DVsPtSidebandLeft" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, massLc, efficiencyWeight);
538+ registry.fill (HIST (" hCorrel2DVsPtSidebandLeft" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, efficiencyWeight);
535539 }
536540 registry.fill (HIST (" hDeltaEtaPtIntSidebandLeft" ), deltaEta, efficiencyWeight);
537541 registry.fill (HIST (" hDeltaPhiPtIntSidebandLeft" ), deltaPhi, efficiencyWeight);
538- registry.fill (HIST (" hCorrel2DVsPtSidebands" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, massLc, efficiencyWeight);
542+ registry.fill (HIST (" hCorrel2DVsPtSidebands" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, efficiencyWeight);
539543 registry.fill (HIST (" hCorrel2DPtIntSidebands" ), deltaPhi, deltaEta, efficiencyWeight);
540544 registry.fill (HIST (" hDeltaEtaPtIntSidebands" ), deltaEta, efficiencyWeight);
541545 registry.fill (HIST (" hDeltaPhiPtIntSidebands" ), deltaPhi, efficiencyWeight);
@@ -545,11 +549,11 @@ struct HfTaskCorrelationLcHadrons {
545549 if (fillSign) {
546550 registry.fill (HIST (" hCorrel2DVsPtSignSidebandRight" ), deltaPhi, deltaEta, ptLc, ptHadron, signPair, poolBin, efficiencyWeight);
547551 } else {
548- registry.fill (HIST (" hCorrel2DVsPtSidebandRight" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, massLc, efficiencyWeight);
552+ registry.fill (HIST (" hCorrel2DVsPtSidebandRight" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, efficiencyWeight);
549553 }
550554 registry.fill (HIST (" hDeltaEtaPtIntSidebandRight" ), deltaEta, efficiencyWeight);
551555 registry.fill (HIST (" hDeltaPhiPtIntSidebandRight" ), deltaPhi, efficiencyWeight);
552- registry.fill (HIST (" hCorrel2DVsPtSidebands" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, massLc, efficiencyWeight);
556+ registry.fill (HIST (" hCorrel2DVsPtSidebands" ), deltaPhi, deltaEta, ptLc, ptHadron, poolBin, cent, efficiencyWeight);
553557 registry.fill (HIST (" hCorrel2DPtIntSidebands" ), deltaPhi, deltaEta, efficiencyWeight);
554558 registry.fill (HIST (" hDeltaEtaPtIntSidebands" ), deltaEta, efficiencyWeight);
555559 registry.fill (HIST (" hDeltaPhiPtIntSidebands" ), deltaPhi, efficiencyWeight);
0 commit comments