Skip to content

Commit 5c53e2e

Browse files
MarcellocostiMarcello Di Costanzoalibuild
authored
[PWGHF] derivedDataCreatorDplusToPiKPi: add new table to study D+ correlated bkgs (#14050)
Co-authored-by: Marcello Di Costanzo <mdicosta@aliceml.cern.ch> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 8b1644e commit 5c53e2e

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

PWGHF/DataModel/DerivedTables.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,18 @@ DECLARE_SOA_TABLE_STAGED(HfDplusParEs, "HFDPPARE", //! Table with additional can
859859
hf_cand_par::Ct,
860860
o2::soa::Marker<MarkerDplus>);
861861

862+
DECLARE_SOA_TABLE_STAGED(HfDplusDaugs, "HFDPDAUG", //! Table to study daughter properties
863+
hf_cand_base::Pt,
864+
hf_cand::Chi2PCA,
865+
hf_cand_par::DecayLength,
866+
hf_cand_par::PProng0,
867+
hf_cand_par::PProng1,
868+
hf_cand_par::PProng2,
869+
hf_cand_par::NSigTpcTofPi0,
870+
hf_cand_par::NSigTpcTofKa1,
871+
hf_cand_par::NSigTpcTofPi2,
872+
o2::soa::Marker<MarkerDplus>);
873+
862874
DECLARE_SOA_TABLE_STAGED(HfDplusMls, "HFDPML", //! Table with candidate selection ML scores
863875
hf_cand_mc::MlScores,
864876
o2::soa::Marker<MarkerDplus>);

PWGHF/TableProducer/derivedDataCreatorDplusToPiKPi.cxx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ struct HfDerivedDataCreatorDplusToPiKPi {
7070
Produces<o2::aod::HfDplusPars> rowCandidatePar;
7171
Produces<o2::aod::HfDplusParEs> rowCandidateParE;
7272
Produces<o2::aod::HfDplusSels> rowCandidateSel;
73+
Produces<o2::aod::HfDplusDaugs> rowCandidateDaugs;
7374
Produces<o2::aod::HfDplusMls> rowCandidateMl;
7475
Produces<o2::aod::HfDplusIds> rowCandidateId;
7576
Produces<o2::aod::HfDplusMcs> rowCandidateMc;
@@ -79,6 +80,7 @@ struct HfDerivedDataCreatorDplusToPiKPi {
7980
Configurable<bool> fillCandidatePar{"fillCandidatePar", true, "Fill candidate parameters"};
8081
Configurable<bool> fillCandidateParE{"fillCandidateParE", true, "Fill candidate extended parameters"};
8182
Configurable<bool> fillCandidateSel{"fillCandidateSel", true, "Fill candidate selection flags"};
83+
Configurable<bool> fillCandidateDaugs{"fillCandidateDaugs", false, "Fill candidate daughter parameters"};
8284
Configurable<bool> fillCandidateMl{"fillCandidateMl", true, "Fill candidate selection ML scores"};
8385
Configurable<bool> fillCandidateId{"fillCandidateId", true, "Fill original indices from the candidate table"};
8486
Configurable<bool> fillCandidateMc{"fillCandidateMc", true, "Fill candidate MC info"};
@@ -191,6 +193,18 @@ struct HfDerivedDataCreatorDplusToPiKPi {
191193
rowCandidateSel(
192194
BIT(candFlag));
193195
}
196+
if (fillCandidateDaugs) {
197+
rowCandidateDaugs(
198+
candidate.pt(),
199+
candidate.chi2PCA(),
200+
candidate.decayLength(),
201+
RecoDecay::p(candidate.pxProng0(), candidate.pyProng0(), candidate.pzProng0()),
202+
RecoDecay::p(candidate.pxProng1(), candidate.pyProng1(), candidate.pzProng1()),
203+
RecoDecay::p(candidate.pxProng2(), candidate.pyProng2(), candidate.pzProng2()),
204+
candidate.tpcTofNSigmaPi0(),
205+
candidate.tpcTofNSigmaKa1(),
206+
candidate.tpcTofNSigmaPi2());
207+
}
194208
if (fillCandidateMl) {
195209
rowCandidateMl(
196210
mlScores);

0 commit comments

Comments
 (0)