Skip to content

Commit 9e055ae

Browse files
committed
Add workflow draft
1 parent 6517115 commit 9e055ae

File tree

4 files changed

+483
-33
lines changed

4 files changed

+483
-33
lines changed

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -484,28 +484,28 @@ DECLARE_SOA_COLUMN(ImpactParameterZ2, impactParameterZ2, float);
484484
DECLARE_SOA_COLUMN(ErrorImpactParameterZ2, errorImpactParameterZ2, float); //!
485485
DECLARE_SOA_DYNAMIC_COLUMN(ImpactParameterZNormalised2, impactParameterZNormalised2, //!
486486
[](float dca, float err) -> float { return dca / err; });
487-
/// prong PID nsigma
488487
DECLARE_SOA_COLUMN(NProngsContributorsPV, nProngsContributorsPV, uint8_t); //! number of prongs contributing to the primary-vertex reconstruction
489488
DECLARE_SOA_COLUMN(BitmapProngsContributorsPV, bitmapProngsContributorsPV, uint8_t); //! bitmap with booleans indicating prongs contributing to the primary-vertex reconstruction
490-
DECLARE_SOA_COLUMN(NSigTpcPi0, nSigTpcPi0, float); //! TPC nSigma for pion hypothesis - prong 0
491-
DECLARE_SOA_COLUMN(NSigTpcPi1, nSigTpcPi1, float); //! TPC nSigma for pion hypothesis - prong 1
492-
DECLARE_SOA_COLUMN(NSigTpcPi2, nSigTpcPi2, float); //! TPC nSigma for pion hypothesis - prong 2
493-
DECLARE_SOA_COLUMN(NSigTpcKa0, nSigTpcKa0, float); //! TPC nSigma for kaon hypothesis - prong 0
494-
DECLARE_SOA_COLUMN(NSigTpcKa1, nSigTpcKa1, float); //! TPC nSigma for kaon hypothesis - prong 1
495-
DECLARE_SOA_COLUMN(NSigTpcKa2, nSigTpcKa2, float); //! TPC nSigma for kaon hypothesis - prong 2
496-
DECLARE_SOA_COLUMN(NSigTpcPr0, nSigTpcPr0, float); //! TPC nSigma for proton hypothesis - prong 0
497-
DECLARE_SOA_COLUMN(NSigTpcPr1, nSigTpcPr1, float); //! TPC nSigma for proton hypothesis - prong 1
498-
DECLARE_SOA_COLUMN(NSigTpcPr2, nSigTpcPr2, float); //! TPC nSigma for proton hypothesis - prong 2
499-
DECLARE_SOA_COLUMN(NSigTofPi0, nSigTofPi0, float); //! TOF nSigma for pion hypothesis - prong 0
500-
DECLARE_SOA_COLUMN(NSigTofPi1, nSigTofPi1, float); //! TOF nSigma for pion hypothesis - prong 1
501-
DECLARE_SOA_COLUMN(NSigTofPi2, nSigTofPi2, float); //! TOF nSigma for pion hypothesis - prong 2
502-
DECLARE_SOA_COLUMN(NSigTofKa0, nSigTofKa0, float); //! TOF nSigma for kaon hypothesis - prong 0
503-
DECLARE_SOA_COLUMN(NSigTofKa1, nSigTofKa1, float); //! TOF nSigma for kaon hypothesis - prong 1
504-
DECLARE_SOA_COLUMN(NSigTofKa2, nSigTofKa2, float); //! TOF nSigma for kaon hypothesis - prong 2
505-
DECLARE_SOA_COLUMN(NSigTofPr0, nSigTofPr0, float); //! TOF nSigma for proton hypothesis - prong 0
506-
DECLARE_SOA_COLUMN(NSigTofPr1, nSigTofPr1, float); //! TOF nSigma for proton hypothesis - prong 1
507-
DECLARE_SOA_COLUMN(NSigTofPr2, nSigTofPr2, float); //! TOF nSigma for proton hypothesis - prong 2
508-
DECLARE_SOA_DYNAMIC_COLUMN(TpcTofNSigmaPi0, tpcTofNSigmaPi0, //! Combined NSigma separation with the TPC & TOF detectors for pion - prong 0
489+
/// prong PID nsigma
490+
DECLARE_SOA_COLUMN(NSigTpcPi0, nSigTpcPi0, float); //! TPC nSigma for pion hypothesis - prong 0
491+
DECLARE_SOA_COLUMN(NSigTpcPi1, nSigTpcPi1, float); //! TPC nSigma for pion hypothesis - prong 1
492+
DECLARE_SOA_COLUMN(NSigTpcPi2, nSigTpcPi2, float); //! TPC nSigma for pion hypothesis - prong 2
493+
DECLARE_SOA_COLUMN(NSigTpcKa0, nSigTpcKa0, float); //! TPC nSigma for kaon hypothesis - prong 0
494+
DECLARE_SOA_COLUMN(NSigTpcKa1, nSigTpcKa1, float); //! TPC nSigma for kaon hypothesis - prong 1
495+
DECLARE_SOA_COLUMN(NSigTpcKa2, nSigTpcKa2, float); //! TPC nSigma for kaon hypothesis - prong 2
496+
DECLARE_SOA_COLUMN(NSigTpcPr0, nSigTpcPr0, float); //! TPC nSigma for proton hypothesis - prong 0
497+
DECLARE_SOA_COLUMN(NSigTpcPr1, nSigTpcPr1, float); //! TPC nSigma for proton hypothesis - prong 1
498+
DECLARE_SOA_COLUMN(NSigTpcPr2, nSigTpcPr2, float); //! TPC nSigma for proton hypothesis - prong 2
499+
DECLARE_SOA_COLUMN(NSigTofPi0, nSigTofPi0, float); //! TOF nSigma for pion hypothesis - prong 0
500+
DECLARE_SOA_COLUMN(NSigTofPi1, nSigTofPi1, float); //! TOF nSigma for pion hypothesis - prong 1
501+
DECLARE_SOA_COLUMN(NSigTofPi2, nSigTofPi2, float); //! TOF nSigma for pion hypothesis - prong 2
502+
DECLARE_SOA_COLUMN(NSigTofKa0, nSigTofKa0, float); //! TOF nSigma for kaon hypothesis - prong 0
503+
DECLARE_SOA_COLUMN(NSigTofKa1, nSigTofKa1, float); //! TOF nSigma for kaon hypothesis - prong 1
504+
DECLARE_SOA_COLUMN(NSigTofKa2, nSigTofKa2, float); //! TOF nSigma for kaon hypothesis - prong 2
505+
DECLARE_SOA_COLUMN(NSigTofPr0, nSigTofPr0, float); //! TOF nSigma for proton hypothesis - prong 0
506+
DECLARE_SOA_COLUMN(NSigTofPr1, nSigTofPr1, float); //! TOF nSigma for proton hypothesis - prong 1
507+
DECLARE_SOA_COLUMN(NSigTofPr2, nSigTofPr2, float); //! TOF nSigma for proton hypothesis - prong 2
508+
DECLARE_SOA_DYNAMIC_COLUMN(TpcTofNSigmaPi0, tpcTofNSigmaPi0, //! Combined NSigma separation with the TPC & TOF detectors for pion - prong 0
509509
[](float tpcNSigmaPi0, float tofNSigmaPi0) -> float { return pid_tpc_tof_utils::combineNSigma<false /*tiny*/>(tpcNSigmaPi0, tofNSigmaPi0); });
510510
DECLARE_SOA_DYNAMIC_COLUMN(TpcTofNSigmaPi1, tpcTofNSigmaPi1, //! Combined NSigma separation with the TPC & TOF detectors for pion - prong 1
511511
[](float tpcNSigmaPi1, float tofNSigmaPi1) -> float { return pid_tpc_tof_utils::combineNSigma<false /*tiny*/>(tpcNSigmaPi1, tofNSigmaPi1); });

PWGHF/DataModel/DerivedTables.h

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ DECLARE_SOA_COLUMN(NSigTpcTofPr2, nSigTpcTofPr2, float);
406406
// We don't want to link the charm candidate table because we want to avoid producing it.
407407
namespace hf_cand_par_charm
408408
{
409+
DECLARE_SOA_COLUMN(Chi2PCACharm, chi2PCACharm, float); //! sum of (non-weighted) distances of the secondary vertex to its prongs
410+
DECLARE_SOA_COLUMN(NProngsContributorsPVCharm, nProngsContributorsPVCharm, uint8_t); //! number of prongs contributing to the primary-vertex reconstruction
409411
DECLARE_SOA_COLUMN(CosThetaStarCharm, cosThetaStarCharm, float); //! cosine of theta star
410412
DECLARE_SOA_COLUMN(CpaCharm, cpaCharm, float); //! cosine of pointing angle
411413
DECLARE_SOA_COLUMN(CpaXYCharm, cpaXYCharm, float); //! cosine of pointing angle in the transverse plane
@@ -416,6 +418,7 @@ DECLARE_SOA_COLUMN(DecayLengthXYCharm, decayLengthXYCharm, float);
416418
DECLARE_SOA_COLUMN(DecayLengthXYNormalisedCharm, decayLengthXYNormalisedCharm, float); //! decay length in the transverse plane divided by its uncertainty
417419
DECLARE_SOA_COLUMN(ImpactParameter0Charm, impactParameter0Charm, float); //! impact parameter of prong 0
418420
DECLARE_SOA_COLUMN(ImpactParameter1Charm, impactParameter1Charm, float); //! impact parameter of prong 1
421+
DECLARE_SOA_COLUMN(ImpactParameter2Charm, impactParameter2Charm, float); //! impact parameter of prong 1
419422
DECLARE_SOA_COLUMN(ImpactParameterNormalised0Charm, impactParameterNormalised0Charm, float); //! impact parameter of prong 0 divided by its uncertainty
420423
DECLARE_SOA_COLUMN(ImpactParameterNormalised1Charm, impactParameterNormalised1Charm, float); //! impact parameter of prong 1 divided by its uncertainty
421424
DECLARE_SOA_COLUMN(ImpactParameterNormalised2Charm, impactParameterNormalised2Charm, float); //! impact parameter of prong 2 divided by its uncertainty
@@ -668,23 +671,33 @@ DECLARE_SOA_TABLE_STAGED(HfB0Pars, "HFB0PAR", //! Table with candidate propertie
668671
o2::soa::Marker<MarkerB0>);
669672

670673
DECLARE_SOA_TABLE_STAGED(HfB0ParDpluss, "HFB0PARDP", //! Table with D+ candidate properties used for selection of B0
674+
hf_cand_par_charm::Chi2PCACharm,
675+
hf_cand_par_charm::NProngsContributorsPVCharm,
671676
hf_cand_par_charm::CpaCharm,
677+
hf_cand_par_charm::CpaXYCharm,
672678
hf_cand_par_charm::DecayLengthCharm,
679+
hf_cand_par_charm::DecayLengthXYCharm,
680+
hf_cand_par_charm::DecayLengthNormalisedCharm,
681+
hf_cand_par_charm::DecayLengthXYNormalisedCharm,
682+
hf_cand_par_charm::PtProng0Charm,
683+
hf_cand_par_charm::PtProng1Charm,
684+
hf_cand_par_charm::PtProng2Charm,
673685
hf_cand_par_charm::ImpactParameter0Charm,
674686
hf_cand_par_charm::ImpactParameter1Charm,
675-
hf_cand_par_charm::ImpactParameterProductCharm,
676-
hf_cand_par_charm::NSigTpcPiExpPiCharm,
677-
hf_cand_par_charm::NSigTofPiExpPiCharm,
678-
hf_cand_par_charm::NSigTpcTofPiExpPiCharm,
679-
hf_cand_par_charm::NSigTpcKaExpPiCharm,
680-
hf_cand_par_charm::NSigTofKaExpPiCharm,
681-
hf_cand_par_charm::NSigTpcTofKaExpPiCharm,
682-
hf_cand_par_charm::NSigTpcPiExpKaCharm,
683-
hf_cand_par_charm::NSigTofPiExpKaCharm,
684-
hf_cand_par_charm::NSigTpcTofPiExpKaCharm,
685-
hf_cand_par_charm::NSigTpcKaExpKaCharm,
686-
hf_cand_par_charm::NSigTofKaExpKaCharm,
687-
hf_cand_par_charm::NSigTpcTofKaExpKaCharm);
687+
hf_cand_par_charm::ImpactParameter2Charm,
688+
hf_cand_par_charm::ImpactParameterNormalised0Charm,
689+
hf_cand_par_charm::ImpactParameterNormalised1Charm,
690+
hf_cand_par_charm::ImpactParameterNormalised2Charm,
691+
hf_cand_par_charm::NSigTpcPi0Charm,
692+
hf_cand_par_charm::NSigTofPi0Charm,
693+
hf_cand_par_charm::NSigTpcTofPi0Charm,
694+
hf_cand_par_charm::NSigTpcKa1Charm,
695+
hf_cand_par_charm::NSigTofKa1Charm,
696+
hf_cand_par_charm::NSigTpcTofKa1Charm,
697+
hf_cand_par_charm::NSigTpcPi2Charm,
698+
hf_cand_par_charm::NSigTofPi2Charm,
699+
hf_cand_par_charm::NSigTpcTofPi2Charm,
700+
o2::soa::Marker<MarkerB0>);
688701

689702
DECLARE_SOA_TABLE_STAGED(HfB0ParEs, "HFB0PARE", //! Table with additional candidate properties used for selection
690703
hf_cand::XSecondaryVertex,

PWGHF/TableProducer/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,11 @@ o2physics_add_dpl_workflow(tree-creator-tcc-to-d0-d0-pi
295295
COMPONENT_NAME Analysis)
296296
# Derived-data creators
297297

298+
o2physics_add_dpl_workflow(derived-data-creator-b0-to-d-pi
299+
SOURCES derivedDataCreatorB0ToDPi.cxx
300+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
301+
COMPONENT_NAME Analysis)
302+
298303
o2physics_add_dpl_workflow(derived-data-creator-bplus-to-d0-pi
299304
SOURCES derivedDataCreatorBplusToD0Pi.cxx
300305
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore

0 commit comments

Comments
 (0)