Skip to content

Commit

Permalink
TRD add some helper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
martenole committed Nov 17, 2023
1 parent d23cc85 commit bfa09b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ constexpr int TRDLINKID = 15; ///< hard coded link id, specific to TRD
constexpr int NCOLUMN = 144; ///< the number of pad columns for each chamber
constexpr int NROWC0 = 12; ///< the number of pad rows for chambers of type C0 (installed in stack 2)
constexpr int NROWC1 = 16; ///< the number of pad rows for chambers of type C1 (installed in stacks 0, 1, 3 and 4)
constexpr int FIRSTROW[NSTACK] = {0, 16, 32, 44, 60}; ///< first pad row for each stack

constexpr int NMCMROB = 16; ///< the number of MCMs per ROB
constexpr int NMCMHCMAX = 64; ///< the maximum number of MCMs for one half chamber (C1 type)
Expand Down
1 change: 1 addition & 0 deletions DataFormats/Detectors/TRD/include/DataFormatsTRD/Digit.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class Digit
int getPadCol() const { return HelperMethods::getPadColFromADC(mROB, mMCM, mChannel); }
int getROB() const { return mROB; }
int getMCM() const { return mMCM; }
int getMCMCol() const { return (getMCM() % constants::NMCMROBINCOL) + constants::NMCMROBINCOL * (getROB() % 2); }
int getChannel() const { return mChannel; }
int getPreTrigPhase() const { return ((mDetector >> 12) & 0xf); }
bool isSharedDigit() const;
Expand Down

0 comments on commit bfa09b7

Please sign in to comment.