Skip to content

Commit c6afeec

Browse files
committed
[PWGHF] test pp channel for eta_c
1 parent 3f1700f commit c6afeec

File tree

5 files changed

+538
-58
lines changed

5 files changed

+538
-58
lines changed

PWGHF/D2H/DataModel/ReducedDataModel.h

Lines changed: 65 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ DECLARE_SOA_COLUMN(TpcNClsCrossedRowsProngMin, tpcNClsCrossedRowsProngMin, int);
196196
DECLARE_SOA_COLUMN(TpcChi2NClProngMax, tpcChi2NClProngMax, float); //! maximum value of TPC chi2 for the decay daughter tracks
197197
DECLARE_SOA_COLUMN(PtProngMin, ptProngMin, float); //! minimum value of transverse momentum for the decay daughter tracks
198198
DECLARE_SOA_COLUMN(AbsEtaProngMin, absEtaProngMin, float); //! minimum value of absolute pseudorapidity for the decay daughter tracks
199+
DECLARE_SOA_COLUMN(TrackType, tracktype, uint8_t); //! particle type according to PID selection (pion, kaon, proton)
199200

200201
// dynamic columns
201202
DECLARE_SOA_DYNAMIC_COLUMN(Pt, pt, //! transverse momentum
@@ -846,11 +847,6 @@ DECLARE_SOA_TABLE(HfRedLbLcMls, "AOD", "HFREDLBLCML", //! Table with ML scores f
846847

847848
using HfRedCandLb = soa::Join<HfCandLbExt, HfRedLbProngs>;
848849

849-
namespace hf_cand_mc_flag
850-
{
851-
DECLARE_SOA_COLUMN(FlagWrongCollision, flagWrongCollision, int8_t); //! reconstruction level
852-
}
853-
854850
namespace hf_b0_mc
855851
{
856852
// MC Rec
@@ -878,9 +874,9 @@ DECLARE_SOA_COLUMN(PdgCodeProng3, pdgCodeProng3, int); //! Pdg code
878874
DECLARE_SOA_TABLE(HfMcRecRedDpPis, "AOD", "HFMCRECREDDPPI", //! Table with reconstructed MC information on DPi(<-B0) pairs for reduced workflow
879875
hf_cand_b0_reduced::Prong0Id,
880876
hf_cand_b0_reduced::Prong1Id,
881-
hf_cand_mc_flag::FlagMcMatchRec,
882-
hf_cand_mc_flag::FlagWrongCollision,
883-
hf_cand_mc_flag::DebugMcRec,
877+
hf_cand_b0::FlagMcMatchRec,
878+
hf_cand_b0::FlagWrongCollision,
879+
hf_cand_b0::DebugMcRec,
884880
hf_b0_mc::PtMother);
885881

886882
// try with extended table ?
@@ -898,17 +894,17 @@ DECLARE_SOA_TABLE(HfMcCheckDpPis, "AOD", "HFMCCHECKDPPI", //! Table with reconst
898894
DECLARE_SOA_TABLE(HfMcRecRedDStarPis, "AOD", "HFMCRECREDDSTPI", //! Table with reconstructed MC information on DStarPi pairs for reduced workflow
899895
hf_cand_b0_reduced::ProngD0Id,
900896
hf_cand_b0_reduced::ProngBachPiId,
901-
hf_cand_mc_flag::FlagMcMatchRec,
902-
hf_cand_mc_flag::FlagWrongCollision,
903-
hf_cand_mc_flag::DebugMcRec,
897+
hf_cand_b0::FlagMcMatchRec,
898+
hf_cand_b0::FlagWrongCollision,
899+
hf_cand_b0::DebugMcRec,
904900
hf_b0_mc::PtMother);
905901

906902
// Table with same size as HFCANDB0
907903
DECLARE_SOA_TABLE(HfMcRecRedB0s, "AOD", "HFMCRECREDB0", //! Reconstruction-level MC information on B0 candidates for reduced workflow
908-
hf_cand_mc_flag::FlagMcMatchRec,
909-
hf_cand_mc_flag::FlagMcDecayChanRec,
910-
hf_cand_mc_flag::FlagWrongCollision,
911-
hf_cand_mc_flag::DebugMcRec,
904+
hf_cand_b0::FlagMcMatchRec,
905+
hf_cand_b0::FlagMcDecayChanRec,
906+
hf_cand_b0::FlagWrongCollision,
907+
hf_cand_b0::DebugMcRec,
912908
hf_b0_mc::PtMother);
913909

914910
DECLARE_SOA_TABLE(HfMcCheckB0s, "AOD", "HFMCCHECKB0", //! Table with reconstructed MC information on B0 candidates for MC checks in reduced workflow
@@ -921,8 +917,8 @@ DECLARE_SOA_TABLE(HfMcCheckB0s, "AOD", "HFMCCHECKB0", //! Table with reconstruct
921917
o2::soa::Marker<2>);
922918

923919
DECLARE_SOA_TABLE(HfMcGenRedB0s, "AOD", "HFMCGENREDB0", //! Generation-level MC information on B0 candidates for reduced workflow
924-
hf_cand_mc_flag::FlagMcMatchGen,
925-
hf_cand_mc_flag::FlagMcDecayChanRec,
920+
hf_cand_b0::FlagMcMatchGen,
921+
hf_cand_b0::FlagMcDecayChanRec,
926922
hf_b0_mc::PtTrack,
927923
hf_b0_mc::YTrack,
928924
hf_b0_mc::EtaTrack,
@@ -974,19 +970,19 @@ DECLARE_SOA_COLUMN(PdgCodeProng2, pdgCodeProng2, int); //! Pdg code
974970
DECLARE_SOA_TABLE(HfMcRecRedD0Pis, "AOD", "HFMCRECREDD0PI", //! Table with reconstructed MC information on D0Pi(<-B+) pairs for reduced workflow
975971
hf_cand_bplus_reduced::Prong0Id,
976972
hf_cand_bplus_reduced::Prong1Id,
977-
hf_cand_mc_flag::FlagMcMatchRec,
978-
hf_cand_mc_flag::FlagWrongCollision,
979-
hf_cand_mc_flag::DebugMcRec,
973+
hf_cand_bplus::FlagMcMatchRec,
974+
hf_cand_bplus::FlagWrongCollision,
975+
hf_cand_bplus::DebugMcRec,
980976
hf_bplus_mc::PtMother);
981977

982978
// table with results of reconstruction level MC matching
983979
DECLARE_SOA_TABLE(HfMcRecRedJPKs, "AOD", "HFMCRECREDJPK", //! Table with reconstructed MC information on J/PsiK(<-B+) pairs for reduced workflow
984980
hf_cand_bplus_reduced::JpsiId,
985981
hf_cand_bplus_reduced::BachKaId,
986-
hf_cand_mc_flag::FlagMcMatchRec,
987-
hf_cand_mc_flag::FlagMcDecayChanRec,
988-
hf_cand_mc_flag::FlagWrongCollision,
989-
hf_cand_mc_flag::DebugMcRec,
982+
hf_cand_bplus::FlagMcMatchRec,
983+
hf_cand_bplus::FlagMcDecayChanRec,
984+
hf_cand_bplus::FlagWrongCollision,
985+
hf_cand_bplus::DebugMcRec,
990986
hf_bplus_mc::PtMother);
991987

992988
// DECLARE_SOA_EXTENDED_TABLE_USER(ExTable, Tracks, "EXTABLE",
@@ -1000,10 +996,10 @@ DECLARE_SOA_TABLE(HfMcCheckD0Pis, "AOD", "HFMCCHECKD0PI", //! Table with reconst
1000996

1001997
// Table with same size as HFCANDBPLUS
1002998
DECLARE_SOA_TABLE(HfMcRecRedBps, "AOD", "HFMCRECREDBP", //! Reconstruction-level MC information on B+ candidates for reduced workflow
1003-
hf_cand_mc_flag::FlagMcMatchRec,
1004-
hf_cand_mc_flag::FlagMcDecayChanRec,
1005-
hf_cand_mc_flag::FlagWrongCollision,
1006-
hf_cand_mc_flag::DebugMcRec,
999+
hf_cand_bplus::FlagMcMatchRec,
1000+
hf_cand_bplus::FlagMcDecayChanRec,
1001+
hf_cand_bplus::FlagWrongCollision,
1002+
hf_cand_bplus::DebugMcRec,
10071003
hf_bplus_mc::PtMother);
10081004

10091005
DECLARE_SOA_TABLE(HfMcCheckBps, "AOD", "HFMCCHECKBP", //! Table with reconstructed MC information on B+ candidates for MC checks in reduced workflow
@@ -1015,8 +1011,8 @@ DECLARE_SOA_TABLE(HfMcCheckBps, "AOD", "HFMCCHECKBP", //! Table with reconstruct
10151011
o2::soa::Marker<2>);
10161012

10171013
DECLARE_SOA_TABLE(HfMcGenRedBps, "AOD", "HFMCGENREDBP", //! Generation-level MC information on B+ candidates for reduced workflow
1018-
hf_cand_mc_flag::FlagMcMatchGen,
1019-
hf_cand_mc_flag::FlagMcDecayChanRec,
1014+
hf_cand_bplus::FlagMcMatchGen,
1015+
hf_cand_bplus::FlagMcDecayChanRec,
10201016
hf_bplus_mc::PtTrack,
10211017
hf_bplus_mc::YTrack,
10221018
hf_bplus_mc::EtaTrack,
@@ -1075,20 +1071,20 @@ DECLARE_SOA_COLUMN(PdgCodeProng3, pdgCodeProng3, int); //! Pdg code
10751071
DECLARE_SOA_TABLE(HfMcRecRedDsPis, "AOD", "HFMCRECREDDSPI", //! Table with reconstructed MC information on DsPi(<-Bs) pairs for reduced workflow
10761072
hf_cand_bs_reduced::Prong0Id,
10771073
hf_cand_bs_reduced::Prong1Id,
1078-
hf_cand_mc_flag::FlagMcMatchRec,
1079-
hf_cand_mc_flag::FlagWrongCollision,
1080-
hf_cand_mc_flag::DebugMcRec,
1074+
hf_cand_bs::FlagMcMatchRec,
1075+
hf_cand_bs::FlagWrongCollision,
1076+
hf_cand_bs::DebugMcRec,
10811077
hf_bs_mc::PtMother);
10821078

10831079
// table with results of reconstruction level MC matching
10841080
DECLARE_SOA_TABLE(HfMcRecRedJPPhis, "AOD", "HFMCRECREDJPPHI", //! Table with reconstructed MC information on DsPi(<-Bs) pairs for reduced workflow
10851081
hf_cand_bs_reduced::JpsiId,
10861082
hf_cand_bs_reduced::Prong0PhiId,
10871083
hf_cand_bs_reduced::Prong1PhiId,
1088-
hf_cand_mc_flag::FlagMcMatchRec,
1089-
hf_cand_mc_flag::FlagMcDecayChanRec,
1090-
hf_cand_mc_flag::FlagWrongCollision,
1091-
hf_cand_mc_flag::DebugMcRec,
1084+
hf_cand_bs::FlagMcMatchRec,
1085+
hf_cand_bs::FlagMcDecayChanRec,
1086+
hf_cand_bs::FlagWrongCollision,
1087+
hf_cand_bs::DebugMcRec,
10921088
hf_bs_mc::PtMother);
10931089

10941090
// try with extended table ?
@@ -1104,10 +1100,10 @@ DECLARE_SOA_TABLE(HfMcCheckDsPis, "AOD", "HFMCCHECKDSPI", //! Table with reconst
11041100

11051101
// Table with same size as HFCANDBS
11061102
DECLARE_SOA_TABLE(HfMcRecRedBss, "AOD", "HFMCRECREDBS", //! Reconstruction-level MC information on Bs candidates for reduced workflow
1107-
hf_cand_mc_flag::FlagMcMatchRec,
1108-
hf_cand_mc_flag::FlagMcDecayChanRec,
1109-
hf_cand_mc_flag::FlagWrongCollision,
1110-
hf_cand_mc_flag::DebugMcRec,
1103+
hf_cand_bs::FlagMcMatchRec,
1104+
hf_cand_bs::FlagMcDecayChanRec,
1105+
hf_cand_bs::FlagWrongCollision,
1106+
hf_cand_bs::DebugMcRec,
11111107
hf_bs_mc::PtMother);
11121108

11131109
DECLARE_SOA_TABLE(HfMcCheckBss, "AOD", "HFMCCHECKBS", //! Table with reconstructed MC information on Bs candidates for MC checks in reduced workflow
@@ -1120,8 +1116,8 @@ DECLARE_SOA_TABLE(HfMcCheckBss, "AOD", "HFMCCHECKBS", //! Table with reconstruct
11201116
o2::soa::Marker<2>);
11211117

11221118
DECLARE_SOA_TABLE(HfMcGenRedBss, "AOD", "HFMCGENREDBS", //! Generation-level MC information on Bs candidates for reduced workflow
1123-
hf_cand_mc_flag::FlagMcMatchGen,
1124-
hf_cand_mc_flag::FlagMcDecayChanRec,
1119+
hf_cand_bs::FlagMcMatchGen,
1120+
hf_cand_bs::FlagMcDecayChanRec,
11251121
hf_bs_mc::PtTrack,
11261122
hf_bs_mc::YTrack,
11271123
hf_bs_mc::EtaTrack,
@@ -1177,9 +1173,9 @@ DECLARE_SOA_COLUMN(PdgCodeProng3, pdgCodeProng3, int); //! Pdg code
11771173
DECLARE_SOA_TABLE(HfMcRecRedLcPis, "AOD", "HFMCRECREDLCPI", //! Table with reconstructed MC information on LcPi(<-Lb) pairs for reduced workflow
11781174
hf_cand_lb_reduced::Prong0Id,
11791175
hf_cand_lb_reduced::Prong1Id,
1180-
hf_cand_mc_flag::FlagMcMatchRec,
1181-
hf_cand_mc_flag::FlagWrongCollision,
1182-
hf_cand_mc_flag::DebugMcRec,
1176+
hf_cand_lb::FlagMcMatchRec,
1177+
hf_cand_lb::FlagWrongCollision,
1178+
hf_cand_lb::DebugMcRec,
11831179
hf_lb_mc::PtMother);
11841180

11851181
DECLARE_SOA_TABLE(HfMcCheckLcPis, "AOD", "HFMCCHECKLCPI", //! Table with reconstructed MC information on LcPi(<-Lb) pairs for MC checks in reduced workflow
@@ -1193,9 +1189,9 @@ DECLARE_SOA_TABLE(HfMcCheckLcPis, "AOD", "HFMCCHECKLCPI", //! Table with reconst
11931189

11941190
// Table with same size as HFCANDLc
11951191
DECLARE_SOA_TABLE(HfMcRecRedLbs, "AOD", "HFMCRECREDLB", //! Reconstruction-level MC information on Lb candidates for reduced workflow
1196-
hf_cand_mc_flag::FlagMcMatchRec,
1197-
hf_cand_mc_flag::FlagWrongCollision,
1198-
hf_cand_mc_flag::DebugMcRec,
1192+
hf_cand_lb::FlagMcMatchRec,
1193+
hf_cand_lb::FlagWrongCollision,
1194+
hf_cand_lb::DebugMcRec,
11991195
hf_lb_mc::PtMother);
12001196

12011197
DECLARE_SOA_TABLE(HfMcCheckLbs, "AOD", "HFMCCHECKLB", //! Table with reconstructed MC information on Lb candidates for MC checks in reduced workflow
@@ -1208,7 +1204,7 @@ DECLARE_SOA_TABLE(HfMcCheckLbs, "AOD", "HFMCCHECKLB", //! Table with reconstruct
12081204
o2::soa::Marker<2>);
12091205

12101206
DECLARE_SOA_TABLE(HfMcGenRedLbs, "AOD", "HFMCGENREDLB", //! Generation-level MC information on Lb candidates for reduced workflow
1211-
hf_cand_mc_flag::FlagMcMatchGen,
1207+
hf_cand_lb::FlagMcMatchGen,
12121208
hf_lb_mc::PtTrack,
12131209
hf_lb_mc::YTrack,
12141210
hf_lb_mc::EtaTrack,
@@ -1558,7 +1554,7 @@ DECLARE_SOA_TABLE(Hf3PrV0McRec, "AOD", "HF3PRV0MCREC",
15581554
hf_reso_cand_reduced::Origin,
15591555
hf_reso_cand_reduced::PtGen,
15601556
hf_reso_cand_reduced::InvMassGen,
1561-
hf_cand_mc_flag::NTracksDecayed,
1557+
hf_cand::NTracksDecayed,
15621558
o2::soa::Marker<1>);
15631559

15641560
DECLARE_SOA_TABLE(HfDstarV0McRec, "AOD", "HFDSTARV0MCREC",
@@ -1571,7 +1567,7 @@ DECLARE_SOA_TABLE(HfDstarV0McRec, "AOD", "HFDSTARV0MCREC",
15711567
hf_reso_cand_reduced::Origin,
15721568
hf_reso_cand_reduced::PtGen,
15731569
hf_reso_cand_reduced::InvMassGen,
1574-
hf_cand_mc_flag::NTracksDecayed,
1570+
hf_cand::NTracksDecayed,
15751571
o2::soa::Marker<1>);
15761572

15771573
DECLARE_SOA_TABLE(Hf2PrV0McRec, "AOD", "HF2PRV0MCREC",
@@ -1584,7 +1580,7 @@ DECLARE_SOA_TABLE(Hf2PrV0McRec, "AOD", "HF2PRV0MCREC",
15841580
hf_reso_cand_reduced::Origin,
15851581
hf_reso_cand_reduced::PtGen,
15861582
hf_reso_cand_reduced::InvMassGen,
1587-
hf_cand_mc_flag::NTracksDecayed,
1583+
hf_cand::NTracksDecayed,
15881584
o2::soa::Marker<1>);
15891585

15901586
DECLARE_SOA_TABLE(Hf3PrTrkMcRec, "AOD", "HF3PRTRKMCREC",
@@ -1597,7 +1593,7 @@ DECLARE_SOA_TABLE(Hf3PrTrkMcRec, "AOD", "HF3PRTRKMCREC",
15971593
hf_reso_cand_reduced::Origin,
15981594
hf_reso_cand_reduced::PtGen,
15991595
hf_reso_cand_reduced::InvMassGen,
1600-
hf_cand_mc_flag::NTracksDecayed,
1596+
hf_cand::NTracksDecayed,
16011597
o2::soa::Marker<1>);
16021598

16031599
DECLARE_SOA_TABLE(HfDstarTrkMcRec, "AOD", "HFDSTARTRKMCREC",
@@ -1610,7 +1606,7 @@ DECLARE_SOA_TABLE(HfDstarTrkMcRec, "AOD", "HFDSTARTRKMCREC",
16101606
hf_reso_cand_reduced::Origin,
16111607
hf_reso_cand_reduced::PtGen,
16121608
hf_reso_cand_reduced::InvMassGen,
1613-
hf_cand_mc_flag::NTracksDecayed,
1609+
hf_cand::NTracksDecayed,
16141610
o2::soa::Marker<1>);
16151611

16161612
DECLARE_SOA_TABLE(Hf2PrTrkMcRec, "AOD", "HF2PRTRKMCREC",
@@ -1623,11 +1619,11 @@ DECLARE_SOA_TABLE(Hf2PrTrkMcRec, "AOD", "HF2PRTRKMCREC",
16231619
hf_reso_cand_reduced::Origin,
16241620
hf_reso_cand_reduced::PtGen,
16251621
hf_reso_cand_reduced::InvMassGen,
1626-
hf_cand_mc_flag::NTracksDecayed,
1622+
hf_cand::NTracksDecayed,
16271623
o2::soa::Marker<1>);
16281624

16291625
DECLARE_SOA_TABLE(HfMcGenRedResos, "AOD", "HFMCGENREDRESO", //! Generation-level MC information on Ds-Resonances candidates for reduced workflow
1630-
hf_cand_mc_flag::FlagMcMatchGen,
1626+
hf_cand_b0::FlagMcMatchGen,
16311627
hf_reso_cand_reduced::Origin,
16321628
hf_b0_mc::PtTrack,
16331629
hf_b0_mc::YTrack,
@@ -1651,8 +1647,19 @@ DECLARE_SOA_TABLE(HfMcRecRedResos, "AOD", "HFMCRECREDRESO", //! Reconstruction-l
16511647
hf_reso_cand_reduced::Origin,
16521648
hf_reso_cand_reduced::PtGen,
16531649
hf_reso_cand_reduced::InvMassGen,
1654-
hf_cand_mc_flag::NTracksDecayed,
1650+
hf_cand::NTracksDecayed,
16551651
o2::soa::Marker<1>);
1652+
DECLARE_SOA_TABLE(HcSelTracks, "AOD", "HCSELTRACKS", //! Table with selected tracks for Hc analysis
1653+
o2::soa::Index<>,
1654+
// Indices
1655+
hf_track_index_reduced::TrackId,
1656+
hf_track_index_reduced::HfRedCollisionId,
1657+
// Static
1658+
hf_track_vars_reduced::Px,
1659+
hf_track_vars_reduced::Py,
1660+
hf_track_vars_reduced::Pz,
1661+
hf_track_vars_reduced::Sign,
1662+
hf_track_vars_reduced::TrackType);
16561663
} // namespace aod
16571664

16581665
namespace soa

PWGHF/D2H/TableProducer/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ o2physics_add_dpl_workflow(data-creator-jpsi-had-reduced
9090
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::EventFilteringUtils
9191
COMPONENT_NAME Analysis)
9292

93+
o2physics_add_dpl_workflow(data-creator-hidden-charm-reduced
94+
SOURCES dataCreatorHiddenCharmReduced.cxx
95+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::EventFilteringUtils
96+
COMPONENT_NAME Analysis)
97+
9398
# Converters
9499

95100
o2physics_add_dpl_workflow(converter-reduced-3-prongs-ml

0 commit comments

Comments
 (0)