Skip to content

Commit ede5910

Browse files
authored
[PWGCF] Femto: split D0/D0bar mass QA by candidate sign (#17338)
1 parent 84af8ca commit ede5910

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

PWGCF/Femto/Core/charmHadronBuilder.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,6 @@ class CharmHadronBuilder
369369
}
370370
if (mProduceD0Extras) {
371371
d0Products.producedD0Extras(
372-
mHfHelper.invMassD0ToPiK(candidate),
373-
mHfHelper.invMassD0barToKPi(candidate),
374372
candidate.cpa(),
375373
candidate.cpaXY(),
376374
candidate.decayLength(),

PWGCF/Femto/Core/charmHadronHistManager.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ template <auto& Prefix>
102102
struct ConfD0QaBinning : o2::framework::ConfigurableGroup {
103103
std::string prefix = Prefix;
104104
o2::framework::Configurable<bool> plotTopology{"plotTopology", true, "Generate topological QA plots (cpa, decayLength, impactParameterProduct, cosThetaStar)"};
105-
o2::framework::ConfigurableAxis massD0{"massD0", {{200, 1.7, 2.0}}, "Mass for D0 (Kpi) hypothesis"};
106-
o2::framework::ConfigurableAxis massD0bar{"massD0bar", {{200, 1.7, 2.0}}, "Mass for D0bar (piK) hypothesis"};
105+
o2::framework::ConfigurableAxis massD0{"massD0", {{200, 1.7, 2.0}}, "Mass of candidates selected as D0"};
106+
o2::framework::ConfigurableAxis massD0bar{"massD0bar", {{200, 1.7, 2.0}}, "Mass of candidates selected as D0bar"};
107107
o2::framework::ConfigurableAxis mlScore{"mlScore", {{100, 0.f, 1.f}}, "BDT ML score (bkg/prompt/non-prompt)"};
108108
o2::framework::ConfigurableAxis cpa{"cpa", {{100, 0.9f, 1.f}}, "Cosine of pointing angle"};
109109
o2::framework::ConfigurableAxis decayLength{"decayLength", {{200, 0.f, 0.2f}}, "Decay length (cm)"};
@@ -126,8 +126,8 @@ constexpr std::array<histmanager::HistInfo<CharmHadronHist>, kCharmHadronHistLas
126126
{kPtVsEta, o2::framework::HistType::kTH2F, "hPtVsEta", "p_{T} vs #eta; p_{T} (GeV/#it{c}); #eta"},
127127
{kPtVsPhi, o2::framework::HistType::kTH2F, "hPtVsPhi", "p_{T} vs #varphi; p_{T} (GeV/#it{c}); #varphi"},
128128
{kPhiVsEta, o2::framework::HistType::kTH2F, "hPhiVsEta", "#varphi vs #eta; #varphi; #eta"},
129-
{kMassD0, o2::framework::HistType::kTH1F, "hMassD0", "D0 (K#pi) mass; m_{K#pi} (GeV/#it{c}^{2}); Entries"},
130-
{kMassD0bar, o2::framework::HistType::kTH1F, "hMassD0bar", "#bar{D0} (#piK) mass; m_{#piK} (GeV/#it{c}^{2}); Entries"},
129+
{kMassD0, o2::framework::HistType::kTH1F, "hMassD0", "Invariant mass of D^{0} candidates; m_{Inv} (GeV/#it{c}^{2}); Entries"},
130+
{kMassD0bar, o2::framework::HistType::kTH1F, "hMassD0bar", "Invariant mass of #bar{D}^{0} candidates; m_{Inv} (GeV/#it{c}^{2}); Entries"},
131131
{kMlBkg, o2::framework::HistType::kTH1F, "hMlBkg", "BDT background score; ML score (bkg); Entries"},
132132
{kMlPrompt, o2::framework::HistType::kTH1F, "hMlPrompt", "BDT prompt score; ML score (prompt); Entries"},
133133
{kMlNonPrompt, o2::framework::HistType::kTH1F, "hMlNonPrompt", "BDT non-prompt score; ML score (non-prompt); Entries"},
@@ -424,8 +424,12 @@ class CharmHadronHistManager
424424
template <typename T>
425425
void fillQa(T const& charmHadronCandidate)
426426
{
427-
mHistogramRegistry->fill(HIST(charmHadronPrefix) + HIST(QaDir) + HIST(getHistName(kMassD0, HistTable)), charmHadronCandidate.massD0());
428-
mHistogramRegistry->fill(HIST(charmHadronPrefix) + HIST(QaDir) + HIST(getHistName(kMassD0bar, HistTable)), charmHadronCandidate.massD0bar());
427+
// invariant mass split by hypothesis: D0 (sign > 0) or D0bar (sign < 0)
428+
if (charmHadronCandidate.sign() > 0) {
429+
mHistogramRegistry->fill(HIST(charmHadronPrefix) + HIST(QaDir) + HIST(getHistName(kMassD0, HistTable)), charmHadronCandidate.mass());
430+
} else {
431+
mHistogramRegistry->fill(HIST(charmHadronPrefix) + HIST(QaDir) + HIST(getHistName(kMassD0bar, HistTable)), charmHadronCandidate.mass());
432+
}
429433

430434
// BDT scores of the accepted hypothesis: D0 (sign > 0) or D0bar (sign < 0)
431435
float mlBkg = 0.f;

PWGCF/Femto/DataModel/FemtoTables.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,8 +1172,6 @@ DECLARE_SOA_INDEX_COLUMN_FULL(PosDau, posDau, int32_t, FTracks, "_PosDau"); //!
11721172
DECLARE_SOA_INDEX_COLUMN_FULL(NegDau, negDau, int32_t, FTracks, "_NegDau"); //! - prong (kaon in D0)
11731173

11741174
// QA/debug columns
1175-
DECLARE_SOA_COLUMN(MassD0, massD0, float); //! Kpi-hypothesis mass
1176-
DECLARE_SOA_COLUMN(MassD0bar, massD0bar, float); //! piK-hypothesis mass
11771175
DECLARE_SOA_COLUMN(Cpa, cpa, float);
11781176
DECLARE_SOA_COLUMN(CpaXY, cpaXY, float);
11791177
DECLARE_SOA_COLUMN(DecayLength, decayLength, float);
@@ -1216,8 +1214,6 @@ using FD0Masks = FD0Masks_001;
12161214
using StoredFD0Masks = StoredFD0Masks_001;
12171215

12181216
DECLARE_SOA_TABLE_STAGED_VERSIONED(FD0Extras_001, "FD0EXTRA", 1, //! femto D0 QA / debug
1219-
femtocharmhadrons::MassD0, // both hypotheses; the main
1220-
femtocharmhadrons::MassD0bar, // table only stores the accepted one
12211217
femtocharmhadrons::Cpa,
12221218
femtocharmhadrons::CpaXY,
12231219
femtocharmhadrons::DecayLength,

0 commit comments

Comments
 (0)