Skip to content

Commit 646e45a

Browse files
authored
Update DataTypes.h
1 parent d26f229 commit 646e45a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Framework/Core/include/Framework/DataTypes.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,30 @@ constexpr std::array<float, 5> trackQAScaleGloP1{0.183731, 0.409071, 0.00621802,
134134
constexpr std::array<float, 2> trackQAScaledTOF{1.1, 0.33};
135135
} // namespace o2::aod::track
136136

137+
namespace o2::aod::mctracklabel
138+
{
139+
// ! Bit mask to indicate detector mismatches (bit ON means mismatch). Bit 0-6: mismatch at ITS layer. Bit 7-9: # of TPC mismatches in the ranges 0, 1, 2-3, 4-7, 8-15, 16-31, 32-63, >64. Bit 10: TRD, bit 11: TOF, bit 15: indicates negative label
140+
enum McMaskEnum : uint16_t {
141+
MismatchInITS0 = 0x1, // BIT(0) Mismatch in the layer 0 of ITS
142+
MismatchInITS1 = 0x2, // BIT(1) Mismatch in the layer 1 of ITS
143+
MismatchInITS2 = 0x4, // BIT(2) Mismatch in the layer 2 of ITS
144+
MismatchInITS3 = 0x8, // BIT(3) Mismatch in the layer 3 of ITS
145+
MismatchInITS4 = 0x10, // BIT(4) Mismatch in the layer 4 of ITS
146+
MismatchInITS5 = 0x20, // BIT(5) Mismatch in the layer 5 of ITS
147+
MismatchInITS6 = 0x40, // BIT(6) Mismatch in the layer 6 of ITS
148+
MismatchInTPC0 = 0x80, // BIT(7) Mismatch in the 0 of TPC
149+
MismatchInTPC1 = 0x100, // BIT(8) Mismatch in the 1 of TPC
150+
MismatchInTPC2 = 0x200, // BIT(9) Mismatch in the 2 of TPC
151+
MismatchInTRD = 0x400, // BIT(10) Mismatch in the TRD
152+
MismatchInTOF = 0x800, // BIT(11) Mismatch in the TOF
153+
Noise = 0x1000, // BIT(12)
154+
Fake = 0x2000, // BIT(13)
155+
// MatchTPC0 = 0x4000, // BIT(14)
156+
NegativeLabel = 0x8000 // BIT(15) Negative label
157+
};
158+
159+
} // namespace o2::aod::mctracklabel
160+
137161
namespace o2::aod::fwdtrack
138162
{
139163
enum ForwardTrackTypeEnum : uint8_t {

0 commit comments

Comments
 (0)