CMS 3D CMS Logo

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

Class to contain L1 accept history information from TCDS FED. More...

#include <L1aInfo.h>

Public Member Functions

uint16_t getBXID () const
 
uint8_t getEventType () const
 
int16_t getIndex () const
 
uint64_t getOrbitNr () const
 
 L1aInfo ()
 
 L1aInfo (const tcds::L1aInfo_v1 &)
 
 L1aInfo (int16_t index, uint64_t orbitNr, uint16_t bxid, uint8_t eventtype)
 

Private Attributes

uint16_t bxid_
 
uint8_t eventType_
 
int16_t index_
 
uint64_t orbitNr_
 

Detailed Description

Class to contain L1 accept history information from TCDS FED.

Author
Remi Mommsen - Fermilab

Definition at line 16 of file L1aInfo.h.

Constructor & Destructor Documentation

L1aInfo::L1aInfo ( )

Definition at line 4 of file L1aInfo.cc.

4 : orbitNr_(0), bxid_(0), index_(0), eventType_(0) {}
uint8_t eventType_
Definition: L1aInfo.h:45
uint64_t orbitNr_
Definition: L1aInfo.h:42
int16_t index_
Definition: L1aInfo.h:44
uint16_t bxid_
Definition: L1aInfo.h:43
L1aInfo::L1aInfo ( const tcds::L1aInfo_v1 l1Info)

Definition at line 6 of file L1aInfo.cc.

7  : orbitNr_(((uint64_t)(l1Info.orbithigh) << 32) | l1Info.orbitlow),
8  bxid_(l1Info.bxid),
9  index_(-l1Info.ind0 - 1),
10  eventType_(l1Info.eventtype) {}
uint8_t eventType_
Definition: L1aInfo.h:45
const uint32_t orbitlow
Definition: TCDSRaw.h:55
const uint16_t bxid
Definition: TCDSRaw.h:59
const uint8_t ind0
Definition: TCDSRaw.h:58
uint64_t orbitNr_
Definition: L1aInfo.h:42
const uint8_t eventtype
Definition: TCDSRaw.h:62
const uint16_t orbithigh
Definition: TCDSRaw.h:56
unsigned long long uint64_t
Definition: Time.h:13
int16_t index_
Definition: L1aInfo.h:44
uint16_t bxid_
Definition: L1aInfo.h:43
L1aInfo::L1aInfo ( int16_t  index,
uint64_t  orbitNr,
uint16_t  bxid,
uint8_t  eventtype 
)
inline

Definition at line 22 of file L1aInfo.h.

References bxid_, eventType_, index_, and orbitNr_.

22  {
23  index_ = index;
24  orbitNr_ = orbitNr;
25  bxid_ = bxid;
26  eventType_ = eventtype;
27  };
uint8_t eventType_
Definition: L1aInfo.h:45
uint64_t orbitNr_
Definition: L1aInfo.h:42
int16_t index_
Definition: L1aInfo.h:44
uint16_t bxid_
Definition: L1aInfo.h:43

Member Function Documentation

uint16_t L1aInfo::getBXID ( ) const
inline

Definition at line 36 of file L1aInfo.h.

References bxid_.

Referenced by operator<<().

36 { return bxid_; }
uint16_t bxid_
Definition: L1aInfo.h:43
uint8_t L1aInfo::getEventType ( ) const
inline

Definition at line 39 of file L1aInfo.h.

References eventType_.

Referenced by operator<<().

39 { return eventType_; }
uint8_t eventType_
Definition: L1aInfo.h:45
int16_t L1aInfo::getIndex ( ) const
inline

Definition at line 30 of file L1aInfo.h.

References index_.

Referenced by operator<<().

30 { return index_; }
int16_t index_
Definition: L1aInfo.h:44
uint64_t L1aInfo::getOrbitNr ( ) const
inline

Definition at line 33 of file L1aInfo.h.

References orbitNr_.

Referenced by EventWithHistory::EventWithHistory(), and operator<<().

33 { return orbitNr_; }
uint64_t orbitNr_
Definition: L1aInfo.h:42

Member Data Documentation

uint16_t L1aInfo::bxid_
private

Definition at line 43 of file L1aInfo.h.

Referenced by getBXID(), and L1aInfo().

uint8_t L1aInfo::eventType_
private

Definition at line 45 of file L1aInfo.h.

Referenced by getEventType(), and L1aInfo().

int16_t L1aInfo::index_
private

Definition at line 44 of file L1aInfo.h.

Referenced by getIndex(), and L1aInfo().

uint64_t L1aInfo::orbitNr_
private

Definition at line 42 of file L1aInfo.h.

Referenced by getOrbitNr(), and L1aInfo().