CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
TotemT2Digi Class Reference

#include <TotemT2Digi.h>

Public Member Functions

bool hasLE () const
 
bool hasManyLE () const
 
bool hasManyTE () const
 
bool hasTE () const
 
unsigned short leadingEdge () const
 
void setLeadingEdge (unsigned short le)
 
void setTrailingEdge (unsigned short te)
 
unsigned char status () const
 
 TotemT2Digi ()=default
 
 TotemT2Digi (unsigned short id, unsigned char marker, unsigned short le, unsigned short te, unsigned char status)
 
unsigned short trailingEdge () const
 

Private Attributes

unsigned short id_ {0}
 New HW ID in ver 2.2. More...
 
unsigned short lead_edge_ {0}
 Leading edge time. More...
 
unsigned char marker_ {0}
 Channel marker. More...
 
unsigned char status_ {0}
 Header status flags. More...
 
unsigned short trail_edge_ {0}
 Trailing edge time. More...
 

Detailed Description

Definition at line 12 of file TotemT2Digi.h.

Constructor & Destructor Documentation

◆ TotemT2Digi() [1/2]

TotemT2Digi::TotemT2Digi ( )
default

◆ TotemT2Digi() [2/2]

TotemT2Digi::TotemT2Digi ( unsigned short  id,
unsigned char  marker,
unsigned short  le,
unsigned short  te,
unsigned char  status 
)

Definition at line 3 of file TotemT2Digi.cc.

5  : id_(id), marker_(marker), lead_edge_(le), trail_edge_(te), status_(status) {}
unsigned short trail_edge_
Trailing edge time.
Definition: TotemT2Digi.h:35
unsigned short lead_edge_
Leading edge time.
Definition: TotemT2Digi.h:33
unsigned char status() const
Definition: TotemT2Digi.h:21
unsigned short id_
New HW ID in ver 2.2.
Definition: TotemT2Digi.h:29
unsigned char marker_
Channel marker.
Definition: TotemT2Digi.h:31
unsigned char status_
Header status flags.
Definition: TotemT2Digi.h:37

Member Function Documentation

◆ hasLE()

bool TotemT2Digi::hasLE ( ) const
inline

Definition at line 22 of file TotemT2Digi.h.

References marker_.

Referenced by TotemT2DQMSource::fillBX(), TotemT2DQMSource::fillFlags(), and TotemT2DQMSource::fillToT().

22 { return marker_ & 0x1; }
unsigned char marker_
Channel marker.
Definition: TotemT2Digi.h:31

◆ hasManyLE()

bool TotemT2Digi::hasManyLE ( ) const
inline

Definition at line 24 of file TotemT2Digi.h.

References marker_.

Referenced by TotemT2DQMSource::fillFlags().

24 { return marker_ & 0x4; }
unsigned char marker_
Channel marker.
Definition: TotemT2Digi.h:31

◆ hasManyTE()

bool TotemT2Digi::hasManyTE ( ) const
inline

Definition at line 25 of file TotemT2Digi.h.

References marker_.

Referenced by TotemT2DQMSource::fillFlags().

25 { return marker_ & 0x8; }
unsigned char marker_
Channel marker.
Definition: TotemT2Digi.h:31

◆ hasTE()

bool TotemT2Digi::hasTE ( ) const
inline

Definition at line 23 of file TotemT2Digi.h.

References marker_.

Referenced by TotemT2DQMSource::fillFlags(), and TotemT2DQMSource::fillToT().

23 { return marker_ & 0x2; }
unsigned char marker_
Channel marker.
Definition: TotemT2Digi.h:31

◆ leadingEdge()

unsigned short TotemT2Digi::leadingEdge ( ) const
inline

Definition at line 18 of file TotemT2Digi.h.

References lead_edge_.

Referenced by TotemT2DQMSource::fillEdges(), TotemT2DQMSource::fillToT(), and operator<().

18 { return lead_edge_; }
unsigned short lead_edge_
Leading edge time.
Definition: TotemT2Digi.h:33

◆ setLeadingEdge()

void TotemT2Digi::setLeadingEdge ( unsigned short  le)
inline

Definition at line 17 of file TotemT2Digi.h.

References lead_edge_.

17 { lead_edge_ = le; }
unsigned short lead_edge_
Leading edge time.
Definition: TotemT2Digi.h:33

◆ setTrailingEdge()

void TotemT2Digi::setTrailingEdge ( unsigned short  te)
inline

Definition at line 19 of file TotemT2Digi.h.

References trail_edge_.

19 { trail_edge_ = te; }
unsigned short trail_edge_
Trailing edge time.
Definition: TotemT2Digi.h:35

◆ status()

unsigned char TotemT2Digi::status ( ) const
inline

Definition at line 21 of file TotemT2Digi.h.

References status_.

Referenced by TotemT2DQMSource::fillErrorFlagsHistogram().

21 { return status_ & 0xF; }
unsigned char status_
Header status flags.
Definition: TotemT2Digi.h:37

◆ trailingEdge()

unsigned short TotemT2Digi::trailingEdge ( ) const
inline

Definition at line 20 of file TotemT2Digi.h.

References trail_edge_.

Referenced by TotemT2DQMSource::fillEdges(), TotemT2DQMSource::fillToT(), and operator<().

20 { return trail_edge_; }
unsigned short trail_edge_
Trailing edge time.
Definition: TotemT2Digi.h:35

Member Data Documentation

◆ id_

unsigned short TotemT2Digi::id_ {0}
private

New HW ID in ver 2.2.

Definition at line 29 of file TotemT2Digi.h.

◆ lead_edge_

unsigned short TotemT2Digi::lead_edge_ {0}
private

Leading edge time.

Definition at line 33 of file TotemT2Digi.h.

Referenced by leadingEdge(), and setLeadingEdge().

◆ marker_

unsigned char TotemT2Digi::marker_ {0}
private

Channel marker.

Definition at line 31 of file TotemT2Digi.h.

Referenced by hasLE(), hasManyLE(), hasManyTE(), and hasTE().

◆ status_

unsigned char TotemT2Digi::status_ {0}
private

Header status flags.

Definition at line 37 of file TotemT2Digi.h.

Referenced by status().

◆ trail_edge_

unsigned short TotemT2Digi::trail_edge_ {0}
private

Trailing edge time.

Definition at line 35 of file TotemT2Digi.h.

Referenced by setTrailingEdge(), and trailingEdge().