Skip to content

Commit e26fddc

Browse files
committed
Make D0 dual-hypothesis rejection configurable
1 parent 5e80523 commit e26fddc

3 files changed

Lines changed: 128 additions & 73 deletions

File tree

PWGHF/HFC/DataModel/CorrelationTables.h

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ DECLARE_SOA_COLUMN(PtHadron, ptHadron, float); //! T
112112
DECLARE_SOA_COLUMN(MD, mD, float); //! Invariant mass of D0
113113
DECLARE_SOA_COLUMN(MDbar, mDbar, float); //! Invariant mass of D0bar
114114
DECLARE_SOA_COLUMN(MlScoreBkgD0, mlScoreBkgD0, float); //! ML background score for D0 selection
115-
DECLARE_SOA_COLUMN(MlScoreNonPromptD0, mlScoreNonPromptD0, float); //! ML prompt score for D0 selection
115+
DECLARE_SOA_COLUMN(MlScoreNonPromptD0, mlScoreNonPromptD0, float); //! ML non-prompt score for D0 selection
116116
DECLARE_SOA_COLUMN(MlScorePromptD0, mlScorePromptD0, float); //! ML prompt score for D0 selection
117117
DECLARE_SOA_COLUMN(MlScoreBkgD0bar, mlScoreBkgD0bar, float); //! ML background score for D0 selection
118-
DECLARE_SOA_COLUMN(MlScoreNonPromptD0bar, mlScoreNonPromptD0bar, float); //! ML prompt score for D0 selection
118+
DECLARE_SOA_COLUMN(MlScoreNonPromptD0bar, mlScoreNonPromptD0bar, float); //! ML non-prompt score for D0 selection
119119
DECLARE_SOA_COLUMN(MlScorePromptD0bar, mlScorePromptD0bar, float); //! ML prompt score for D0 selection
120120
DECLARE_SOA_COLUMN(SignalStatus, signalStatus, int); //! Tag for D0,D0bar
121121
DECLARE_SOA_COLUMN(PoolBin, poolBin, int); //! Pool Bin for the MixedEvent
@@ -129,12 +129,12 @@ DECLARE_SOA_COLUMN(IsPrompt, isPrompt, bool); //! U
129129
DECLARE_SOA_COLUMN(IsPhysicalPrimary, isPhysicalPrimary, bool); //! Used in MC-Rec, primary associated particles
130130

131131
enum ParticleTypeData {
132-
D0Only = 1, // Identified as D0
133-
D0barOnly, // Identified as D0bar
134-
D0D0barBoth, // Identified as both D0 and D0bar
135-
D0OnlySoftPi = 11, // Identified as D0 with soft pion
136-
D0barOnlySoftPi, // Identified as D0bar with soft pion
137-
D0D0barBothSoftPi // Identified as both D0 and D0bar with soft pion
132+
D0Only = 1, // Identified as D0
133+
D0barOnly = 2, // Identified as D0bar
134+
D0D0barBoth = 3, // Identified as both D0 and D0bar
135+
D0OnlySoftPi = 11, // Identified as D0 with soft pion
136+
D0barOnlySoftPi = 12, // Identified as D0bar with soft pion
137+
D0D0barBothSoftPi = 13 // Identified as both D0 and D0bar with soft pion
138138
};
139139

140140
enum ParticleTypeMcRec {
@@ -180,8 +180,10 @@ DECLARE_SOA_TABLE(D0CandRecoInfo, "AOD", "D0CANDRECOINFO", //! Ds candidates Rec
180180
aod::hf_correlation_d0_hadron::MDbar,
181181
aod::hf_correlation_d0_hadron::PtD,
182182
aod::hf_correlation_d0_hadron::MlScoreBkgD0,
183+
aod::hf_correlation_d0_hadron::MlScoreNonPromptD0,
183184
aod::hf_correlation_d0_hadron::MlScorePromptD0,
184185
aod::hf_correlation_d0_hadron::MlScoreBkgD0bar,
186+
aod::hf_correlation_d0_hadron::MlScoreNonPromptD0bar,
185187
aod::hf_correlation_d0_hadron::MlScorePromptD0bar);
186188

187189
DECLARE_SOA_TABLE(D0CandGenInfo, "AOD", "D0CANDGENOINFO", //! Ds candidates Generated Information

PWGHF/HFC/TableProducer/correlatorD0Hadrons.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ struct HfCorrelatorD0Hadrons {
487487
registry.fill(HIST("hMLScoresVsMassVsPtVsEtaVsOriginVsCent"), outputMlD0bar[0], outputMlD0bar[1], outputMlD0bar[2], invMassD0bar, candidate.pt(), candidate.eta(), (candidate.isSelD0() != 0) ? o2::aod::hf_correlation_d0_hadron::D0D0barBoth : o2::aod::hf_correlation_d0_hadron::D0barOnly, cent, efficiencyWeight);
488488
entryD0(candidate.phi(), candidate.eta(), candidate.pt(), invMassD0bar, poolBin, gCollisionId, timeStamp, (candidate.isSelD0() != 0) ? o2::aod::hf_correlation_d0_hadron::D0D0barBoth : o2::aod::hf_correlation_d0_hadron::D0barOnly);
489489
}
490-
entryD0CandRecoInfo(invMassD0, invMassD0bar, candidate.pt(), outputMlD0[0], outputMlD0[2], outputMlD0bar[0], outputMlD0bar[2]);
490+
entryD0CandRecoInfo(invMassD0, invMassD0bar, candidate.pt(), outputMlD0[0], outputMlD0[1], outputMlD0[2], outputMlD0bar[0], outputMlD0bar[1], outputMlD0bar[2]);
491491

492492
// ========================== Fill general histos ================================
493493
registry.fill(HIST("hPtCand"), candidate.pt());
@@ -748,7 +748,7 @@ struct HfCorrelatorD0Hadrons {
748748
registry.fill(HIST("hMLScoresVsMassVsPtVsEtaVsOriginVsCent"), outputMlD0bar[0], outputMlD0bar[1], outputMlD0bar[2], invMassD0bar, candidate.pt(), candidate.eta(), isD0Prompt, cent, efficiencyWeight);
749749
entryD0(candidate.phi(), candidate.eta(), candidate.pt(), invMassD0bar, poolBin, gCollisionId, timeStamp, (candidate.isSelD0() != 0) ? o2::aod::hf_correlation_d0_hadron::D0D0barBoth : o2::aod::hf_correlation_d0_hadron::D0barOnly);
750750
}
751-
entryD0CandRecoInfo(invMassD0, invMassD0bar, candidate.pt(), outputMlD0[0], outputMlD0[2], outputMlD0bar[0], outputMlD0bar[2]);
751+
entryD0CandRecoInfo(invMassD0, invMassD0bar, candidate.pt(), outputMlD0[0], outputMlD0[1], outputMlD0[2], outputMlD0bar[0], outputMlD0bar[1], outputMlD0bar[2]);
752752
entryD0CandGenInfo(isD0Prompt);
753753

754754
// ===================== Define parameters for soft pion removal ========================

0 commit comments

Comments
 (0)