ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
BCM_RawData Class Reference

#include <BCM_RawData.h>

Collaboration diagram for BCM_RawData:

Public Member Functions

 BCM_RawData ()=default
 
 BCM_RawData (const BCM_RawData &)=default
 
 BCM_RawData (BCM_RawData &&)=default
 
BCM_RawDataoperator= (const BCM_RawData &)=default
 
BCM_RawDataoperator= (BCM_RawData &&)=default
 
 ~BCM_RawData ()=default
 
 BCM_RawData (const unsigned int word1, const unsigned int word2)
 
 BCM_RawData (const unsigned int Channel, const unsigned int Pulse1Position, const unsigned int Pulse1Width, const unsigned int Pulse2Position, const unsigned int Pulse2Width, const unsigned int LVL1A, const unsigned int BCID, const unsigned int LVL1ID)
 
 BCM_RawData (const unsigned int Channel, const unsigned int Pulse1Position, const unsigned int Pulse1Width, const unsigned int Pulse2Position, const unsigned int Pulse2Width, const unsigned int LVL1A, const unsigned int BCID, const unsigned int LVL1ID, const unsigned int Error)
 
int getWord1 () const
 
int getWord2 () const
 
int getChannel () const
 
int getPulse1Position () const
 
int getPulse1Width () const
 
int getPulse2Position () const
 
int getPulse2Width () const
 
int getLVL1A () const
 
int getBCID () const
 
int getLVL1ID () const
 
int getError () const
 

Private Attributes

unsigned int m_word1 =0
 
unsigned int m_word2 =0
 

Detailed Description

Definition at line 36 of file BCM_RawData.h.

Constructor & Destructor Documentation

◆ BCM_RawData() [1/6]

BCM_RawData::BCM_RawData ( )
default

◆ BCM_RawData() [2/6]

BCM_RawData::BCM_RawData ( const BCM_RawData )
default

◆ BCM_RawData() [3/6]

BCM_RawData::BCM_RawData ( BCM_RawData &&  )
default

◆ ~BCM_RawData()

BCM_RawData::~BCM_RawData ( )
default

◆ BCM_RawData() [4/6]

BCM_RawData::BCM_RawData ( const unsigned int  word1,
const unsigned int  word2 
)

Definition at line 27 of file BCM_RawData.cxx.

27  :
28  m_word1(word1),
29  m_word2(word2)
30 {}

◆ BCM_RawData() [5/6]

BCM_RawData::BCM_RawData ( const unsigned int  Channel,
const unsigned int  Pulse1Position,
const unsigned int  Pulse1Width,
const unsigned int  Pulse2Position,
const unsigned int  Pulse2Width,
const unsigned int  LVL1A,
const unsigned int  BCID,
const unsigned int  LVL1ID 
)

Definition at line 43 of file BCM_RawData.cxx.

51  :
52  m_word1(((Channel & 0x0000F)<< 0)+
53  ((Pulse1Position & 0x0003F)<< 4)+
54  ((Pulse1Width & 0x0001F)<<10)+
55  ((Pulse2Position & 0x0003F)<<15)+
56  ((Pulse2Width & 0x0001F)<<21)+
57  ((LVL1A & 0x0003F)<<26)
58  ),
59  m_word2(((BCID & 0x00FFF)<< 0)+
60  ((LVL1ID & 0x0FFFF)<<12)
61  )
62 {}

◆ BCM_RawData() [6/6]

BCM_RawData::BCM_RawData ( const unsigned int  Channel,
const unsigned int  Pulse1Position,
const unsigned int  Pulse1Width,
const unsigned int  Pulse2Position,
const unsigned int  Pulse2Width,
const unsigned int  LVL1A,
const unsigned int  BCID,
const unsigned int  LVL1ID,
const unsigned int  Error 
)

Definition at line 76 of file BCM_RawData.cxx.

85  :
86  m_word1(((Channel & 0x0000F)<< 0)+
87  ((Pulse1Position & 0x0003F)<< 4)+
88  ((Pulse1Width & 0x0001F)<<10)+
89  ((Pulse2Position & 0x0003F)<<15)+
90  ((Pulse2Width & 0x0001F)<<21)+
91  ((LVL1A & 0x0003F)<<26)
92  ),
93  m_word2(((BCID & 0x00FFF)<< 0)+
94  ((LVL1ID & 0x0FFFF)<<12)+
95  ((Error & 0x0000F)<<28)
96  )
97 {}

Member Function Documentation

◆ getBCID()

int BCM_RawData::getBCID ( ) const
inline

Definition at line 86 of file BCM_RawData.h.

86 { return (m_word2 & 0xFFF); } // Bunch Crossing ID 0-4096

◆ getChannel()

int BCM_RawData::getChannel ( ) const
inline

Definition at line 80 of file BCM_RawData.h.

80 { return (m_word1 & 0xF); } // Channel identifier 0-15

◆ getError()

int BCM_RawData::getError ( ) const
inline

Definition at line 88 of file BCM_RawData.h.

88 { return ((m_word2>>28) & 0xF); } // Error 0-15

◆ getLVL1A()

int BCM_RawData::getLVL1A ( ) const
inline

Definition at line 85 of file BCM_RawData.h.

85 { return ((m_word1>>26) & 0x3F); } // Level 1 accept, 0-63

◆ getLVL1ID()

int BCM_RawData::getLVL1ID ( ) const
inline

Definition at line 87 of file BCM_RawData.h.

87 { return ((m_word2>>12) & 0xFFFF); } // Level 1 ID 0-65535

◆ getPulse1Position()

int BCM_RawData::getPulse1Position ( ) const
inline

Definition at line 81 of file BCM_RawData.h.

81 { return ((m_word1>>4) & 0x3F); } // Position of first pulse 0-63

◆ getPulse1Width()

int BCM_RawData::getPulse1Width ( ) const
inline

Definition at line 82 of file BCM_RawData.h.

82 { return ((m_word1>>10) & 0x1F); } // Width of first pulse 0-31

◆ getPulse2Position()

int BCM_RawData::getPulse2Position ( ) const
inline

Definition at line 83 of file BCM_RawData.h.

83 { return ((m_word1>>15) & 0x3F); } // Position of second pulse 0-63

◆ getPulse2Width()

int BCM_RawData::getPulse2Width ( ) const
inline

Definition at line 84 of file BCM_RawData.h.

84 { return ((m_word1>>21) & 0x1F); } // Width of second pulse 0-31

◆ getWord1()

int BCM_RawData::getWord1 ( ) const
inline

Definition at line 78 of file BCM_RawData.h.

78 { return m_word1; }

◆ getWord2()

int BCM_RawData::getWord2 ( ) const
inline

Definition at line 79 of file BCM_RawData.h.

79 { return m_word2; }

◆ operator=() [1/2]

BCM_RawData& BCM_RawData::operator= ( BCM_RawData &&  )
default

◆ operator=() [2/2]

BCM_RawData& BCM_RawData::operator= ( const BCM_RawData )
default

Member Data Documentation

◆ m_word1

unsigned int BCM_RawData::m_word1 =0
private

Definition at line 92 of file BCM_RawData.h.

◆ m_word2

unsigned int BCM_RawData::m_word2 =0
private

Definition at line 93 of file BCM_RawData.h.


The documentation for this class was generated from the following files:
xAOD::word1
word1
Definition: eFexEMRoI_v1.cxx:82
LArBadChanBlobUtils::Channel
Identifier32::value_type Channel
Definition: LArBadChanBlobUtils.h:24
BCM_RawData::m_word1
unsigned int m_word1
Definition: BCM_RawData.h:92
BCM_RawData::m_word2
unsigned int m_word2
Definition: BCM_RawData.h:93
PixelByteStreamErrors::BCID
@ BCID
Definition: PixelByteStreamErrors.h:13
L1Topo::Error
Error
The different types of error that can be flagged in the L1TopoRDO.
Definition: Error.h:16
PixelByteStreamErrors::LVL1ID
@ LVL1ID
Definition: PixelByteStreamErrors.h:13