Skip to content

Commit 2b5d841

Browse files
committed
Move column definitions to the task
1 parent ad50d9a commit 2b5d841

File tree

2 files changed

+62
-62
lines changed

2 files changed

+62
-62
lines changed

PWGHF/D2H/Tasks/taskLc.cxx

Lines changed: 62 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,65 @@ using namespace o2::hf_occupancy;
7171
using namespace o2::hf_evsel;
7272
using namespace o2::analysis::hf_upc;
7373

74+
namespace o2::aod
75+
{
76+
namespace full
77+
{
78+
DECLARE_SOA_COLUMN(M, m, float);
79+
DECLARE_SOA_COLUMN(Pt, pt, float);
80+
DECLARE_SOA_COLUMN(BkgScore, bkgScore, float);
81+
DECLARE_SOA_COLUMN(PromptScore, promptScore, float);
82+
DECLARE_SOA_COLUMN(FDScore, fDScore, float);
83+
DECLARE_SOA_COLUMN(PtProng0, ptProng0, float);
84+
DECLARE_SOA_COLUMN(PtProng1, ptProng1, float);
85+
DECLARE_SOA_COLUMN(PtProng2, ptProng2, float);
86+
DECLARE_SOA_COLUMN(Chi2PCA, chi2PCA, float);
87+
DECLARE_SOA_COLUMN(DecayLength, decayLength, float);
88+
DECLARE_SOA_COLUMN(CPA, cPA, float);
89+
DECLARE_SOA_COLUMN(PvContributors, pvContributors, float);
90+
DECLARE_SOA_COLUMN(AmpFV0A, ampFV0A, float);
91+
DECLARE_SOA_COLUMN(AmpFT0A, ampFT0A, float);
92+
DECLARE_SOA_COLUMN(AmpFT0C, ampFT0C, float);
93+
DECLARE_SOA_COLUMN(ZdcEnergyZNA, zdcEnergyZNA, float);
94+
DECLARE_SOA_COLUMN(ZdcEnergyZNC, zdcEnergyZNC, float);
95+
DECLARE_SOA_COLUMN(ZdcTimeZNA, zdcTimeZNA, float);
96+
DECLARE_SOA_COLUMN(ZdcTimeZNC, zdcTimeZNC, float);
97+
} // namespace full
98+
99+
DECLARE_SOA_TABLE(HfUpcLcBdtInfos, "AOD", "HFUPCLCBDTINFOS",
100+
full::M,
101+
full::Pt,
102+
full::BkgScore,
103+
full::PromptScore,
104+
full::FDScore,
105+
full::PvContributors,
106+
full::AmpFV0A,
107+
full::AmpFT0A,
108+
full::AmpFT0C,
109+
full::ZdcEnergyZNA,
110+
full::ZdcEnergyZNC,
111+
full::ZdcTimeZNA,
112+
full::ZdcTimeZNC);
113+
114+
DECLARE_SOA_TABLE(HfUpcLcInfos, "AOD", "HFUPCLCINFOS",
115+
full::M,
116+
full::Pt,
117+
full::PtProng0,
118+
full::PtProng1,
119+
full::PtProng2,
120+
full::Chi2PCA,
121+
full::DecayLength,
122+
full::CPA,
123+
full::PvContributors,
124+
full::AmpFV0A,
125+
full::AmpFT0A,
126+
full::AmpFT0C,
127+
full::ZdcEnergyZNA,
128+
full::ZdcEnergyZNC,
129+
full::ZdcTimeZNA,
130+
full::ZdcTimeZNC);
131+
} // namespace o2::aod
132+
74133
/// Λc± → p± K∓ π± analysis task
75134
struct HfTaskLc {
76135
Produces<o2::aod::HfUpcLcBdtInfos> rowCandUpcBdt;
@@ -82,7 +141,7 @@ struct HfTaskLc {
82141
Configurable<std::vector<double>> binsPt{"binsPt", std::vector<double>{hf_cuts_lc_to_p_k_pi::vecBinsPt}, "pT bin limits"};
83142
// ThnSparse for ML outputScores and Vars
84143
Configurable<bool> fillTHn{"fillTHn", false, "fill THn"};
85-
Configurable<bool> fillUPCTHnLite{"fillUPCTHnLite", false, "fill THn"};
144+
Configurable<bool> fillUPCTreeLite{"fillUPCTreeLite", false, "fill THn"};
86145
Configurable<bool> storeOccupancy{"storeOccupancy", true, "Flag to store occupancy information"};
87146
Configurable<int> occEstimator{"occEstimator", 2, "Occupancy estimation (None: 0, ITS: 1, FT0C: 2)"};
88147
Configurable<bool> storeProperLifetime{"storeProperLifetime", false, "Flag to store proper lifetime"};
@@ -800,7 +859,7 @@ struct HfTaskLc {
800859
outputFD = mlProb[MlClassNonPrompt]; /// non-prompt score
801860
}
802861
/// Fill the ML outputScores and variables of candidate
803-
if (fillUPCTHnLite) {
862+
if (fillUPCTreeLite) {
804863
if (gap == o2::aod::sgselector::TrueGap::SingleGapA || gap == o2::aod::sgselector::TrueGap::SingleGapC) {
805864
rowCandUpcBdt(massLc, pt, outputBkg, outputPrompt, outputFD, static_cast<float>(numPvContributors), static_cast<float>(fitInfo.ampFV0A), static_cast<float>(fitInfo.ampFT0A), static_cast<float>(fitInfo.ampFT0C), static_cast<float>(zdcEnergyZNA), static_cast<float>(zdcEnergyZNC), static_cast<float>(zdcTimeZNA), static_cast<float>(zdcTimeZNC));
806865
}
@@ -809,7 +868,7 @@ struct HfTaskLc {
809868
}
810869

811870
} else {
812-
if (fillUPCTHnLite) {
871+
if (fillUPCTreeLite) {
813872
if (gap == o2::aod::sgselector::TrueGap::SingleGapA || gap == o2::aod::sgselector::TrueGap::SingleGapC) {
814873
rowCandUpc(massLc, pt, ptProng0, ptProng1, ptProng2, chi2PCA, decayLength, cpa, static_cast<float>(numPvContributors), static_cast<float>(fitInfo.ampFV0A), static_cast<float>(fitInfo.ampFT0A), static_cast<float>(fitInfo.ampFT0C), static_cast<float>(zdcEnergyZNA), static_cast<float>(zdcEnergyZNC), static_cast<float>(zdcTimeZNA), static_cast<float>(zdcTimeZNC));
815874
}

PWGHF/Utils/utilsUpcHf.h

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -27,65 +27,6 @@
2727
#include <string>
2828
#include <type_traits>
2929

30-
namespace o2::aod
31-
{
32-
namespace full
33-
{
34-
DECLARE_SOA_COLUMN(M, m, float);
35-
DECLARE_SOA_COLUMN(Pt, pt, float);
36-
DECLARE_SOA_COLUMN(BkgScore, bkgScore, float);
37-
DECLARE_SOA_COLUMN(PromptScore, promptScore, float);
38-
DECLARE_SOA_COLUMN(FDScore, fDScore, float);
39-
DECLARE_SOA_COLUMN(PtProng0, ptProng0, float);
40-
DECLARE_SOA_COLUMN(PtProng1, ptProng1, float);
41-
DECLARE_SOA_COLUMN(PtProng2, ptProng2, float);
42-
DECLARE_SOA_COLUMN(Chi2PCA, chi2PCA, float);
43-
DECLARE_SOA_COLUMN(DecayLength, decayLength, float);
44-
DECLARE_SOA_COLUMN(CPA, cPA, float);
45-
DECLARE_SOA_COLUMN(PvContributors, pvContributors, float);
46-
DECLARE_SOA_COLUMN(AmpFV0A, ampFV0A, float);
47-
DECLARE_SOA_COLUMN(AmpFT0A, ampFT0A, float);
48-
DECLARE_SOA_COLUMN(AmpFT0C, ampFT0C, float);
49-
DECLARE_SOA_COLUMN(ZdcEnergyZNA, zdcEnergyZNA, float);
50-
DECLARE_SOA_COLUMN(ZdcEnergyZNC, zdcEnergyZNC, float);
51-
DECLARE_SOA_COLUMN(ZdcTimeZNA, zdcTimeZNA, float);
52-
DECLARE_SOA_COLUMN(ZdcTimeZNC, zdcTimeZNC, float);
53-
} // namespace full
54-
55-
DECLARE_SOA_TABLE(HfUpcLcBdtInfos, "AOD", "HFUPCLCBDTINFOS",
56-
full::M,
57-
full::Pt,
58-
full::BkgScore,
59-
full::PromptScore,
60-
full::FDScore,
61-
full::PvContributors,
62-
full::AmpFV0A,
63-
full::AmpFT0A,
64-
full::AmpFT0C,
65-
full::ZdcEnergyZNA,
66-
full::ZdcEnergyZNC,
67-
full::ZdcTimeZNA,
68-
full::ZdcTimeZNC);
69-
70-
DECLARE_SOA_TABLE(HfUpcLcInfos, "AOD", "HFUPCLCINFOS",
71-
full::M,
72-
full::Pt,
73-
full::PtProng0,
74-
full::PtProng1,
75-
full::PtProng2,
76-
full::Chi2PCA,
77-
full::DecayLength,
78-
full::CPA,
79-
full::PvContributors,
80-
full::AmpFV0A,
81-
full::AmpFT0A,
82-
full::AmpFT0C,
83-
full::ZdcEnergyZNA,
84-
full::ZdcEnergyZNC,
85-
full::ZdcTimeZNA,
86-
full::ZdcTimeZNC);
87-
} // namespace o2::aod
88-
8930
namespace o2::analysis::hf_upc
9031
{
9132

0 commit comments

Comments
 (0)