Skip to content

Commit 58524c4

Browse files
committed
Define 5-prong tables
1 parent 04ddea4 commit 58524c4

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ DECLARE_SOA_INDEX_COLUMN_FULL(Prong0, prong0, int, Tracks, "_0"); //! Index to f
245245
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, Tracks, "_1"); //! Index to second prong
246246
DECLARE_SOA_INDEX_COLUMN_FULL(Prong2, prong2, int, Tracks, "_2"); //! Index to third prong
247247
DECLARE_SOA_INDEX_COLUMN_FULL(Prong3, prong3, int, Tracks, "_3"); //! Index to fourth prong
248+
DECLARE_SOA_INDEX_COLUMN_FULL(Prong4, prong4, int, Tracks, "_4"); //! Index to fifth prong
248249
DECLARE_SOA_INDEX_COLUMN(V0, v0); //! Index to V0 prong
249250
DECLARE_SOA_INDEX_COLUMN(Cascade, cascade); //! Index to cascade prong
250251
DECLARE_SOA_COLUMN(HFflag, hfflag, uint8_t); //! Bitmap to store selection results, o2-linter: disable=name/o2-column (written to disk)

PWGHF/DataModel/DerivedTables.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ namespace o2::aod
4141
// B0 → D− π+
4242
// B+ → D0 π+
4343
// D*+ → D0 π+
44+
// Ξc± → (Ξ∓ → (Λ → p π∓) π∓) π± π±
4445

4546
// ================
4647
// Collision tables
@@ -214,6 +215,17 @@ DECLARE_SOA_COLUMN(FlagMcDecayChanGen, flagMcDecayChanGen, int8_t); //! resonant
214215
hf_track_index::Prong3Id, \
215216
o2::soa::Marker<Marker##_hf_type_>);
216217

218+
// Declares the table with global indices for 4-prong candidates (Ids).
219+
#define DECLARE_TABLE_CAND_ID_5P(_hf_type_, _hf_description_) \
220+
DECLARE_SOA_TABLE_STAGED(Hf##_hf_type_##Ids, "HF" _hf_description_ "ID", \
221+
hf_cand::CollisionId, \
222+
hf_track_index::Prong0Id, \
223+
hf_track_index::Prong1Id, \
224+
hf_track_index::Prong2Id, \
225+
hf_track_index::Prong3Id, \
226+
hf_track_index::Prong4Id, \
227+
o2::soa::Marker<Marker##_hf_type_>);
228+
217229
// Declares the table with candidate selection flags (Sels).
218230
#define DECLARE_TABLE_CAND_SEL(_hf_type_, _hf_description_) \
219231
DECLARE_SOA_TABLE_STAGED(Hf##_hf_type_##Sels, "HF" _hf_description_ "SEL", \
@@ -282,6 +294,11 @@ DECLARE_SOA_COLUMN(FlagMcDecayChanGen, flagMcDecayChanGen, int8_t); //! resonant
282294
DECLARE_TABLES_COMMON(_hf_type_, _hf_description_, _hf_namespace_) \
283295
DECLARE_TABLE_CAND_ID_4P(_hf_type_, _hf_description_)
284296

297+
#define DECLARE_TABLES_5P(_hf_type_, _hf_description_, _hf_namespace_, _marker_number_) \
298+
constexpr uint Marker##_hf_type_ = _marker_number_; \
299+
DECLARE_TABLES_COMMON(_hf_type_, _hf_description_, _hf_namespace_) \
300+
DECLARE_TABLE_CAND_ID_5P(_hf_type_, _hf_description_)
301+
285302
// ================
286303
// Declarations of common tables for individual species
287304
// ================
@@ -296,6 +313,7 @@ DECLARE_TABLES_3P(Dstar, "DST", dstar, 6);
296313
#undef B0
297314
DECLARE_TABLES_4P(B0, "B0", b0, 7);
298315
#pragma pop_macro("B0")
316+
DECLARE_TABLES_5P(XicToXiPiPi, "XICTOXIPIPI", xic_to_xi_pi_pi, 6);
299317

300318
// ================
301319
// Additional species-specific candidate tables

0 commit comments

Comments
 (0)