Skip to content

Commit 8a4d1e2

Browse files
committed
Implement online workflow for B0->J/Psi K*0
1 parent 7daab4f commit 8a4d1e2

4 files changed

Lines changed: 373 additions & 22 deletions

File tree

PWGHF/D2H/DataModel/ReducedDataModel.h

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -749,14 +749,17 @@ using HfRedPidDau2 = HfRedPidDau2s::iterator;
749749
// Beauty candidates prongs
750750
namespace hf_cand_b0_reduced
751751
{
752-
DECLARE_SOA_INDEX_COLUMN_FULL(Prong0, prong0, int, HfRed3Prongs, "_0"); //! Prong0 index
753-
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, HfRedTrackBases, "_1"); //! Prong1 index
754-
DECLARE_SOA_INDEX_COLUMN_FULL(ProngD0, prongD0, int, HfRed2Prongs, "_0"); //! ProngD0 index
755-
DECLARE_SOA_INDEX_COLUMN_FULL(ProngBachPi, prongBachPi, int, HfRedTrackBases, "_1"); //! ProngBachPi index
756-
DECLARE_SOA_INDEX_COLUMN_FULL(ProngSoftPi, prongSoftPi, int, HfRedSoftPiBases, "_2"); //! ProngSoftPi index
757-
DECLARE_SOA_COLUMN(Prong0MlScoreBkg, prong0MlScoreBkg, float); //! Bkg ML score of the D daughter
758-
DECLARE_SOA_COLUMN(Prong0MlScorePrompt, prong0MlScorePrompt, float); //! Prompt ML score of the D daughter
759-
DECLARE_SOA_COLUMN(Prong0MlScoreNonprompt, prong0MlScoreNonprompt, float); //! Nonprompt ML score of the D daughter
752+
DECLARE_SOA_INDEX_COLUMN_FULL(Prong0, prong0, int, HfRed3Prongs, "_0"); //! Prong0 index
753+
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, HfRedTrackBases, "_1"); //! Prong1 index
754+
DECLARE_SOA_INDEX_COLUMN_FULL(ProngD0, prongD0, int, HfRed2Prongs, "_0"); //! ProngD0 index
755+
DECLARE_SOA_INDEX_COLUMN_FULL(ProngBachPi, prongBachPi, int, HfRedTrackBases, "_1"); //! ProngBachPi index
756+
DECLARE_SOA_INDEX_COLUMN_FULL(ProngSoftPi, prongSoftPi, int, HfRedSoftPiBases, "_2"); //! ProngSoftPi index
757+
DECLARE_SOA_INDEX_COLUMN_FULL(Jpsi, jpsi, int, HfRedJpsis, "_0"); //! J/Psi index
758+
DECLARE_SOA_INDEX_COLUMN_FULL(Prong0K0Star, prong0K0Star, int, HfRedBach0Bases, "_0"); //! J/Psi index
759+
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1K0Star, prong1K0Star, int, HfRedBach1Bases, "_0"); //! J/Psi index
760+
DECLARE_SOA_COLUMN(Prong0MlScoreBkg, prong0MlScoreBkg, float); //! Bkg ML score of the D daughter
761+
DECLARE_SOA_COLUMN(Prong0MlScorePrompt, prong0MlScorePrompt, float); //! Prompt ML score of the D daughter
762+
DECLARE_SOA_COLUMN(Prong0MlScoreNonprompt, prong0MlScoreNonprompt, float); //! Nonprompt ML score of the D daughter
760763
} // namespace hf_cand_b0_reduced
761764

762765
DECLARE_SOA_TABLE(HfRedB0Prongs, "AOD", "HFREDB0PRONG", //! Table with B0 daughter indices
@@ -904,6 +907,16 @@ DECLARE_SOA_TABLE(HfMcRecRedDStarPis, "AOD", "HFMCRECREDDSTPI", //! Table with r
904907
hf_cand_mc_flag::DebugMcRec,
905908
hf_b0_mc::PtMother);
906909

910+
DECLARE_SOA_TABLE(HfMcRecRedJPK0ss, "AOD", "HFMCRECREDJPK0S", //! Table with reconstructed MC information on J/Psi/K*0(<-B0) pairs for reduced workflow
911+
hf_cand_b0_reduced::JpsiId,
912+
hf_cand_b0_reduced::Prong0K0StarId,
913+
hf_cand_b0_reduced::Prong1K0StarId,
914+
hf_cand_mc_flag::FlagMcMatchRec,
915+
hf_cand_mc_flag::FlagMcDecayChanRec,
916+
hf_cand_mc_flag::FlagWrongCollision,
917+
hf_cand_mc_flag::DebugMcRec,
918+
hf_b0_mc::PtMother);
919+
907920
// Table with same size as HFCANDB0
908921
DECLARE_SOA_TABLE(HfMcRecRedB0s, "AOD", "HFMCRECREDB0", //! Reconstruction-level MC information on B0 candidates for reduced workflow
909922
hf_cand_mc_flag::FlagMcMatchRec,
@@ -941,14 +954,18 @@ DECLARE_SOA_TABLE(HfMcGenRedB0s, "AOD", "HFMCGENREDB0", //! Generation-level MC
941954
// so we can use them in the B0 part
942955
namespace hf_cand_b0_config
943956
{
944-
DECLARE_SOA_COLUMN(MySelectionFlagD, mySelectionFlagD, int8_t); //! Flag to filter selected D+ mesons
945-
DECLARE_SOA_COLUMN(MyInvMassWindowDPi, myInvMassWindowDPi, float); //! Half-width of the B0 invariant-mass window in GeV/c2
957+
DECLARE_SOA_COLUMN(MySelectionFlagD, mySelectionFlagD, int8_t); //! Flag to filter selected D+ mesons
958+
DECLARE_SOA_COLUMN(MyInvMassWindowDPi, myInvMassWindowDPi, float); //! Half-width of the B0 invariant-mass window in GeV/c2
959+
DECLARE_SOA_COLUMN(MyInvMassWindowJpsiK0Star, myInvMassWindowJpsiK0Star, float); //! Half-width of the B0 invariant-mass window in GeV/c2
946960
} // namespace hf_cand_b0_config
947961

948962
DECLARE_SOA_TABLE(HfCandB0Configs, "AOD", "HFCANDB0CONFIG", //! Table with configurables information for reduced workflow
949963
hf_cand_b0_config::MySelectionFlagD,
950964
hf_cand_b0_config::MyInvMassWindowDPi);
951965

966+
DECLARE_SOA_TABLE(HfCfgB0ToJpsis, "AOD", "HFCFGB0TOJPSI", //! Table with configurables information for reduced workflow
967+
hf_cand_b0_config::MyInvMassWindowJpsiK0Star);
968+
952969
namespace hf_bplus_mc
953970
{
954971
// MC Rec
@@ -1046,7 +1063,7 @@ DECLARE_SOA_TABLE(HfCandBpConfigs, "AOD", "HFCANDBPCONFIG", //! Table with confi
10461063
hf_cand_bplus_config::MySelectionFlagD0bar,
10471064
hf_cand_bplus_config::MyInvMassWindowD0Pi);
10481065

1049-
DECLARE_SOA_TABLE(HfCfgBpToJpsi, "AOD", "HFCFGBPTOJPSI", //! Table with configurables information for reduced workflow
1066+
DECLARE_SOA_TABLE(HfCfgBpToJpsis, "AOD", "HFCFGBPTOJPSI", //! Table with configurables information for reduced workflow
10501067
hf_cand_bplus_config::MyInvMassWindowJpsiK);
10511068

10521069
namespace hf_bs_mc

PWGHF/D2H/TableProducer/candidateCreatorBToJpsiReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ struct HfCandidateCreatorBToJpsiReduced {
354354
soa::Join<aod::HfRedJpsis, aod::HfRedJpsiCov> const& candsJpsi,
355355
soa::Join<aod::HfRedBach0Bases, aod::HfRedBach0Cov> const& tracksKaon,
356356
aod::HfOrigColCounts const& collisionsCounter,
357-
aod::HfCfgBpToJpsi const& configs)
357+
aod::HfCfgBpToJpsis const& configs)
358358
{
359359
// Jpsi K invariant-mass window cut
360360
for (const auto& config : configs) {

0 commit comments

Comments
 (0)