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

#include <SCT_TB04_RawData.h>

Inheritance diagram for SCT_TB04_RawData:
Collaboration diagram for SCT_TB04_RawData:

Public Member Functions

 SCT_TB04_RawData (const Identifier rdoId, const unsigned int word, const unsigned int Event, const unsigned int FragmentIdentifier, const unsigned int Size, const unsigned int WordErrorCount, const unsigned int EventCount, const unsigned int onlineId)
 
 SCT_TB04_RawData (const Identifier rdoId, const unsigned int word, const unsigned int onlineId, float errorhit[20])
 
virtual ~SCT_TB04_RawData ()=default
 
virtual int getGroupSize () const
 
unsigned int getEvent () const
 
unsigned int getFragmentType () const
 
unsigned int getSize () const
 
unsigned int getWordErrorCount () const
 
unsigned int getEventCount () const
 
int getTimeBin () const
 
int getErrors () const
 
int getStream () const
 
int getROB () const
 
bool OnTime () const
 
bool SyncronizationError () const
 
bool PreambleError () const
 
bool LVL1Error () const
 
bool BCIDError () const
 
bool FormatterError () const
 
bool FirstHitError () const
 
bool SecondHitError () const
 
float * getErrorCondensedHit ()
 
 SCT_TB04_RawData ()
 
virtual Identifier identify () const override final
 
unsigned int getWord () const
 
void merge (const InDetRawData &other)
 
virtual IdentifierHash identifyHash () const
 
virtual const IdHelpergetHelper () const
 

Protected Attributes

unsigned int m_word = 0
 

Private Attributes

unsigned int m_event
 
unsigned int m_fragment_type
 
unsigned int m_size
 
unsigned int m_word_error_count
 
unsigned int m_event_count
 
unsigned int m_onlineId
 
float m_errorCondensedHit [20] {}
 
Identifier m_rdoId
 

Detailed Description

Definition at line 27 of file SCT_TB04_RawData.h.

Constructor & Destructor Documentation

◆ SCT_TB04_RawData() [1/3]

SCT_TB04_RawData::SCT_TB04_RawData ( const Identifier  rdoId,
const unsigned int  word,
const unsigned int  Event,
const unsigned int  FragmentIdentifier,
const unsigned int  Size,
const unsigned int  WordErrorCount,
const unsigned int  EventCount,
const unsigned int  onlineId 
)

Definition at line 35 of file SCT_TB04_RawData.cxx.

38  :
39  SCT_RDORawData( rdoId, word) //call base-class constructor
40 {
41  m_event = Event;
42  m_fragment_type = FragmentIdentifier;
43  m_size = Size;
44  m_word_error_count = WordErrorCount;
45  m_event_count = EventCount;
46  m_onlineId = onlineId;
47  for(unsigned int i(0);i!=20;++i){
49  }
50 }

◆ SCT_TB04_RawData() [2/3]

SCT_TB04_RawData::SCT_TB04_RawData ( const Identifier  rdoId,
const unsigned int  word,
const unsigned int  onlineId,
float  errorhit[20] 
)

Definition at line 53 of file SCT_TB04_RawData.cxx.

53  :
54  SCT_RDORawData( rdoId, word) //call base-class constructor
55 {
56  m_event = 0;
57  m_fragment_type = 0;
58  m_size = 0;
60  m_event_count = 0;
61  m_onlineId = onlineId;
62  for (int i=0;i<20;i++){
63  m_errorCondensedHit[i] = errorhit[i];
64  }
65 }

◆ ~SCT_TB04_RawData()

virtual SCT_TB04_RawData::~SCT_TB04_RawData ( )
virtualdefault

◆ SCT_TB04_RawData() [3/3]

SCT_TB04_RawData::SCT_TB04_RawData ( )

Definition at line 19 of file SCT_TB04_RawData.cxx.

19  :
20  SCT_RDORawData(Identifier(), 0) //call base-class constructor
21 {
22  m_event = 0;
23  m_fragment_type = 0;
24  m_size = 0;
26  m_event_count = 0;
27  m_onlineId = 0;
28  for(unsigned int i(0);i!=20;++i){
30  }
31 }

Member Function Documentation

◆ BCIDError()

bool SCT_TB04_RawData::BCIDError ( ) const
inline

Definition at line 203 of file SCT_TB04_RawData.h.

204 {
205  bool isError = false;
206  if ((m_word >> 27) & 0x1) isError = true;
207  return isError;
208 }

◆ FirstHitError()

bool SCT_TB04_RawData::FirstHitError ( ) const
inline

Definition at line 218 of file SCT_TB04_RawData.h.

219 {
220  bool isError = false;
221  if ((m_word >> 29) & 0x1) isError = true;
222  return isError;
223 }

◆ FormatterError()

bool SCT_TB04_RawData::FormatterError ( ) const
inline

Definition at line 210 of file SCT_TB04_RawData.h.

211 {
212  bool isError = false;
213  if ((m_word >> 28) & 0x1) isError = true;
214  return isError;
215 }

◆ getErrorCondensedHit()

float * SCT_TB04_RawData::getErrorCondensedHit ( )
inline

Definition at line 232 of file SCT_TB04_RawData.h.

233 {
234  return m_errorCondensedHit;
235 }

◆ getErrors()

int SCT_TB04_RawData::getErrors ( ) const
inline

Definition at line 156 of file SCT_TB04_RawData.h.

157 {
158  return ((m_word >> 25) & 0x7);
159 }

◆ getEvent()

unsigned int SCT_TB04_RawData::getEvent ( ) const
inline

Definition at line 124 of file SCT_TB04_RawData.h.

125 {
126  return m_event;
127 }

◆ getEventCount()

unsigned int SCT_TB04_RawData::getEventCount ( ) const
inline

Definition at line 144 of file SCT_TB04_RawData.h.

145 {
146  return m_event_count;
147 }

◆ getFragmentType()

unsigned int SCT_TB04_RawData::getFragmentType ( ) const
inline

Definition at line 129 of file SCT_TB04_RawData.h.

130 {
131  return m_fragment_type;
132 }

◆ getGroupSize()

int SCT_TB04_RawData::getGroupSize ( ) const
inlinevirtual

Implements SCT_RDORawData.

Definition at line 119 of file SCT_TB04_RawData.h.

120 {
121  return (m_word & 0x7FF);
122 }

◆ getHelper()

const IdHelper * Identifiable::getHelper ( ) const
virtualinherited

Definition at line 18 of file Identifiable.cxx.

18  {
19  return (nullptr);
20 }

◆ getROB()

int SCT_TB04_RawData::getROB ( ) const
inline

Definition at line 170 of file SCT_TB04_RawData.h.

171 {
172  return (m_onlineId &0xFFFF);
173 }

◆ getSize()

unsigned int SCT_TB04_RawData::getSize ( ) const
inline

Definition at line 134 of file SCT_TB04_RawData.h.

135 {
136  return m_size;
137 }

◆ getStream()

int SCT_TB04_RawData::getStream ( ) const
inline

Definition at line 161 of file SCT_TB04_RawData.h.

162 {
163  // return ((m_onlineId >>16)&0xFFFF);
164  //Kondo 14/02/07: New calculation of the online Id in the cabling packages
165  // return ((m_onlineId >>8)&0xFFFF);
166  //Kondo 28/05/07: New calculation of the online Id in the cabling packages
167  return ((m_onlineId >>24)&0xFFFF);
168 }

◆ getTimeBin()

int SCT_TB04_RawData::getTimeBin ( ) const
inline

Definition at line 150 of file SCT_TB04_RawData.h.

151 {
152  return ((m_word >> 22) & 0x7);
153 }

◆ getWord()

unsigned int InDetRawData::getWord ( ) const
inlineinherited

Definition at line 47 of file InDetRawData.h.

48  {
49  return m_word;
50  }

◆ getWordErrorCount()

unsigned int SCT_TB04_RawData::getWordErrorCount ( ) const
inline

Definition at line 139 of file SCT_TB04_RawData.h.

140 {
141  return m_word_error_count;
142 }

◆ identify()

virtual Identifier InDetRawData::identify ( ) const
inlinefinaloverridevirtualinherited

Implements Identifiable.

Definition at line 41 of file InDetRawData.h.

42  {
43  return m_rdoId;
44  }

◆ identifyHash()

IdentifierHash Identifiable::identifyHash ( ) const
virtualinherited

◆ LVL1Error()

bool SCT_TB04_RawData::LVL1Error ( ) const
inline

Definition at line 196 of file SCT_TB04_RawData.h.

197 {
198  bool isError = false;
199  if ((m_word >> 26) & 0x1) isError = true;
200  return isError;
201 }

◆ merge()

void InDetRawData::merge ( const InDetRawData other)
inlineinherited

Definition at line 60 of file InDetRawData.h.

61  {
62  m_word |= other.m_word;
63  }

◆ OnTime()

bool SCT_TB04_RawData::OnTime ( ) const
inline

Definition at line 175 of file SCT_TB04_RawData.h.

176 {
177  bool isOnTime = false;
178  if ((m_word >> 23) & 0x1) isOnTime = true;
179  return isOnTime;
180 }

◆ PreambleError()

bool SCT_TB04_RawData::PreambleError ( ) const
inline

Definition at line 189 of file SCT_TB04_RawData.h.

190 {
191  bool isError = false;
192  if ((m_word >> 25) & 0x1) isError = true;
193  return isError;
194 }

◆ SecondHitError()

bool SCT_TB04_RawData::SecondHitError ( ) const
inline

Definition at line 225 of file SCT_TB04_RawData.h.

226 {
227  bool isError = false;
228  if ((m_word >> 30) & 0x1) isError = true;
229  return isError;
230 }

◆ SyncronizationError()

bool SCT_TB04_RawData::SyncronizationError ( ) const
inline

Definition at line 182 of file SCT_TB04_RawData.h.

183 {
184  bool isError = false;
185  if (((m_word >> 26) & 0x1) || (((m_word >> 27) & 0x1))) isError = true;
186  return isError;
187 }

Member Data Documentation

◆ m_errorCondensedHit

float SCT_TB04_RawData::m_errorCondensedHit[20] {}
private

Definition at line 111 of file SCT_TB04_RawData.h.

◆ m_event

unsigned int SCT_TB04_RawData::m_event
private

Definition at line 105 of file SCT_TB04_RawData.h.

◆ m_event_count

unsigned int SCT_TB04_RawData::m_event_count
private

Definition at line 109 of file SCT_TB04_RawData.h.

◆ m_fragment_type

unsigned int SCT_TB04_RawData::m_fragment_type
private

Definition at line 106 of file SCT_TB04_RawData.h.

◆ m_onlineId

unsigned int SCT_TB04_RawData::m_onlineId
private

Definition at line 110 of file SCT_TB04_RawData.h.

◆ m_rdoId

Identifier InDetRawData::m_rdoId
privateinherited

Definition at line 69 of file InDetRawData.h.

◆ m_size

unsigned int SCT_TB04_RawData::m_size
private

Definition at line 107 of file SCT_TB04_RawData.h.

◆ m_word

unsigned int InDetRawData::m_word = 0
protectedinherited

Definition at line 72 of file InDetRawData.h.

◆ m_word_error_count

unsigned int SCT_TB04_RawData::m_word_error_count
private

Definition at line 108 of file SCT_TB04_RawData.h.


The documentation for this class was generated from the following files:
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
get_generator_info.result
result
Definition: get_generator_info.py:21
SCT_RDORawData::SCT_RDORawData
SCT_RDORawData()
SCT_TB04_RawData::m_errorCondensedHit
float m_errorCondensedHit[20]
Definition: SCT_TB04_RawData.h:111
TrigConf::JetWindowSize::Size
Size
Definition: TriggerThresholdValue.h:17
SCT_TB04_RawData::m_fragment_type
unsigned int m_fragment_type
Definition: SCT_TB04_RawData.h:106
JiveXML::Event
struct Event_t Event
Definition: ONCRPCServer.h:65
SCT_TB04_RawData::m_size
unsigned int m_size
Definition: SCT_TB04_RawData.h:107
SCT_TB04_RawData::m_event_count
unsigned int m_event_count
Definition: SCT_TB04_RawData.h:109
lumiFormat.i
int i
Definition: lumiFormat.py:85
InDetRawData::m_word
unsigned int m_word
Definition: InDetRawData.h:72
InDetRawData::m_rdoId
Identifier m_rdoId
Definition: InDetRawData.h:69
SCT_TB04_RawData::m_word_error_count
unsigned int m_word_error_count
Definition: SCT_TB04_RawData.h:108
SCT_TB04_RawData::m_onlineId
unsigned int m_onlineId
Definition: SCT_TB04_RawData.h:110
SCT_TB04_RawData::m_event
unsigned int m_event
Definition: SCT_TB04_RawData.h:105
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
Identifier
Definition: IdentifierFieldParser.cxx:14