@@ -26,38 +26,52 @@ namespace o2
2626namespace dataformats
2727{
2828
29- class GlobalTrackID : public AbstractRef <25 , 4 , 3 >
29+ class GlobalTrackID : public AbstractRef <25 , 5 , 2 >
3030{
3131 public:
3232 enum Source : uint8_t { // provenance of the
33- ITS,
33+ ITS, // standalone detectors
3434 TPC,
35- TRD, // standalone tracks
36- ITSTPC,
35+ TRD,
36+ TOF,
37+ PHS,
38+ CPV,
39+ EMC,
40+ HMP,
41+ MFT,
42+ MCH,
43+ MID,
44+ ZDC,
45+ FT0,
46+ FV0,
47+ FDD,
48+ ITSTPC, // 2-detector tracks
3749 TPCTOF,
38- TPCTRD, // 2-detector tracks
39- ITSTPCTRD,
50+ TPCTRD,
51+ ITSTPCTRD, // 3-detector tracks
4052 ITSTPCTOF,
41- TPCTRDTOF, // 3-detector tracks
53+ TPCTRDTOF,
4254 ITSTPCTRDTOF, // full barrel track
55+ //
4356 NSources
4457 };
4558 static constexpr std::array<std::string_view, NSources> SourceNames = {
46- " ITS" , " TPC" , " TRD" , // standalone tracks
47- " ITSTPC" , " TPCTOF" , " TPCTRD" , // 2-detector tracks
48- " ITSTPCTRD" , " ITSTPCTOF" , " TPCTRDTOF" , // 3-detector tracks
49- " ITSTPCTRDTOF" // full barrel track
59+ " ITS" , " TPC" , " TRD" , " TOF" , " PHS" , " CPV" , " EMC" , " HMP" , " MFT" , " MCH" , " MID" , " ZDC" , " FT0" , " FV0" , " FDD" , // standalone tracks
60+ " ITSTPC" , " TPCTOF" , " TPCTRD" , // 2-detector tracks
61+ " ITSTPCTRD" , " ITSTPCTOF" , " TPCTRDTOF" , // 3-detector tracks
62+ " ITSTPCTRDTOF" // full barrel track
63+ //
5064 };
5165
52- using AbstractRef<25 , 4 , 3 >::AbstractRef;
66+ using AbstractRef<25 , 5 , 2 >::AbstractRef;
5367
54- static constexpr std::string_view getSourceName (int i) { return SourceNames[i]; }
68+ static auto getSourceName (int i) { return SourceNames[i]; }
5569 void print () const ;
5670 std::string asString () const ;
57-
71+ auto getSourceName () const { return getSourceName ( getSource ()); }
5872 operator int () const { return int (getIndex ()); }
5973
60- ClassDefNV (GlobalTrackID, 1 );
74+ ClassDefNV (GlobalTrackID, 2 );
6175};
6276
6377std::ostream& operator <<(std::ostream& os, const o2::dataformats::GlobalTrackID& v);
0 commit comments