Skip to content

Commit dc09d40

Browse files
Luca610alibuild
andauthored
[PWGHF] Refactor of resonances workflow, pt 2 (#12014)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 7ad2bd8 commit dc09d40

File tree

9 files changed

+2985
-1310
lines changed

9 files changed

+2985
-1310
lines changed

PWGHF/Core/DecayChannels.h

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,40 @@ enum DecayChannelToJpsiResonant : int8_t {
219219
NChannelsToJpsiResonant = BsToJpsiPhi // last channel
220220
};
221221
} // namespace hf_cand_beauty
222+
223+
namespace hf_cand_reso
224+
{
225+
/// @brief resonance candidates: main channels
226+
enum DecayChannelMain : int8_t {
227+
// D1(2420)0
228+
D1zeroToDstarPi = 1, // D*+ π-
229+
// D2*(2460)0
230+
D2starzeroToDplusPi = 2, // D+ π−
231+
D2starzeroToDstarPi = 3, // D*+ π-
232+
// D2*(2460)+
233+
D2starplusToD0Pi = 4, // D0 π+
234+
// Ds1(2536)+
235+
Ds1ToDstarK0s = 5, // D*+ K0s
236+
// Ds2*(2573)+
237+
Ds2starToD0Kplus = 6, // D0 K+
238+
Ds2starToDplusK0s = 7, // D+ K0s
239+
Ds2starToDstarK0s = 8, // D*+ K0s
240+
// Ds1*(2700)+
241+
Ds1star2700ToDstarK0s = 9, // D*+ K0s
242+
// Ds1*(2860)+
243+
Ds1star2860ToDstarK0s = 10, // D*+ K0s
244+
// Ds3*(2860)+
245+
Ds3star2860ToDstarK0s = 11, // D*+ K0s
246+
// Xic(3055)0
247+
Xic3055zeroToD0Lambda = 12, // D0 Λ
248+
// Xic(3055)+
249+
Xic3055plusToDplusLambda = 13, // D+ Λ
250+
// Xic(3080)0
251+
Xic3080zeroToD0Lambda = 14, // D0 Λ
252+
// Xic(3080)+
253+
Xic3080plusToDplusLambda = 15 // D+ Λ
254+
};
255+
} // namespace hf_cand_reso
222256
} // namespace o2::hf_decay
223257

224258
#endif // PWGHF_CORE_DECAYCHANNELS_H_

PWGHF/D2H/Core/SelectorCutsRedDataFormat.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace hf_cuts_d_daughter
2929
static constexpr int NBinsPt = 7;
3030
static constexpr int NCutVars = 6;
3131
constexpr double BinsPt[NBinsPt + 1] = {
32-
1.,
32+
0.,
3333
2.,
3434
4.,
3535
6.,
@@ -87,5 +87,15 @@ static const std::vector<std::string> labelsPt{};
8787
// column labels
8888
static const std::vector<std::string> labelsCutVar = {"invMassLow", "invMassHigh", "cpaMin", "dcaMax", "radiusMin"};
8989
} // namespace hf_cuts_v0_daughter
90+
91+
namespace hf_cuts_track_daughter
92+
{
93+
static constexpr int NCutVars = 7;
94+
// default values for the cuts
95+
constexpr double Cuts[1][NCutVars] = {{0.1, 3, 40, 4, 3, -1, -1}}; // nSigmaTpc, nSigmaTof, nSigmaCombined
96+
// row labels
97+
static const std::vector<std::string> labelsCutVar = {"ptMin", "itsNClsMin", "tpcNCrossedRowsMin", "tpcChi2Max", "nSigmaTpc", "nSigmaTof", "nSigmaComb"};
98+
} // namespace hf_cuts_track_daughter
99+
90100
} // namespace o2::analysis
91101
#endif // PWGHF_D2H_CORE_SELECTORCUTSREDDATAFORMAT_H_

PWGHF/D2H/DataModel/ReducedDataModel.h

Lines changed: 185 additions & 56 deletions
Large diffs are not rendered by default.

PWGHF/D2H/TableProducer/candidateCreatorCharmResoReduced.cxx

Lines changed: 710 additions & 523 deletions
Large diffs are not rendered by default.

PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.cxx

Lines changed: 1111 additions & 492 deletions
Large diffs are not rendered by default.

PWGHF/D2H/Tasks/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ o2physics_add_dpl_workflow(task-charm-polarisation
5454
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
5555
COMPONENT_NAME Analysis)
5656

57-
o2physics_add_dpl_workflow(task-charm-reso-reduced
58-
SOURCES taskCharmResoReduced.cxx
57+
o2physics_add_dpl_workflow(task-charm-reso-to-d-v0-reduced
58+
SOURCES taskCharmResoToDV0Reduced.cxx
59+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
60+
COMPONENT_NAME Analysis)
61+
62+
o2physics_add_dpl_workflow(task-charm-reso-to-d-trk-reduced
63+
SOURCES taskCharmResoToDTrkReduced.cxx
5964
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
6065
COMPONENT_NAME Analysis)
6166

PWGHF/D2H/Tasks/taskCharmResoReduced.cxx renamed to PWGHF/D2H/Tasks/taskCharmResoToDTrkReduced.cxx

Lines changed: 230 additions & 236 deletions
Large diffs are not rendered by default.

PWGHF/D2H/Tasks/taskCharmResoToDV0Reduced.cxx

Lines changed: 658 additions & 0 deletions
Large diffs are not rendered by default.

PWGHF/Utils/utilsMcMatching.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,45 @@ inline std::unordered_map<DecayChannelMain, const std::vector<int>> getDecayChan
176176
}
177177
} // namespace hf_cand_3prong
178178

179+
namespace hf_cand_reso
180+
{
181+
const std::unordered_map<int, int> particlesToDstarK0s = {
182+
{DecayChannelMain::Ds1ToDstarK0s, constants::physics::Pdg::kDS1},
183+
{DecayChannelMain::Ds2starToDstarK0s, constants::physics::Pdg::kDS2Star},
184+
{DecayChannelMain::Ds1star2700ToDstarK0s, constants::physics::Pdg::kDS1Star2700},
185+
{DecayChannelMain::Ds1star2860ToDstarK0s, constants::physics::Pdg::kDS1Star2860},
186+
{DecayChannelMain::Ds3star2860ToDstarK0s, constants::physics::Pdg::kDS3Star2860}};
187+
const std::unordered_map<int, int> particlesToDplusK0s = {
188+
{DecayChannelMain::Ds2starToDplusK0s, constants::physics::Pdg::kDS2Star}};
189+
const std::unordered_map<int, int> particlesToDplusLambda = {
190+
{DecayChannelMain::Xic3055plusToDplusLambda, constants::physics::Pdg::kXiC3055Plus},
191+
{DecayChannelMain::Xic3080plusToDplusLambda, constants::physics::Pdg::kXiC3080Plus}};
192+
const std::unordered_map<int, int> particlesToD0Lambda = {
193+
{DecayChannelMain::Xic3055zeroToD0Lambda, constants::physics::Pdg::kXiC3055_0},
194+
{DecayChannelMain::Xic3080zeroToD0Lambda, constants::physics::Pdg::kXiC3080_0}};
195+
const std::unordered_map<int, int> particlesToDstarPi = {
196+
{DecayChannelMain::D1zeroToDstarPi, constants::physics::Pdg::kD10},
197+
{DecayChannelMain::D2starzeroToDstarPi, constants::physics::Pdg::kD2Star0}};
198+
const std::unordered_map<int, int> particlesToDplusPi = {
199+
{DecayChannelMain::D2starzeroToDplusPi, constants::physics::Pdg::kD2Star0}};
200+
const std::unordered_map<int, int> particlesToD0Pi = {
201+
{DecayChannelMain::D2starplusToD0Pi, constants::physics::Pdg::kD2StarPlus}};
202+
const std::unordered_map<int, int> particlesToD0Kplus = {
203+
{DecayChannelMain::Ds2starToD0Kplus, constants::physics::Pdg::kDS2Star}};
204+
205+
enum PartialMatchMc : uint8_t {
206+
D0Matched = 0,
207+
DstarMatched,
208+
DplusMatched,
209+
K0Matched,
210+
LambdaMatched,
211+
PionMatched,
212+
KaonMatched,
213+
ProtonMatched,
214+
ResoPartlyMatched
215+
};
216+
} // namespace hf_cand_reso
217+
179218
/// Compare an array of PDG codes with an expected array
180219
/// \tparam N size of the arrays to be compared
181220
/// \param arrPdgTested array of PDG codes to be tested

0 commit comments

Comments
 (0)