Skip to content

Commit ac2bcf3

Browse files
committed
TRD: Add QTot getter in tracklet
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent ff118eb commit ac2bcf3

File tree

1 file changed

+4
-0
lines changed
  • DataFormats/Detectors/TRD/include/DataFormatsTRD

1 file changed

+4
-0
lines changed

DataFormats/Detectors/TRD/include/DataFormatsTRD/Tracklet64.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ class Tracklet64
190190
return getDynamicCharge((mtrackletWord & Q2mask) >> Q2bs);
191191
}
192192
}; // no unit
193+
GPUd() int getQTot() const
194+
{
195+
return getQ0() + getQ1() + getQ2();
196+
}; // no unit
193197

194198
// ----- Setters for tracklet word manipulation -----
195199
GPUd() void setTrackletWord(uint64_t trackletword) { mtrackletWord = trackletword; }

0 commit comments

Comments
 (0)