Skip to content

Commit 45cdba4

Browse files
committed
Move legacy decay flags in DecayChannelsLegacy.h
1 parent 309ce76 commit 45cdba4

File tree

2 files changed

+150
-103
lines changed

2 files changed

+150
-103
lines changed

PWGHF/Core/DecayChannelsLegacy.h

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
12+
/// \file DecayChannelsLegacy.h
13+
/// \brief Legacy definitions of constants for MC flagging of HF decay channels.
14+
/// \author Vít Kučera <vit.kucera@cern.ch>, Inha University
15+
/// \note Should be replaced with corresponding constants in DecayChannels.h.
16+
17+
#ifndef PWGHF_CORE_DECAYCHANNELSLEGACY_H_
18+
#define PWGHF_CORE_DECAYCHANNELSLEGACY_H_
19+
20+
namespace o2::aod
21+
{
22+
namespace hf_cand_xic0_omegac0
23+
{
24+
enum DecayType {
25+
XiczeroToXiPi = 0,
26+
OmegaczeroToXiPi,
27+
OmegaczeroToOmegaPi,
28+
OmegaczeroToOmegaK,
29+
OmegaczeroToOmegaPiOneMu
30+
};
31+
} // namespace hf_cand_xic0_omegac0
32+
33+
namespace hf_cand_xic_to_xi_pi_pi
34+
{
35+
enum DecayType {
36+
XicToXiPiPi = 0, // Ξc± → Ξ∓ π± π±
37+
XicToXiResPiToXiPiPi, // Ξc± → Ξ(1530) π± → Ξ∓ π± π±
38+
NDecayType
39+
};
40+
} // namespace hf_cand_xic_to_xi_pi_pi
41+
42+
namespace hf_cand_dstar
43+
{
44+
enum DecayType {
45+
DstarToD0Pi = 0,
46+
D0ToPiK,
47+
DstarToD0PiPi0,
48+
D0ToPiKPi0,
49+
NDstarDecayType
50+
};
51+
} // namespace hf_cand_dstar
52+
53+
namespace hf_cand_sigmac
54+
{
55+
enum DecayType {
56+
Sc0ToPKPiPi = 0,
57+
ScplusplusToPKPiPi,
58+
ScStar0ToPKPiPi,
59+
ScStarPlusPlusToPKPiPi
60+
};
61+
} // namespace hf_cand_sigmac
62+
63+
namespace hf_cand_b0
64+
{
65+
enum DecayType {
66+
B0ToDPi = 0,
67+
B0ToDstarPi
68+
};
69+
} // namespace hf_cand_b0
70+
71+
namespace hf_cand_bplus
72+
{
73+
enum DecayType {
74+
BplusToD0Pi = 0
75+
};
76+
} // namespace hf_cand_bplus
77+
78+
namespace hf_cand_bs
79+
{
80+
enum DecayType {
81+
BsToDsPi = 0
82+
};
83+
} // namespace hf_cand_bs
84+
85+
namespace hf_cand_lb
86+
{
87+
enum DecayType {
88+
LbToLcPi
89+
};
90+
} // namespace hf_cand_lb
91+
92+
// ALICE3
93+
94+
namespace hf_cand_x
95+
{
96+
enum DecayType {
97+
XToJpsiToEEPiPi = 0,
98+
XToJpsiToMuMuPiPi
99+
};
100+
} // namespace hf_cand_x
101+
102+
namespace hf_cand_xicc
103+
{
104+
enum DecayType {
105+
XiccToXicPi = 0
106+
};
107+
} // namespace hf_cand_xicc
108+
109+
namespace hf_cand_chic
110+
{
111+
enum DecayType {
112+
ChicToJpsiToEEGamma = 0,
113+
ChicToJpsiToMuMuGamma
114+
};
115+
} // namespace hf_cand_chic
116+
117+
} // namespace o2::aod
118+
119+
#endif // PWGHF_CORE_DECAYCHANNELSLEGACY_H_

PWGHF/DataModel/CandidateSkimmingTables.h

Lines changed: 31 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,21 @@ namespace o2::aod
3030
{
3131
namespace hf_sel_collision
3232
{
33+
34+
// ================
35+
// Collision selection table
36+
// ================
37+
3338
DECLARE_SOA_COLUMN(WhyRejectColl, whyRejectColl, o2::hf_evsel::HfCollisionRejectionMask); //!
3439
} // namespace hf_sel_collision
3540

3641
DECLARE_SOA_TABLE(HfSelCollision, "AOD", "HFSELCOLLISION", //!
3742
hf_sel_collision::WhyRejectColl);
3843

44+
// ================
45+
// Track selection tables
46+
// ================
47+
3948
namespace hf_sel_track
4049
{
4150
DECLARE_SOA_COLUMN(IsSelProng, isSelProng, uint32_t); //!
@@ -76,6 +85,10 @@ DECLARE_SOA_TABLE(HfPvRefitTrack, "AOD", "HFPVREFITTRACK", //!
7685
hf_pv_refit_track::PvRefitDcaXY,
7786
hf_pv_refit_track::PvRefitDcaZ);
7887

88+
// ================
89+
// Track index skim tables
90+
// ================
91+
7992
namespace hf_track_index
8093
{
8194
DECLARE_SOA_INDEX_COLUMN(Collision, collision); //! Collision index
@@ -88,16 +101,14 @@ DECLARE_SOA_INDEX_COLUMN(V0, v0); //! Index to V
88101
DECLARE_SOA_INDEX_COLUMN(Cascade, cascade); //! Index to cascade prong
89102
DECLARE_SOA_COLUMN(HFflag, hfflag, uint8_t); //! Bitmap to store selection results, o2-linter: disable=name/o2-column (written to disk)
90103

91-
DECLARE_SOA_COLUMN(FlagD0ToKPi, flagD0ToKPi, uint8_t); //!
92-
DECLARE_SOA_COLUMN(FlagJpsiToEE, flagJpsiToEE, uint8_t); //!
93-
DECLARE_SOA_COLUMN(FlagJpsiToMuMu, flagJpsiToMuMu, uint8_t); //!
94-
104+
DECLARE_SOA_COLUMN(FlagD0ToKPi, flagD0ToKPi, uint8_t); //!
105+
DECLARE_SOA_COLUMN(FlagJpsiToEE, flagJpsiToEE, uint8_t); //!
106+
DECLARE_SOA_COLUMN(FlagJpsiToMuMu, flagJpsiToMuMu, uint8_t); //!
95107
DECLARE_SOA_COLUMN(FlagDplusToPiKPi, flagDplusToPiKPi, uint8_t); //!
96108
DECLARE_SOA_COLUMN(FlagLcToPKPi, flagLcToPKPi, uint8_t); //!
97109
DECLARE_SOA_COLUMN(FlagDsToKKPi, flagDsToKKPi, uint8_t); //!
98110
DECLARE_SOA_COLUMN(FlagXicToPKPi, flagXicToPKPi, uint8_t); //!
99-
100-
DECLARE_SOA_COLUMN(FlagDstarToD0Pi, flagDstarToD0Pi, uint8_t); //!
111+
DECLARE_SOA_COLUMN(FlagDstarToD0Pi, flagDstarToD0Pi, uint8_t); //!
101112

102113
DECLARE_SOA_COLUMN(MlProbSkimD0ToKPi, mlProbSkimD0ToKPi, std::vector<float>); //! ML probabilities (background, prompt, non-prompt) for D0->Kpi
103114
DECLARE_SOA_COLUMN(MlProbSkimDplusToPiKPi, mlProbSkimDplusToPiKPi, std::vector<float>); //! ML probabilities (background, prompt, non-prompt) for D+->Kpipi
@@ -160,6 +171,7 @@ DECLARE_SOA_TABLE(HfCascLf2Prongs, "AOD", "HFCASCLF2PRONG", //! Table for HF 2 p
160171
hf_track_index::CascadeId,
161172
hf_track_index::Prong0Id,
162173
hf_track_index::HFflag);
174+
163175
using HfCascLf2Prong = HfCascLf2Prongs::iterator;
164176

165177
DECLARE_SOA_TABLE(HfCascLf3Prongs, "AOD", "HFCASCLF3PRONG", //! Table for HF 3 prong candidates with a Cascade
@@ -168,6 +180,7 @@ DECLARE_SOA_TABLE(HfCascLf3Prongs, "AOD", "HFCASCLF3PRONG", //! Table for HF 3 p
168180
hf_track_index::CascadeId,
169181
hf_track_index::Prong0Id,
170182
hf_track_index::Prong1Id);
183+
171184
using HfCascLf3Prong = HfCascLf3Prongs::iterator;
172185

173186
namespace hf_track_index
@@ -212,6 +225,10 @@ DECLARE_SOA_TABLE(Hf3ProngMlProbs, "AOD", "HF3PRONGMLPROB", //! Table for ML sco
212225
hf_track_index::MlProbSkimDsToKKPi,
213226
hf_track_index::MlProbSkimXicToPKPi);
214227

228+
// ================
229+
// Primary-vertex refit tables
230+
// ================
231+
215232
namespace hf_pv_refit
216233
{
217234
DECLARE_SOA_COLUMN(PvRefitX, pvRefitX, float); //!
@@ -260,22 +277,19 @@ DECLARE_SOA_TABLE(HfPvRefitDstar, "AOD", "HFPVREFITDSTAR", //!
260277
hf_pv_refit::PvRefitSigmaZ2,
261278
o2::soa::Marker<2>);
262279

280+
// ================
281+
// Decay types stored in HFflag
282+
// ================
283+
263284
namespace hf_cand_2prong
264285
{
265286
enum DecayType {
266287
D0ToPiK = 0,
267288
JpsiToEE,
268289
JpsiToMuMu,
269290
N2ProngDecays
270-
}; // always keep N2ProngDecays at the end
271-
} // namespace hf_cand_2prong
272-
273-
namespace hf_cand_bplus
274-
{
275-
enum DecayType {
276-
BplusToD0Pi = 0
277291
};
278-
} // namespace hf_cand_bplus
292+
} // namespace hf_cand_2prong
279293

280294
namespace hf_cand_3prong
281295
{
@@ -286,94 +300,8 @@ enum DecayType {
286300
XicToPKPi,
287301
CdToDeKPi,
288302
N3ProngDecays
289-
}; // always keep N3ProngDecays at the end
290-
} // namespace hf_cand_3prong
291-
292-
namespace hf_cand_x
293-
{
294-
enum DecayType {
295-
XToJpsiToEEPiPi = 0,
296-
XToJpsiToMuMuPiPi
297-
}; // move this to a dedicated cascade namespace in the future?
298-
} // namespace hf_cand_x
299-
300-
namespace hf_cand_xicc
301-
{
302-
enum DecayType {
303-
XiccToXicPi = 0
304-
}; // move this to a dedicated cascade namespace in the future?
305-
} // namespace hf_cand_xicc
306-
307-
namespace hf_cand_xic0_omegac0
308-
{
309-
enum DecayType {
310-
XiczeroToXiPi = 0,
311-
OmegaczeroToXiPi,
312-
OmegaczeroToOmegaPi,
313-
OmegaczeroToOmegaK,
314-
OmegaczeroToOmegaPiOneMu
315-
};
316-
} // namespace hf_cand_xic0_omegac0
317-
318-
namespace hf_cand_xic_to_xi_pi_pi
319-
{
320-
enum DecayType {
321-
XicToXiPiPi = 0, // Ξc± → Ξ∓ π± π±
322-
XicToXiResPiToXiPiPi, // Ξc± → Ξ(1530) π± → Ξ∓ π± π±
323-
NDecayType
324-
};
325-
} // namespace hf_cand_xic_to_xi_pi_pi
326-
327-
namespace hf_cand_chic
328-
{
329-
enum DecayType {
330-
ChicToJpsiToEEGamma = 0,
331-
ChicToJpsiToMuMuGamma
332-
}; // move this to a dedicated cascade namespace in the future?
333-
} // namespace hf_cand_chic
334-
335-
namespace hf_cand_lb
336-
{
337-
enum DecayType {
338-
LbToLcPi
339-
}; // move this to a dedicated cascade namespace in the future?
340-
} // namespace hf_cand_lb
341-
342-
namespace hf_cand_b0
343-
{
344-
enum DecayType {
345-
B0ToDPi = 0,
346-
B0ToDstarPi
347-
};
348-
} // namespace hf_cand_b0
349-
350-
namespace hf_cand_bs
351-
{
352-
enum DecayType {
353-
BsToDsPi = 0
354-
};
355-
} // namespace hf_cand_bs
356-
357-
namespace hf_cand_sigmac
358-
{
359-
enum DecayType {
360-
Sc0ToPKPiPi = 0,
361-
ScplusplusToPKPiPi,
362-
ScStar0ToPKPiPi,
363-
ScStarPlusPlusToPKPiPi
364303
};
365-
} // namespace hf_cand_sigmac
366-
367-
namespace hf_cand_dstar
368-
{
369-
enum DecayType {
370-
DstarToD0Pi = 0,
371-
D0ToPiK,
372-
DstarToD0PiPi0,
373-
D0ToPiKPi0,
374-
NDstarDecayType
375-
};
376-
} // namespace hf_cand_dstar
304+
} // namespace hf_cand_3prong
377305

378306
namespace hf_cand_casc_lf
379307
{
@@ -382,12 +310,12 @@ enum DecayType2Prong {
382310
OmegaczeroToOmegaPi,
383311
OmegaczeroToOmegaK,
384312
N2ProngDecays
385-
}; // always keep N2ProngDecays at the end
313+
};
386314

387315
enum DecayType3Prong {
388316
XicplusToXiPiPi = 0,
389317
N3ProngDecays
390-
}; // always keep N3ProngDecays at the end
318+
};
391319
} // namespace hf_cand_casc_lf
392320

393321
} // namespace o2::aod

0 commit comments

Comments
 (0)