CMS 3D CMS Logo

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() [1/3]

L1aInfo::L1aInfo ( )

Definition at line 4 of file L1aInfo.cc.

4 : orbitNr_(0), bxid_(0), index_(0), eventType_(0) {}

◆ L1aInfo() [2/3]

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) {}

◆ L1aInfo() [3/3]

L1aInfo::L1aInfo ( int16_t  index,
uint64_t  orbitNr,
uint16_t  bxid,
uint8_t  eventtype 
)
inline

Definition at line 22 of file L1aInfo.h.

22  {
23  index_ = index;
24  orbitNr_ = orbitNr;
25  bxid_ = bxid;
26  eventType_ = eventtype;
27  };

References bxid_, eventType_, index_, and orbitNr_.

Member Function Documentation

◆ getBXID()

uint16_t L1aInfo::getBXID ( ) const
inline

Definition at line 36 of file L1aInfo.h.

36 { return bxid_; }

References bxid_.

Referenced by operator<<().

◆ getEventType()

uint8_t L1aInfo::getEventType ( ) const
inline

Definition at line 39 of file L1aInfo.h.

39 { return eventType_; }

References eventType_.

Referenced by operator<<().

◆ getIndex()

int16_t L1aInfo::getIndex ( ) const
inline

Definition at line 30 of file L1aInfo.h.

30 { return index_; }

References index_.

Referenced by operator<<().

◆ getOrbitNr()

uint64_t L1aInfo::getOrbitNr ( ) const
inline

Definition at line 33 of file L1aInfo.h.

33 { return orbitNr_; }

References orbitNr_.

Referenced by operator<<().

Member Data Documentation

◆ bxid_

uint16_t L1aInfo::bxid_
private

Definition at line 43 of file L1aInfo.h.

Referenced by getBXID(), and L1aInfo().

◆ eventType_

uint8_t L1aInfo::eventType_
private

Definition at line 45 of file L1aInfo.h.

Referenced by getEventType(), and L1aInfo().

◆ index_

int16_t L1aInfo::index_
private

Definition at line 44 of file L1aInfo.h.

Referenced by getIndex(), and L1aInfo().

◆ orbitNr_

uint64_t L1aInfo::orbitNr_
private

Definition at line 42 of file L1aInfo.h.

Referenced by getOrbitNr(), and L1aInfo().

L1aInfo::eventType_
uint8_t eventType_
Definition: L1aInfo.h:45
tcds::L1aInfo_v1::orbitlow
const uint32_t orbitlow
Definition: TCDSRaw.h:55
tcds::L1aInfo_v1::ind0
const uint8_t ind0
Definition: TCDSRaw.h:58
tcds::L1aInfo_v1::bxid
const uint16_t bxid
Definition: TCDSRaw.h:59
L1aInfo::index_
int16_t index_
Definition: L1aInfo.h:44
tcds::L1aInfo_v1::orbithigh
const uint16_t orbithigh
Definition: TCDSRaw.h:56
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
L1aInfo::bxid_
uint16_t bxid_
Definition: L1aInfo.h:43
tcds::L1aInfo_v1::eventtype
const uint8_t eventtype
Definition: TCDSRaw.h:62
L1aInfo::orbitNr_
uint64_t orbitNr_
Definition: L1aInfo.h:42