Skip to content

Commit 0f6225e

Browse files
Mingze129vkucera
andauthored
[PWGHF] Add derived-data creator for D* -> D0 pi (#11147)
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
1 parent 9856292 commit 0f6225e

File tree

3 files changed

+443
-1
lines changed

3 files changed

+443
-1
lines changed

PWGHF/DataModel/DerivedTables.h

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace o2::aod
3939
// composite species
4040
// B0 → D− π+ (todo)
4141
// B+ → D0 π+
42-
// D*+ → D0 π+ (todo)
42+
// D*+ → D0 π+
4343

4444
// ================
4545
// Collision tables
@@ -274,6 +274,7 @@ DECLARE_TABLES_2P(D0, "D0", d0, 2);
274274
DECLARE_TABLES_3P(Lc, "LC", lc, 3);
275275
DECLARE_TABLES_3P(Dplus, "DP", dplus, 4);
276276
DECLARE_TABLES_3P(Bplus, "BP", bplus, 5);
277+
DECLARE_TABLES_3P(Dstar, "DST", dstar, 6);
277278

278279
// ================
279280
// Additional species-specific candidate tables
@@ -302,6 +303,15 @@ DECLARE_SOA_COLUMN(PtProng0, ptProng0, float);
302303
DECLARE_SOA_COLUMN(PtProng1, ptProng1, float); //! transverse momentum of prong 1
303304
DECLARE_SOA_COLUMN(PtProng2, ptProng2, float); //! transverse momentum of prong 2
304305
DECLARE_SOA_COLUMN(RSecondaryVertex, rSecondaryVertex, float); //! distance of the secondary vertex from the z axis
306+
// D*± → D0(bar) π±
307+
DECLARE_SOA_COLUMN(MassD0, massD0, float); //! invariant mass of D0
308+
DECLARE_SOA_COLUMN(CpaD0, cpaD0, float); //! cosine of pointing angle of D0
309+
DECLARE_SOA_COLUMN(CpaXYD0, cpaXYD0, float); //! cosine of pointing angle in the transverse plane of D0
310+
DECLARE_SOA_COLUMN(DecayLengthD0, decayLengthD0, float); //! decay length of D0
311+
DECLARE_SOA_COLUMN(DecayLengthXYD0, decayLengthXYD0, float); //! decay length in the transverse plane of D0
312+
DECLARE_SOA_COLUMN(DecayLengthNormalisedD0, decayLengthNormalisedD0, float); //! decay length of D0 divided by its uncertainty
313+
DECLARE_SOA_COLUMN(DecayLengthXYNormalisedD0, decayLengthXYNormalisedD0, float); //! decay length in the transverse plane of D0 divided by its uncertainty
314+
DECLARE_SOA_COLUMN(NormalisedImpParamSoftPi, normalisedImpParamSoftPi, float); //! impact parameter of soft pion divided by its uncertainty
305315
// TOF
306316
DECLARE_SOA_COLUMN(NSigTofKa0, nSigTofKa0, float);
307317
DECLARE_SOA_COLUMN(NSigTofKa1, nSigTofKa1, float);
@@ -316,6 +326,7 @@ DECLARE_SOA_COLUMN(NSigTofPiExpKa, nSigTofPiExpKa, float);
316326
DECLARE_SOA_COLUMN(NSigTofPr0, nSigTofPr0, float);
317327
DECLARE_SOA_COLUMN(NSigTofPr1, nSigTofPr1, float);
318328
DECLARE_SOA_COLUMN(NSigTofPr2, nSigTofPr2, float);
329+
DECLARE_SOA_COLUMN(NSigTofPiSoftPi, nSigTofPiSoftPi, float);
319330
// TPC
320331
DECLARE_SOA_COLUMN(NSigTpcKa0, nSigTpcKa0, float);
321332
DECLARE_SOA_COLUMN(NSigTpcKa1, nSigTpcKa1, float);
@@ -330,6 +341,7 @@ DECLARE_SOA_COLUMN(NSigTpcPiExpKa, nSigTpcPiExpKa, float);
330341
DECLARE_SOA_COLUMN(NSigTpcPr0, nSigTpcPr0, float);
331342
DECLARE_SOA_COLUMN(NSigTpcPr1, nSigTpcPr1, float);
332343
DECLARE_SOA_COLUMN(NSigTpcPr2, nSigTpcPr2, float);
344+
DECLARE_SOA_COLUMN(NSigTpcPiSoftPi, nSigTpcPiSoftPi, float);
333345
// TPC+TOF
334346
DECLARE_SOA_COLUMN(NSigTpcTofKa0, nSigTpcTofKa0, float);
335347
DECLARE_SOA_COLUMN(NSigTpcTofKa1, nSigTpcTofKa1, float);
@@ -344,6 +356,7 @@ DECLARE_SOA_COLUMN(NSigTpcTofPiExpKa, nSigTpcTofPiExpKa, float);
344356
DECLARE_SOA_COLUMN(NSigTpcTofPr0, nSigTpcTofPr0, float);
345357
DECLARE_SOA_COLUMN(NSigTpcTofPr1, nSigTpcTofPr1, float);
346358
DECLARE_SOA_COLUMN(NSigTpcTofPr2, nSigTpcTofPr2, float);
359+
DECLARE_SOA_COLUMN(NSigTpcTofPiSoftPi, nSigTpcTofPiSoftPi, float);
347360
} // namespace hf_cand_par
348361

349362
// Candidate properties of the charm daughter candidate used for selection of the beauty candidate
@@ -731,6 +744,59 @@ DECLARE_SOA_TABLE_STAGED(HfDplusMcs, "HFDPMC", //! Table with MC candidate info
731744
hf_cand_mc::FlagMcDecayChanRec,
732745
o2::soa::Marker<MarkerDplus>);
733746

747+
// ----------------
748+
// D*+
749+
// ----------------
750+
751+
DECLARE_SOA_TABLE_STAGED(HfDstarPars, "HFDSTARPAR", //! Table with candidate properties used for selection
752+
hf_cand_dstar::Chi2PCAD0,
753+
hf_cand_par::CpaD0,
754+
hf_cand_par::CpaXYD0,
755+
hf_cand_par::DecayLengthD0,
756+
hf_cand_par::DecayLengthXYD0,
757+
hf_cand_par::DecayLengthNormalisedD0,
758+
hf_cand_par::DecayLengthXYNormalisedD0,
759+
hf_cand::PxProng0,
760+
hf_cand::PyProng0,
761+
hf_cand::PzProng0,
762+
hf_cand::PxProng1,
763+
hf_cand::PyProng1,
764+
hf_cand::PzProng1,
765+
hf_cand_dstar::PxD0,
766+
hf_cand_dstar::PyD0,
767+
hf_cand_dstar::PzD0,
768+
hf_cand_dstar::PxSoftPi,
769+
hf_cand_dstar::PySoftPi,
770+
hf_cand_dstar::PzSoftPi,
771+
hf_cand_dstar::PtSoftPi<hf_cand_dstar::PxSoftPi, hf_cand_dstar::PySoftPi>,
772+
hf_cand_dstar::SignSoftPi,
773+
hf_cand_dstar::PtD0<hf_cand_dstar::PxD0, hf_cand_dstar::PyD0>,
774+
hf_cand_par::MassD0,
775+
hf_cand::ImpactParameter0,
776+
hf_cand::ImpactParameter1,
777+
hf_cand_dstar::ImpParamSoftPi,
778+
hf_cand_par::ImpactParameterNormalised0,
779+
hf_cand_par::ImpactParameterNormalised1,
780+
hf_cand_par::NormalisedImpParamSoftPi,
781+
hf_cand_par::NSigTpcPi0,
782+
hf_cand_par::NSigTofPi0,
783+
hf_cand_par::NSigTpcTofPi0,
784+
hf_cand_par::NSigTpcKa1,
785+
hf_cand_par::NSigTofKa1,
786+
hf_cand_par::NSigTpcTofKa1,
787+
hf_cand_par::NSigTpcPiSoftPi,
788+
hf_cand_par::NSigTofPiSoftPi,
789+
hf_cand_par::NSigTpcTofPiSoftPi,
790+
o2::soa::Marker<MarkerDstar>);
791+
792+
DECLARE_SOA_TABLE_STAGED(HfDstarMls, "HFDSTARML", //! Table with candidate selection ML scores
793+
hf_cand_mc::MlScores,
794+
o2::soa::Marker<MarkerDstar>);
795+
796+
DECLARE_SOA_TABLE_STAGED(HfDstarMcs, "HFDSTARMC", //! Table with MC candidate info
797+
hf_cand_mc::FlagMcMatchRec,
798+
hf_cand_mc::OriginMcRec,
799+
o2::soa::Marker<MarkerDstar>);
734800
} // namespace o2::aod
735801

736802
#endif // PWGHF_DATAMODEL_DERIVEDTABLES_H_

PWGHF/TableProducer/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ o2physics_add_dpl_workflow(derived-data-creator-lc-to-p-k-pi
315315
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
316316
COMPONENT_NAME Analysis)
317317

318+
o2physics_add_dpl_workflow(derived-data-creator-dstar-to-d0-pi
319+
SOURCES derivedDataCreatorDstarToD0Pi.cxx
320+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
321+
COMPONENT_NAME Analysis)
318322
# Converters
319323

320324
o2physics_add_dpl_workflow(converter-dstar-indices

0 commit comments

Comments
 (0)