Skip to content

Commit c3da9ac

Browse files
committed
Move DecayType
1 parent ad9ba4e commit c3da9ac

File tree

2 files changed

+116
-57
lines changed

2 files changed

+116
-57
lines changed

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,6 @@ DECLARE_SOA_COLUMN(FlagMcDecayChanGen, flagMcDecayChanGen, int8_t); //! resonant
440440
DECLARE_SOA_COLUMN(KfGeoMassD0, kfGeoMassD0, float); //! mass of the D0 candidate from the KFParticle geometric fit
441441
DECLARE_SOA_COLUMN(KfGeoMassD0bar, kfGeoMassD0bar, float); //! mass of the D0bar candidate from the KFParticle geometric fit
442442

443-
// mapping of decay types
444-
enum DecayType { D0ToPiK = 0,
445-
JpsiToEE,
446-
JpsiToMuMu,
447-
N2ProngDecays }; // always keep N2ProngDecays at the end
448-
449443
} // namespace hf_cand_2prong
450444

451445
// general columns
@@ -664,8 +658,6 @@ DECLARE_SOA_DYNAMIC_COLUMN(ImpactParameterProduct, impactParameterProduct, // Im
664658
DECLARE_SOA_DYNAMIC_COLUMN(ImpactParameterProductJpsi, impactParameterProductJpsi, // J/Psi impact parameter for B+ -> J/Psi K
665659
[](float dcaDauPos, float dcaDauNeg) -> float { return dcaDauPos * dcaDauNeg; });
666660

667-
enum DecayType { BplusToD0Pi = 0 };
668-
669661
enum DecayTypeMc : uint8_t { BplusToD0PiToKPiPi = 0,
670662
BplusToD0KToKPiK,
671663
PartlyRecoDecay,
@@ -763,14 +755,6 @@ DECLARE_SOA_COLUMN(IsCandidateSwapped, isCandidateSwapped, int8_t); //! swapping
763755
DECLARE_SOA_COLUMN(FlagMcDecayChanRec, flagMcDecayChanRec, int8_t); //! resonant decay channel flag, reconstruction level
764756
DECLARE_SOA_COLUMN(FlagMcDecayChanGen, flagMcDecayChanGen, int8_t); //! resonant decay channel flag, generator level
765757

766-
// mapping of decay types
767-
enum DecayType { DplusToPiKPi = 0,
768-
LcToPKPi,
769-
DsToKKPi,
770-
XicToPKPi,
771-
CdToDeKPi,
772-
N3ProngDecays }; // always keep N3ProngDecays at the end
773-
774758
// Ds± → K± K∓ π± or D± → K± K∓ π±
775759

776760
enum DecayChannelDToKKPi {
@@ -1007,9 +991,6 @@ DECLARE_SOA_COLUMN(OriginMcGen, originMcGen, int8_t); // particle
1007991
DECLARE_SOA_COLUMN(FlagMcDecayChanRec, flagMcDecayChanRec, int8_t); // resonant decay channel flag, reconstruction level
1008992
DECLARE_SOA_COLUMN(FlagMcDecayChanGen, flagMcDecayChanGen, int8_t); // resonant decay channel flag, generator level
1009993

1010-
// mapping of decay types
1011-
enum DecayType { XToJpsiToEEPiPi = 0,
1012-
XToJpsiToMuMuPiPi }; // move this to a dedicated cascade namespace in the future?
1013994
} // namespace hf_cand_x
1014995

1015996
// declare dedicated X candidate table
@@ -1076,8 +1057,6 @@ DECLARE_SOA_COLUMN(FlagMcMatchGen, flagMcMatchGen, int8_t); // generator level
10761057
DECLARE_SOA_COLUMN(OriginMcRec, originMcRec, int8_t); // particle origin, reconstruction level
10771058
DECLARE_SOA_COLUMN(OriginMcGen, originMcGen, int8_t); // particle origin, generator level
10781059
DECLARE_SOA_COLUMN(DebugMcRec, debugMcRec, int8_t); // debug flag for mis-association reconstruction level
1079-
// mapping of decay types
1080-
enum DecayType { XiccToXicPi = 0 }; // move this to a dedicated cascade namespace in the future?
10811060
} // namespace hf_cand_xicc
10821061

10831062
// declare dedicated Xicc candidate table
@@ -1396,13 +1375,6 @@ DECLARE_SOA_DYNAMIC_COLUMN(PtPiFromCharmBaryon, ptPiFromCharmBaryon,
13961375
DECLARE_SOA_DYNAMIC_COLUMN(PtKaFromCasc, ptKaFromCasc,
13971376
[](float px, float py) -> float { return RecoDecay::pt(px, py); });
13981377

1399-
// mapping of decay types
1400-
enum DecayType { XiczeroToXiPi = 0,
1401-
OmegaczeroToXiPi,
1402-
OmegaczeroToOmegaPi,
1403-
OmegaczeroToOmegaK,
1404-
OmegaczeroToOmegaPiOneMu };
1405-
14061378
} // end of namespace hf_cand_xic0_omegac0
14071379

14081380
// declare dedicated Omegac and Xic to Xi Pi candidate table
@@ -1741,10 +1713,6 @@ DECLARE_SOA_DYNAMIC_COLUMN(PProng1, pProng1, //!
17411713
DECLARE_SOA_DYNAMIC_COLUMN(PProng2, pProng2, //!
17421714
[](float px, float py, float pz) -> float { return RecoDecay::p(px, py, pz); });
17431715

1744-
// mapping of decay types
1745-
enum DecayType { XicToXiPiPi = 0, // Ξc± → Ξ∓ π± π±
1746-
XicToXiResPiToXiPiPi, // Ξc± → Ξ(1530) π± → Ξ∓ π± π±
1747-
NDecayType };
17481716
} // end of namespace hf_cand_xic_to_xi_pi_pi
17491717

17501718
// declare dedicated Xic to Xi Pi Pi candidate table
@@ -1859,9 +1827,6 @@ DECLARE_SOA_COLUMN(OriginMcGen, originMcGen, int8_t); // particle
18591827
DECLARE_SOA_COLUMN(FlagMcDecayChanRec, flagMcDecayChanRec, int8_t); // resonant decay channel flag, reconstruction level
18601828
DECLARE_SOA_COLUMN(FlagMcDecayChanGen, flagMcDecayChanGen, int8_t); // resonant decay channel flag, generator level
18611829
DECLARE_SOA_COLUMN(JpsiToMuMuMass, jpsiToMuMuMass, float); // Jpsi mass
1862-
// mapping of decay types
1863-
enum DecayType { ChicToJpsiToEEGamma = 0,
1864-
ChicToJpsiToMuMuGamma }; // move this to a dedicated cascade namespace in the future?
18651830
} // namespace hf_cand_chic
18661831

18671832
// declare dedicated chi_c candidate table
@@ -1930,8 +1895,6 @@ DECLARE_SOA_COLUMN(OriginMcRec, originMcRec, int8_t); // particle
19301895
DECLARE_SOA_COLUMN(OriginMcGen, originMcGen, int8_t); // particle origin, generator level
19311896
DECLARE_SOA_COLUMN(FlagWrongCollision, flagWrongCollision, int8_t); // reconstruction level
19321897
DECLARE_SOA_COLUMN(DebugMcRec, debugMcRec, int8_t); // debug flag for mis-association reconstruction level
1933-
// mapping of decay types
1934-
enum DecayType { LbToLcPi }; // move this to a dedicated cascade namespace in the future?
19351898

19361899
enum DecayTypeMc : uint8_t { LbToLcPiToPKPiPi = 0,
19371900
LbToLcKToPKPiK,
@@ -2007,10 +1970,6 @@ DECLARE_SOA_COLUMN(OriginMcGen, originMcGen, int8_t); // particle
20071970
DECLARE_SOA_COLUMN(FlagWrongCollision, flagWrongCollision, int8_t); // reconstruction level
20081971
DECLARE_SOA_COLUMN(DebugMcRec, debugMcRec, int8_t); // debug flag for mis-association reconstruction level
20091972

2010-
// mapping of decay types
2011-
enum DecayType { B0ToDPi = 0,
2012-
B0ToDstarPi };
2013-
20141973
enum DecayTypeMc : uint8_t { B0ToDplusPiToPiKPiPi = 0,
20151974
B0ToDsPiToKKPiPi,
20161975
BsToDsPiToKKPiPi,
@@ -2139,9 +2098,6 @@ DECLARE_SOA_DYNAMIC_COLUMN(ImpactParameterProductJpsi, impactParameterProductJps
21392098
DECLARE_SOA_DYNAMIC_COLUMN(ImpactParameterProductPhi, impactParameterProductPhi, // J/Psi impact parameter for Bs -> J/Psi phi
21402099
[](float dcaLfTrack0, float dcaLfTrack1) -> float { return dcaLfTrack0 * dcaLfTrack1; });
21412100

2142-
// mapping of decay types
2143-
enum DecayType { BsToDsPi = 0 };
2144-
21452101
enum DecayTypeMc : uint8_t { BsToDsPiToPhiPiPiToKKPiPi = 0, // Bs(bar) → Ds∓ π± → (Phi π∓) π± → (K- K+ π∓) π±
21462102
BsToDsPiToK0starKPiToKKPiPi, // Bs(bar) → Ds∓ π± → (K0* K∓) π± → (K- K+ π∓) π±
21472103
B0ToDsPiToPhiPiPiToKKPiPi, // B0(bar) → Ds± π∓ → (Phi π±) π∓ → (K- K+ π±) π∓
@@ -2305,11 +2261,6 @@ DECLARE_SOA_COLUMN(OriginMcRec, originMcRec, int8_t); //! part
23052261
DECLARE_SOA_COLUMN(OriginMcGen, originMcGen, int8_t); //! particle origin, generator level
23062262
DECLARE_SOA_COLUMN(ParticleAntiparticle, particleAntiparticle, int8_t); //! particle or antiparticle
23072263

2308-
// mapping of decay types
2309-
enum DecayType { Sc0ToPKPiPi = 0,
2310-
ScplusplusToPKPiPi,
2311-
ScStar0ToPKPiPi,
2312-
ScStarPlusPlusToPKPiPi };
23132264
enum Species : int { Sc2455 = 0,
23142265
Sc2520,
23152266
NSpecies };
@@ -2565,14 +2516,6 @@ DECLARE_SOA_COLUMN(FlagMcMatchGenD0, flagMcMatchGenD0, int8_t); //! generator le
25652516
DECLARE_SOA_COLUMN(OriginMcRec, originMcRec, int8_t); //! particle origin, reconstruction level
25662517
DECLARE_SOA_COLUMN(OriginMcGen, originMcGen, int8_t); //! particle origin, generator level
25672518

2568-
enum DecayType {
2569-
DstarToD0Pi = 0,
2570-
D0ToPiK,
2571-
DstarToD0PiPi0,
2572-
D0ToPiKPi0,
2573-
NDstarDecayType
2574-
};
2575-
25762519
} // namespace hf_cand_dstar
25772520

25782521
/// D0 (table) from DStar

PWGHF/DataModel/CandidateSkimmingTables.h

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,122 @@ DECLARE_SOA_TABLE(HfPvRefitDstar, "AOD", "HFPVREFITDSTAR", //!
259259
hf_pv_refit::PvRefitSigmaYZ,
260260
hf_pv_refit::PvRefitSigmaZ2,
261261
o2::soa::Marker<2>);
262+
263+
namespace hf_cand_2prong
264+
{
265+
enum DecayType {
266+
D0ToPiK = 0,
267+
JpsiToEE,
268+
JpsiToMuMu,
269+
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
277+
};
278+
} // namespace hf_cand_bplus
279+
280+
namespace hf_cand_3prong
281+
{
282+
enum DecayType {
283+
DplusToPiKPi = 0,
284+
LcToPKPi,
285+
DsToKKPi,
286+
XicToPKPi,
287+
CdToDeKPi,
288+
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
364+
};
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
377+
262378
} // namespace o2::aod
263379

264380
#endif // PWGHF_DATAMODEL_CANDIDATESKIMMINGTABLES_H_

0 commit comments

Comments
 (0)