Skip to content

Commit 0975a95

Browse files
authored
DataFormats: Add V0Type (#14547)
* DataFormats: Add V0Type * Update DecayNBodyIndex.h
1 parent 9907116 commit 0975a95

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

DataFormats/Reconstruction/include/ReconstructionDataFormats/DecayNBodyIndex.h

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,19 @@ class DecayNBodyIndex
5555
class V0Index : public DecayNBodyIndex<2>
5656
{
5757
public:
58+
enum V0Type : uint8_t {
59+
kStandaloneV0 = 0,
60+
kPhotonOnly,
61+
kCollinear,
62+
};
5863
using DecayNBodyIndex<2>::DecayNBodyIndex;
5964
V0Index(int v, GIndex p, GIndex n) : DecayNBodyIndex<2>(v, {p, n}) {}
60-
bool isStandaloneV0() const { return testBit(0); }
61-
bool isPhotonOnly() const { return testBit(1); }
62-
bool isCollinear() const { return testBit(2); }
63-
void setStandaloneV0() { setBit(0); }
64-
void setPhotonOnly() { setBit(1); }
65-
void setCollinear() { setBit(2); }
65+
bool isStandaloneV0() const { return testBit(kStandaloneV0); }
66+
bool isPhotonOnly() const { return testBit(kPhotonOnly); }
67+
bool isCollinear() const { return testBit(kCollinear); }
68+
void setStandaloneV0() { setBit(kStandaloneV0); }
69+
void setPhotonOnly() { setBit(kPhotonOnly); }
70+
void setCollinear() { setBit(kCollinear); }
6671
ClassDefNV(V0Index, 1);
6772
};
6873

0 commit comments

Comments
 (0)