Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions PWGHF/DataModel/DerivedTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
{ \
namespace der_##_hf_namespace_ \
{ \
DECLARE_SOA_ARRAY_INDEX_COLUMN_CUSTOM(Hf##_hf_type_##CollBase, hfCollBases, "HF" _hf_description_ "COLLBASES"); /* o2-linter: disable=name/o2-column (unified getter) */ \

Check failure on line 97 in PWGHF/DataModel/DerivedTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
} \
} \
DECLARE_SOA_TABLE_STAGED(Hf##_hf_type_##McCollBases, "HF" _hf_description_ "MCCOLLBASE", \
Expand Down Expand Up @@ -171,7 +171,7 @@
{ \
namespace der_##_hf_namespace_ \
{ \
DECLARE_SOA_INDEX_COLUMN_CUSTOM(Hf##_hf_type_##CollBase, hfCollBase, "HF" _hf_description_ "COLLBASES"); /* o2-linter: disable=name/o2-column (unified getter) */ \

Check failure on line 174 in PWGHF/DataModel/DerivedTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
} \
} \
\
Expand Down Expand Up @@ -243,7 +243,7 @@
{ \
namespace der_##_hf_namespace_ \
{ \
DECLARE_SOA_INDEX_COLUMN_CUSTOM(Hf##_hf_type_##McCollBase, hfMcCollBase, "HF" _hf_description_ "MCCOLLBASES"); /* o2-linter: disable=name/o2-column (unified getter) */ \

Check failure on line 246 in PWGHF/DataModel/DerivedTables.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-column]

Use UpperCamelCase for names of O2 columns and matching lowerCamelCase names for their getters.
} \
} \
DECLARE_SOA_TABLE_STAGED(Hf##_hf_type_##PBases, "HF" _hf_description_ "PBASE", \
Expand Down Expand Up @@ -859,6 +859,18 @@
hf_cand_par::Ct,
o2::soa::Marker<MarkerDplus>);

DECLARE_SOA_TABLE_STAGED(HfDplusDaugs, "HFDPDAUG", //! Table to study daughter properties
hf_cand_base::Pt,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is Pt duplicated here?

hf_cand::Chi2PCA,
hf_cand_par::DecayLength,
hf_cand_par::PProng0,
hf_cand_par::PProng1,
hf_cand_par::PProng2,
hf_cand_par::NSigTpcTofPi0,
hf_cand_par::NSigTpcTofKa1,
hf_cand_par::NSigTpcTofPi2,
o2::soa::Marker<MarkerDplus>);

DECLARE_SOA_TABLE_STAGED(HfDplusMls, "HFDPML", //! Table with candidate selection ML scores
hf_cand_mc::MlScores,
o2::soa::Marker<MarkerDplus>);
Expand Down
14 changes: 14 additions & 0 deletions PWGHF/TableProducer/derivedDataCreatorDplusToPiKPi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ struct HfDerivedDataCreatorDplusToPiKPi {
Produces<o2::aod::HfDplusPars> rowCandidatePar;
Produces<o2::aod::HfDplusParEs> rowCandidateParE;
Produces<o2::aod::HfDplusSels> rowCandidateSel;
Produces<o2::aod::HfDplusDaugs> rowCandidateDaugs;
Produces<o2::aod::HfDplusMls> rowCandidateMl;
Produces<o2::aod::HfDplusIds> rowCandidateId;
Produces<o2::aod::HfDplusMcs> rowCandidateMc;
Expand All @@ -79,6 +80,7 @@ struct HfDerivedDataCreatorDplusToPiKPi {
Configurable<bool> fillCandidatePar{"fillCandidatePar", true, "Fill candidate parameters"};
Configurable<bool> fillCandidateParE{"fillCandidateParE", true, "Fill candidate extended parameters"};
Configurable<bool> fillCandidateSel{"fillCandidateSel", true, "Fill candidate selection flags"};
Configurable<bool> fillCandidateDaugs{"fillCandidateDaugs", false, "Fill candidate daughter parameters"};
Configurable<bool> fillCandidateMl{"fillCandidateMl", true, "Fill candidate selection ML scores"};
Configurable<bool> fillCandidateId{"fillCandidateId", true, "Fill original indices from the candidate table"};
Configurable<bool> fillCandidateMc{"fillCandidateMc", true, "Fill candidate MC info"};
Expand Down Expand Up @@ -191,6 +193,18 @@ struct HfDerivedDataCreatorDplusToPiKPi {
rowCandidateSel(
BIT(candFlag));
}
if (fillCandidateDaugs) {
rowCandidateDaugs(
candidate.pt(),
candidate.chi2PCA(),
candidate.decayLength(),
RecoDecay::p(candidate.pxProng0(), candidate.pyProng0(), candidate.pzProng0()),
RecoDecay::p(candidate.pxProng1(), candidate.pyProng1(), candidate.pzProng1()),
RecoDecay::p(candidate.pxProng2(), candidate.pyProng2(), candidate.pzProng2()),
candidate.tpcTofNSigmaPi0(),
candidate.tpcTofNSigmaKa1(),
candidate.tpcTofNSigmaPi2());
}
if (fillCandidateMl) {
rowCandidateMl(
mlScores);
Expand Down
Loading