Skip to content

Commit 74f9345

Browse files
committed
Allow per-projection operations on tracks
1 parent 9e2718c commit 74f9345

2 files changed

Lines changed: 210 additions & 100 deletions

File tree

DataFormats/Reconstruction/include/ReconstructionDataFormats/TrackParametrization.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ enum CovLabels : int {
9393
kSigQ2Pt2
9494
};
9595

96+
enum TrackBits : uint8_t { // reserved track bits
97+
kFirstUpdate,
98+
kPerProjection
99+
};
100+
96101
enum DirType : int { DirInward = -1,
97102
DirAuto = 0,
98103
DirOutward = 1 };
@@ -252,8 +257,10 @@ class TrackParametrization
252257
GPUhd() uint8_t getUserField() const;
253258
GPUhd() void setUserField(uint8_t v);
254259

255-
GPUhd() void setPerProjection(bool v) { setBit(0); } // request perform operations per projection
256-
GPUhd() bool isPerProjection() const { return testBit(0); } // perform operations per projection?
260+
GPUhd() void setPerProjection(bool v) { setBit(kPerProjection); } // request perform operations per projection
261+
GPUhd() bool isPerProjection() const { return testBit(kPerProjection); } // perform operations per projection?
262+
GPUhd() void setFirstUpdate(bool v) { setBit(kFirstUpdate); } // request perform operations per projection
263+
GPUhd() bool isFirstUpdate() const { return testBit(kFirstUpdate); } // perform operations per projection?
257264

258265
GPUd() void printParam() const;
259266
GPUd() void printParamHexadecimal();

0 commit comments

Comments
 (0)