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

#include <L1CaloRdoRodInfo.h>

Collaboration diagram for L1CaloRdoRodInfo:

Public Member Functions

 L1CaloRdoRodInfo (int system, int rod, int run, int bcnum, int triggerType, int detType, int version)
 
std::string getType () const
 
void info () const
 
int getMinorVersion () const
 
bool getIsRun1 () const
 
bool getIsRun2 () const
 
bool getIsRun3 () const
 
int getSystemId () const
 
int getRodId () const
 
int getSourceId () const
 
int getRunNumber () const
 
int getBcNumber () const
 
int getTriggerType () const
 
int getLevel1Id () const
 
int getDataSize () const
 
int getStepNumber () const
 
int getOrbitCount () const
 
bool getBcnumMismatch () const
 
bool getGlinkTimeout () const
 
bool getDataTransportError () const
 
bool getRodOverflow () const
 
bool getModuleLinkError () const
 
bool getCmmParityError () const
 
bool getGlinkError () const
 
bool getRoiOverflow () const
 
bool getTriggerTypeTimeout () const
 
int getModuleStatus (const int module) const
 
void setLvl1Id (int lvl1)
 
void setSize (int size)
 
void setStatus1 (int status)
 
void setStatus2 (int status)
 
void setModuleStatus (int module, int status)
 

Static Public Attributes

static const unsigned int s_minRun2Version = 0x1004
 

Private Attributes

int m_system
 
int m_rod
 
int m_run
 
int m_bcnum
 
int m_triggerType
 
int m_detType
 
int m_lvl1
 
int m_size
 
int m_status1
 
int m_status2
 
int m_version
 
std::vector< int > m_status
 

Detailed Description

Definition at line 10 of file L1CaloRdoRodInfo.h.

Constructor & Destructor Documentation

◆ L1CaloRdoRodInfo()

L1CaloRdoRodInfo::L1CaloRdoRodInfo ( int  system,
int  rod,
int  run,
int  bcnum,
int  triggerType,
int  detType,
int  version 
)

Definition at line 15 of file L1CaloRdoRodInfo.cxx.

16 : m_system( system )
17 , m_rod( rod )
18 , m_run( run )
19 , m_bcnum( bcnum )
21 , m_detType( detType )
22 , m_lvl1( 0 )
23 , m_size( 0 )
24 , m_status1( 0 )
25 , m_status2 ( 0 )
26 , m_version( version )
27 , m_status( 16, 0 )
28 {
29 }

Member Function Documentation

◆ getBcNumber()

int L1CaloRdoRodInfo::getBcNumber ( ) const

Definition at line 105 of file L1CaloRdoRodInfo.cxx.

106 {
107  return m_bcnum;
108 }

◆ getBcnumMismatch()

bool L1CaloRdoRodInfo::getBcnumMismatch ( ) const

Definition at line 141 of file L1CaloRdoRodInfo.cxx.

142 {
143  return ( m_status1 & 0x1 );
144 }

◆ getCmmParityError()

bool L1CaloRdoRodInfo::getCmmParityError ( ) const

Definition at line 171 of file L1CaloRdoRodInfo.cxx.

172 {
173  return ( m_status1 & 0x20000 );
174 }

◆ getDataSize()

int L1CaloRdoRodInfo::getDataSize ( ) const

Definition at line 123 of file L1CaloRdoRodInfo.cxx.

124 {
125  return m_size;
126 }

◆ getDataTransportError()

bool L1CaloRdoRodInfo::getDataTransportError ( ) const

Definition at line 153 of file L1CaloRdoRodInfo.cxx.

154 {
155  return ( m_status1 & 0x8 );
156 }

◆ getGlinkError()

bool L1CaloRdoRodInfo::getGlinkError ( ) const

Definition at line 177 of file L1CaloRdoRodInfo.cxx.

178 {
179  return ( m_status1 & 0x40000 );
180 }

◆ getGlinkTimeout()

bool L1CaloRdoRodInfo::getGlinkTimeout ( ) const

Definition at line 147 of file L1CaloRdoRodInfo.cxx.

148 {
149  return ( m_status1 & 0x4 );
150 }

◆ getIsRun1()

bool L1CaloRdoRodInfo::getIsRun1 ( ) const

Definition at line 62 of file L1CaloRdoRodInfo.cxx.

63 {
64  return ( (unsigned int)this->getMinorVersion() < s_minRun2Version );
65 }

◆ getIsRun2()

bool L1CaloRdoRodInfo::getIsRun2 ( ) const

Definition at line 68 of file L1CaloRdoRodInfo.cxx.

69 {
70  return ( this->getIsRun3() || (unsigned int)this->getMinorVersion() >= s_minRun2Version );
71 }

◆ getIsRun3()

bool L1CaloRdoRodInfo::getIsRun3 ( ) const

Definition at line 74 of file L1CaloRdoRodInfo.cxx.

75 {
76  // Run3 fragments have some of bits 12-15 set.
77  return ( ( this->getRodId() & 0xf000 ) != 0 );
78 }

◆ getLevel1Id()

int L1CaloRdoRodInfo::getLevel1Id ( ) const

Definition at line 117 of file L1CaloRdoRodInfo.cxx.

118 {
119  return m_lvl1;
120 }

◆ getMinorVersion()

int L1CaloRdoRodInfo::getMinorVersion ( ) const

Definition at line 56 of file L1CaloRdoRodInfo.cxx.

57 {
58  return ( m_version & 0xffff );
59 }

◆ getModuleLinkError()

bool L1CaloRdoRodInfo::getModuleLinkError ( ) const

Definition at line 165 of file L1CaloRdoRodInfo.cxx.

166 {
167  return ( m_status1 & 0x10000 );
168 }

◆ getModuleStatus()

int L1CaloRdoRodInfo::getModuleStatus ( const int  module) const

Definition at line 195 of file L1CaloRdoRodInfo.cxx.

196 {
197  if ( (module < 0) || (module > 15) )
198  return 0;
199  return m_status[module];
200 }

◆ getOrbitCount()

int L1CaloRdoRodInfo::getOrbitCount ( ) const

Definition at line 135 of file L1CaloRdoRodInfo.cxx.

136 {
137  return ( (m_detType>>16) & 0xffff);
138 }

◆ getRodId()

int L1CaloRdoRodInfo::getRodId ( ) const

Definition at line 87 of file L1CaloRdoRodInfo.cxx.

88 {
89  return m_rod;
90 }

◆ getRodOverflow()

bool L1CaloRdoRodInfo::getRodOverflow ( ) const

Definition at line 159 of file L1CaloRdoRodInfo.cxx.

160 {
161  return ( m_status1 & 0x10 );
162 }

◆ getRoiOverflow()

bool L1CaloRdoRodInfo::getRoiOverflow ( ) const

Definition at line 183 of file L1CaloRdoRodInfo.cxx.

184 {
185  return ( m_status2 & 0x2 );
186 }

◆ getRunNumber()

int L1CaloRdoRodInfo::getRunNumber ( ) const

Definition at line 99 of file L1CaloRdoRodInfo.cxx.

100 {
101  return m_run;
102 }

◆ getSourceId()

int L1CaloRdoRodInfo::getSourceId ( ) const

Definition at line 93 of file L1CaloRdoRodInfo.cxx.

94 {
95  return ( (m_system<<16) | m_rod );
96 }

◆ getStepNumber()

int L1CaloRdoRodInfo::getStepNumber ( ) const

Definition at line 129 of file L1CaloRdoRodInfo.cxx.

130 {
131  return ( (m_detType>>4) & 0xfff);
132 }

◆ getSystemId()

int L1CaloRdoRodInfo::getSystemId ( ) const

Definition at line 81 of file L1CaloRdoRodInfo.cxx.

82 {
83  return m_system;
84 }

◆ getTriggerType()

int L1CaloRdoRodInfo::getTriggerType ( ) const

Definition at line 111 of file L1CaloRdoRodInfo.cxx.

112 {
113  return m_triggerType;
114 }

◆ getTriggerTypeTimeout()

bool L1CaloRdoRodInfo::getTriggerTypeTimeout ( ) const

Definition at line 189 of file L1CaloRdoRodInfo.cxx.

190 {
191  return ( m_status2 & 0x10000 );
192 }

◆ getType()

std::string L1CaloRdoRodInfo::getType ( ) const

Definition at line 32 of file L1CaloRdoRodInfo.cxx.

33 {
34  return std::string( "RodInfo" );
35 }

◆ info()

void L1CaloRdoRodInfo::info ( ) const

Definition at line 38 of file L1CaloRdoRodInfo.cxx.

39 {
40  std::cout << "RDO Object Type: " << getType();
41  std::cout << std::hex;
42  std::cout << " System Id: " << getSystemId();
43  std::cout << " ROD Id: " << getRodId() << std::endl << " ";
44  std::cout << " Run Num: " << getRunNumber();
45  std::cout << " Level-1 Id: " << getLevel1Id();
46  std::cout << " Bc Number: " << getBcNumber();
47  std::cout << " Trig Type: " << getTriggerType();
48  std::cout << " Step Number: " << getStepNumber();
49  std::cout << " Data Size: " << getDataSize();
50  std::cout << " Minor Ver: " << getMinorVersion();
51  std::cout << std::endl;
52  std::cout << std::dec;
53 }

◆ setLvl1Id()

void L1CaloRdoRodInfo::setLvl1Id ( int  lvl1)

Definition at line 203 of file L1CaloRdoRodInfo.cxx.

204 {
205  m_lvl1 = lvl1;
206 }

◆ setModuleStatus()

void L1CaloRdoRodInfo::setModuleStatus ( int  module,
int  status 
)

Definition at line 227 of file L1CaloRdoRodInfo.cxx.

228 {
230 }

◆ setSize()

void L1CaloRdoRodInfo::setSize ( int  size)

Definition at line 209 of file L1CaloRdoRodInfo.cxx.

210 {
211  m_size = size;
212 }

◆ setStatus1()

void L1CaloRdoRodInfo::setStatus1 ( int  status)

Definition at line 215 of file L1CaloRdoRodInfo.cxx.

216 {
217  m_status1 = status;
218 }

◆ setStatus2()

void L1CaloRdoRodInfo::setStatus2 ( int  status)

Definition at line 221 of file L1CaloRdoRodInfo.cxx.

222 {
223  m_status2 = status;
224 }

Member Data Documentation

◆ m_bcnum

int L1CaloRdoRodInfo::m_bcnum
private

Definition at line 61 of file L1CaloRdoRodInfo.h.

◆ m_detType

int L1CaloRdoRodInfo::m_detType
private

Definition at line 63 of file L1CaloRdoRodInfo.h.

◆ m_lvl1

int L1CaloRdoRodInfo::m_lvl1
private

Definition at line 64 of file L1CaloRdoRodInfo.h.

◆ m_rod

int L1CaloRdoRodInfo::m_rod
private

Definition at line 59 of file L1CaloRdoRodInfo.h.

◆ m_run

int L1CaloRdoRodInfo::m_run
private

Definition at line 60 of file L1CaloRdoRodInfo.h.

◆ m_size

int L1CaloRdoRodInfo::m_size
private

Definition at line 65 of file L1CaloRdoRodInfo.h.

◆ m_status

std::vector<int> L1CaloRdoRodInfo::m_status
private

Definition at line 69 of file L1CaloRdoRodInfo.h.

◆ m_status1

int L1CaloRdoRodInfo::m_status1
private

Definition at line 66 of file L1CaloRdoRodInfo.h.

◆ m_status2

int L1CaloRdoRodInfo::m_status2
private

Definition at line 67 of file L1CaloRdoRodInfo.h.

◆ m_system

int L1CaloRdoRodInfo::m_system
private

Definition at line 58 of file L1CaloRdoRodInfo.h.

◆ m_triggerType

int L1CaloRdoRodInfo::m_triggerType
private

Definition at line 62 of file L1CaloRdoRodInfo.h.

◆ m_version

int L1CaloRdoRodInfo::m_version
private

Definition at line 68 of file L1CaloRdoRodInfo.h.

◆ s_minRun2Version

const unsigned int L1CaloRdoRodInfo::s_minRun2Version = 0x1004
static

Definition at line 55 of file L1CaloRdoRodInfo.h.


The documentation for this class was generated from the following files:
L1CaloRdoRodInfo::m_status
std::vector< int > m_status
Definition: L1CaloRdoRodInfo.h:69
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
L1CaloRdoRodInfo::m_version
int m_version
Definition: L1CaloRdoRodInfo.h:68
L1CaloRdoRodInfo::m_run
int m_run
Definition: L1CaloRdoRodInfo.h:60
L1CaloRdoRodInfo::m_size
int m_size
Definition: L1CaloRdoRodInfo.h:65
L1CaloRdoRodInfo::s_minRun2Version
static const unsigned int s_minRun2Version
Definition: L1CaloRdoRodInfo.h:55
plotBeamSpotCompare.x2
x2
Definition: plotBeamSpotCompare.py:218
L1CaloRdoRodInfo::getIsRun3
bool getIsRun3() const
Definition: L1CaloRdoRodInfo.cxx:74
L1CaloRdoRodInfo::m_lvl1
int m_lvl1
Definition: L1CaloRdoRodInfo.h:64
L1CaloRdoRodInfo::m_status2
int m_status2
Definition: L1CaloRdoRodInfo.h:67
L1CaloRdoRodInfo::m_bcnum
int m_bcnum
Definition: L1CaloRdoRodInfo.h:61
L1CaloRdoRodInfo::m_rod
int m_rod
Definition: L1CaloRdoRodInfo.h:59
L1CaloRdoRodInfo::getStepNumber
int getStepNumber() const
Definition: L1CaloRdoRodInfo.cxx:129
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
python.PyAthena.module
module
Definition: PyAthena.py:134
L1CaloRdoRodInfo::getRunNumber
int getRunNumber() const
Definition: L1CaloRdoRodInfo.cxx:99
L1CaloRdoRodInfo::getTriggerType
int getTriggerType() const
Definition: L1CaloRdoRodInfo.cxx:111
L1CaloRdoRodInfo::getType
std::string getType() const
Definition: L1CaloRdoRodInfo.cxx:32
run
Definition: run.py:1
RunTileMonitoring.rod
rod
Definition: RunTileMonitoring.py:134
L1CaloRdoRodInfo::m_status1
int m_status1
Definition: L1CaloRdoRodInfo.h:66
L1CaloRdoRodInfo::m_triggerType
int m_triggerType
Definition: L1CaloRdoRodInfo.h:62
L1CaloRdoRodInfo::m_detType
int m_detType
Definition: L1CaloRdoRodInfo.h:63
L1CaloRdoRodInfo::getBcNumber
int getBcNumber() const
Definition: L1CaloRdoRodInfo.cxx:105
get_generator_info.version
version
Definition: get_generator_info.py:33
L1CaloRdoRodInfo::getDataSize
int getDataSize() const
Definition: L1CaloRdoRodInfo.cxx:123
L1CaloRdoRodInfo::m_system
int m_system
Definition: L1CaloRdoRodInfo.h:58
L1CaloRdoRodInfo::getLevel1Id
int getLevel1Id() const
Definition: L1CaloRdoRodInfo.cxx:117
L1CaloRdoRodInfo::getRodId
int getRodId() const
Definition: L1CaloRdoRodInfo.cxx:87
RunTileMonitoring.triggerType
triggerType
Definition: RunTileMonitoring.py:162
merge.status
status
Definition: merge.py:17
L1CaloRdoRodInfo::getMinorVersion
int getMinorVersion() const
Definition: L1CaloRdoRodInfo.cxx:56
L1CaloRdoRodInfo::getSystemId
int getSystemId() const
Definition: L1CaloRdoRodInfo.cxx:81