Skip to content

Commit 554c09b

Browse files
authored
[PWGHF] Add derived data creator for Lc in pK0s. Farewell! (#15259)
1 parent 4554a2e commit 554c09b

File tree

4 files changed

+499
-2
lines changed

4 files changed

+499
-2
lines changed

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(PtV0Neg, ptV0Neg, //! pt of the negative V0 daughter
495495
[](float px, float py) { return RecoDecay::pt(px, py); });
496496
DECLARE_SOA_DYNAMIC_COLUMN(CtV0, ctV0, //! c*t of the V0
497497
[](float xVtxP, float yVtxP, float zVtxP, float xVtxS, float yVtxS, float zVtxS, float px, float py, float pz, double m) -> float { return RecoDecay::ct(std::array{px, py, pz}, RecoDecay::distance(std::array{xVtxP, yVtxP, zVtxP}, std::array{xVtxS, yVtxS, zVtxS}), m); });
498+
DECLARE_SOA_DYNAMIC_COLUMN(DecayLengthV0, decayLengthV0, //!
499+
[](float xVtxP, float yVtxP, float zVtxP, float xVtxS, float yVtxS, float zVtxS) -> float { return RecoDecay::distance(std::array{xVtxP, yVtxP, zVtxP}, std::array{xVtxS, yVtxS, zVtxS}); });
498500
DECLARE_SOA_COLUMN(FlagMcMatchRec, flagMcMatchRec, int8_t); //! reconstruction level
499501
DECLARE_SOA_COLUMN(FlagMcMatchGen, flagMcMatchGen, int8_t); //! generator level
500502
DECLARE_SOA_COLUMN(OriginMcRec, originMcRec, int8_t); //! particle origin, reconstruction level
@@ -552,7 +554,8 @@ DECLARE_SOA_TABLE(HfCandCascBase, "AOD", "HFCANDCASCBASE", //!
552554
v0data::legacy::MAntiLambda<v0data::PxPos, v0data::PyPos, v0data::PzPos, v0data::PxNeg, v0data::PyNeg, v0data::PzNeg>,
553555
v0data::legacy::MK0Short<v0data::PxPos, v0data::PyPos, v0data::PzPos, v0data::PxNeg, v0data::PyNeg, v0data::PzNeg>,
554556
v0data::MGamma<v0data::PxPos, v0data::PyPos, v0data::PzPos, v0data::PxNeg, v0data::PyNeg, v0data::PzNeg>,
555-
hf_cand_casc::CtV0<hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex, hf_cand_casc::V0X, hf_cand_casc::V0Y, hf_cand_casc::V0Z, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>);
557+
hf_cand_casc::CtV0<hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex, hf_cand_casc::V0X, hf_cand_casc::V0Y, hf_cand_casc::V0Z, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
558+
hf_cand_casc::DecayLengthV0<hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex, hf_cand_casc::V0X, hf_cand_casc::V0Y, hf_cand_casc::V0Z>);
556559
// ,
557560
// v0data::MLambda<v0data::PxPos, v0data::PyPos, v0data::PzPos, v0data::PxNeg, v0data::PyNeg, v0data::PzNeg>,
558561
// v0data::MAntiLambda<v0data::PxPos, v0data::PyPos, v0data::PzPos, v0data::PxNeg, v0data::PyNeg, v0data::PzNeg>,

PWGHF/DataModel/DerivedTables.h

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,10 @@ DECLARE_SOA_COLUMN(FlagMcDecayChanGen, flagMcDecayChanGen, int8_t); //! resonant
307307
DECLARE_TABLES_2P(D0, "D0", d0, 2);
308308
DECLARE_TABLES_3P(Lc, "LC", lc, 3);
309309
DECLARE_TABLES_3P(Dplus, "DP", dplus, 4);
310-
DECLARE_TABLES_3P(Ds, "DS", ds, 9);
311310
DECLARE_TABLES_3P(Bplus, "BP", bplus, 5);
312311
DECLARE_TABLES_3P(Dstar, "DST", dstar, 6);
312+
DECLARE_TABLES_3P(Ds, "DS", ds, 9);
313+
DECLARE_TABLES_3P(LcToK0sP, "LCC", lc_to_k0s_p, 10);
313314
// Workaround for the existing B0 macro in termios.h
314315
#pragma push_macro("B0")
315316
#undef B0
@@ -355,6 +356,20 @@ DECLARE_SOA_COLUMN(PtProngXi, ptProngXi, float);
355356
DECLARE_SOA_COLUMN(PtProngPi0, ptProngPi0, float); //! transverse momentum of the first pion prong
356357
DECLARE_SOA_COLUMN(PtProngPi1, ptProngPi1, float); //! transverse momentum of the second pion prong
357358
DECLARE_SOA_COLUMN(RSecondaryVertex, rSecondaryVertex, float); //! distance of the secondary vertex from the z axis
359+
// Lc± → K0s p±
360+
DECLARE_SOA_COLUMN(V0CosPA, v0cosPA, float); //! cosine of the V0 pointing angle
361+
DECLARE_SOA_COLUMN(CtV0, ctV0, float); //! V0 proper lifetime times c
362+
DECLARE_SOA_COLUMN(DecayLengthV0, decayLengthV0, float); //! V0 decay length
363+
DECLARE_SOA_COLUMN(PtV0Pos, ptV0Pos, float); //! transverse momentum of V0 pos prong
364+
DECLARE_SOA_COLUMN(PtV0Neg, ptV0Neg, float); //! transverse momentum of V0 neg prong
365+
DECLARE_SOA_COLUMN(DCAPosToPV, dcapostopv, float); //! V0 pos prong impact param wrt prim vtx in xy
366+
DECLARE_SOA_COLUMN(DCANegToPV, dcanegtopv, float); //! V0 neg prong impact param wrt prim vtx in xy
367+
DECLARE_SOA_COLUMN(DCAV0Daughters, dcaV0daughters, float); //! V0 daughters dca
368+
DECLARE_SOA_COLUMN(V0Radius, v0radius, float); //! transverse distance of the V0 decay vertex from the beam line
369+
DECLARE_SOA_COLUMN(MLambda, mLambda, float);
370+
DECLARE_SOA_COLUMN(MAntiLambda, mAntiLambda, float);
371+
DECLARE_SOA_COLUMN(MK0Short, mK0Short, float);
372+
DECLARE_SOA_COLUMN(MGamma, mGamma, float);
358373
// D*± → D0(bar) π±
359374
DECLARE_SOA_COLUMN(SignProng1, signProng1, int8_t);
360375
// TOF
@@ -801,6 +816,72 @@ DECLARE_SOA_TABLE_STAGED(HfLcMcs, "HFLCMC", //! Table with MC candidate info
801816
hf_cand_mc::IsCandidateSwapped,
802817
o2::soa::Marker<MarkerLc>);
803818

819+
// ----------------
820+
// Lc to K0sP
821+
// ----------------
822+
823+
DECLARE_SOA_TABLE_STAGED(HfLcToK0sPPars, "HFLCTOK0SPPAR", //! Table with candidate properties used for selection
824+
hf_cand::Chi2PCA,
825+
hf_cand_par::Cpa,
826+
hf_cand_par::CpaXY,
827+
hf_cand_par::DecayLength,
828+
hf_cand_par::DecayLengthXY,
829+
hf_cand_par::PtProng0,
830+
hf_cand_par::PtProng1,
831+
hf_cand::ImpactParameter0,
832+
hf_cand::ImpactParameter1,
833+
hf_cand_par::V0Radius,
834+
hf_cand_par::V0CosPA,
835+
hf_cand_par::MLambda,
836+
hf_cand_par::MAntiLambda,
837+
hf_cand_par::MK0Short,
838+
hf_cand_par::MGamma,
839+
hf_cand_par::DCAV0Daughters,
840+
hf_cand_par::PtV0Pos,
841+
hf_cand_par::PtV0Neg,
842+
hf_cand_par::DecayLengthV0,
843+
hf_cand_par::DCAPosToPV,
844+
hf_cand_par::DCANegToPV,
845+
hf_cand_par::NSigTpcPr0,
846+
hf_cand_par::NSigTofPr0,
847+
hf_cand_par::CtV0,
848+
o2::soa::Marker<MarkerLcToK0sP>);
849+
850+
DECLARE_SOA_TABLE_STAGED(HfLcToK0sPParEs, "HFLCTOK0SPPARE", //! Table with additional candidate properties used for selection
851+
hf_cand::XSecondaryVertex,
852+
hf_cand::YSecondaryVertex,
853+
hf_cand::ZSecondaryVertex,
854+
hf_cand::ErrorDecayLength,
855+
hf_cand::ErrorDecayLengthXY,
856+
hf_cand_par::RSecondaryVertex,
857+
hf_cand_par::PProng0,
858+
hf_cand_par::PProng1,
859+
hf_cand::PxProng0,
860+
hf_cand::PyProng0,
861+
hf_cand::PzProng0,
862+
hf_cand::PxProng1,
863+
hf_cand::PyProng1,
864+
hf_cand::PzProng1,
865+
v0data::PxPos,
866+
v0data::PyPos,
867+
v0data::PzPos,
868+
v0data::PxNeg,
869+
v0data::PyNeg,
870+
v0data::PzNeg,
871+
hf_cand::ErrorImpactParameter0,
872+
hf_cand::ErrorImpactParameter1,
873+
hf_cand_par::Ct,
874+
o2::soa::Marker<MarkerLcToK0sP>);
875+
876+
DECLARE_SOA_TABLE_STAGED(HfLcToK0sPMls, "HFLCTOK0SPML", //! Table with candidate selection ML scores
877+
hf_cand_mc::MlScores,
878+
o2::soa::Marker<MarkerLcToK0sP>);
879+
880+
DECLARE_SOA_TABLE_STAGED(HfLcToK0sPMcs, "HFLCTOK0SPMC", //! Table with MC candidate info
881+
hf_cand_mc::FlagMcMatchRec,
882+
hf_cand_mc::OriginMcRec,
883+
o2::soa::Marker<MarkerLcToK0sP>);
884+
804885
// ----------------
805886
// D+
806887
// ----------------

PWGHF/TableProducer/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,11 @@ o2physics_add_dpl_workflow(derived-data-creator-lc-to-p-k-pi
330330
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
331331
COMPONENT_NAME Analysis)
332332

333+
o2physics_add_dpl_workflow(derived-data-creator-lc-to-k0s-p
334+
SOURCES derivedDataCreatorLcToK0sP.cxx
335+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
336+
COMPONENT_NAME Analysis)
337+
333338
o2physics_add_dpl_workflow(derived-data-creator-xic-to-xi-pi-pi
334339
SOURCES derivedDataCreatorXicToXiPiPi.cxx
335340
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore

0 commit comments

Comments
 (0)