ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
SCT3_RawData Class Referencefinal

#include <SCT3_RawData.h>

Inheritance diagram for SCT3_RawData:
Collaboration diagram for SCT3_RawData:

Public Member Functions

 SCT3_RawData (const Identifier rdoId, const unsigned int word, const std::vector< int > *errorHit)
 
 SCT3_RawData (const Identifier rdoId, const unsigned int word, std::vector< int > &&errorHit)
 
virtual ~SCT3_RawData ()=default
 
virtual int getGroupSize () const override final
 
int getTimeBin () const
 
int getErrors () const
 
bool OnTime () const
 
bool FirstHitError () const
 
bool SecondHitError () const
 
const std::vector< int > & getErrorCondensedHit () const
 
 SCT3_RawData ()
 
 SCT3_RawData (const SCT3_RawData &)=default
 
SCT3_RawDataoperator= (const SCT3_RawData &)=default
 
 SCT3_RawData (SCT3_RawData &&)=default
 
SCT3_RawDataoperator= (SCT3_RawData &&)=default
 
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

std::vector< int > m_errorCondensedHit
 
Identifier m_rdoId
 

Detailed Description

Definition at line 24 of file SCT3_RawData.h.

Constructor & Destructor Documentation

◆ SCT3_RawData() [1/5]

SCT3_RawData::SCT3_RawData ( const Identifier  rdoId,
const unsigned int  word,
const std::vector< int > *  errorHit 
)

Definition at line 24 of file SCT3_RawData.cxx.

24  :
25  SCT_RDORawData( rdoId, word), //call base-class constructor
26  m_errorCondensedHit (*errorhit)
27 {
28 }

◆ SCT3_RawData() [2/5]

SCT3_RawData::SCT3_RawData ( const Identifier  rdoId,
const unsigned int  word,
std::vector< int > &&  errorHit 
)

Definition at line 30 of file SCT3_RawData.cxx.

33  : SCT_RDORawData( rdoId, word),
34  m_errorCondensedHit (std::move(errorhit))
35 {
36 }

◆ ~SCT3_RawData()

virtual SCT3_RawData::~SCT3_RawData ( )
virtualdefault

◆ SCT3_RawData() [3/5]

SCT3_RawData::SCT3_RawData ( )

Definition at line 19 of file SCT3_RawData.cxx.

19  :
20  SCT_RDORawData(Identifier(), 0) //call base-class constructor
21 {}

◆ SCT3_RawData() [4/5]

SCT3_RawData::SCT3_RawData ( const SCT3_RawData )
default

◆ SCT3_RawData() [5/5]

SCT3_RawData::SCT3_RawData ( SCT3_RawData &&  )
default

Member Function Documentation

◆ FirstHitError()

bool SCT3_RawData::FirstHitError ( ) const
inline

Definition at line 114 of file SCT3_RawData.h.

115 {
116  bool isError = false;
117  if ((m_word >> 29) & 0x1) isError = true;
118  return isError;
119 }

◆ getErrorCondensedHit()

const std::vector< int > & SCT3_RawData::getErrorCondensedHit ( ) const
inline

Definition at line 132 of file SCT3_RawData.h.

133 {
134  return m_errorCondensedHit;
135 }

◆ getErrors()

int SCT3_RawData::getErrors ( ) const
inline

Definition at line 100 of file SCT3_RawData.h.

101 {
102  return ((m_word >> 25) & 0x7);
103 }

◆ getGroupSize()

int SCT3_RawData::getGroupSize ( ) const
inlinefinaloverridevirtual

Implements SCT_RDORawData.

Definition at line 86 of file SCT3_RawData.h.

87 {
88  return (m_word & 0x7FF);
89 }

◆ getHelper()

const IdHelper * Identifiable::getHelper ( ) const
virtualinherited

Definition at line 18 of file Identifiable.cxx.

18  {
19  return (nullptr);
20 }

◆ getTimeBin()

int SCT3_RawData::getTimeBin ( ) const
inline

Definition at line 92 of file SCT3_RawData.h.

93 {
94  return ((m_word >> 22) & 0x7);
95 }

◆ getWord()

unsigned int InDetRawData::getWord ( ) const
inlineinherited

Definition at line 47 of file InDetRawData.h.

48  {
49  return m_word;
50  }

◆ 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

◆ 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 SCT3_RawData::OnTime ( ) const
inline

Definition at line 106 of file SCT3_RawData.h.

107 {
108  bool isOnTime = false;
109  if ((m_word >> 23) & 0x1) isOnTime = true;
110  return isOnTime;
111 }

◆ operator=() [1/2]

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

◆ operator=() [2/2]

SCT3_RawData& SCT3_RawData::operator= ( SCT3_RawData &&  )
default

◆ SecondHitError()

bool SCT3_RawData::SecondHitError ( ) const
inline

Definition at line 122 of file SCT3_RawData.h.

123 {
124  bool isError = false;
125  if ((m_word >> 30) & 0x1) isError = true;
126  return isError;
127 }

Member Data Documentation

◆ m_errorCondensedHit

std::vector<int> SCT3_RawData::m_errorCondensedHit
private

Definition at line 78 of file SCT3_RawData.h.

◆ m_rdoId

Identifier InDetRawData::m_rdoId
privateinherited

Definition at line 69 of file InDetRawData.h.

◆ m_word

unsigned int InDetRawData::m_word = 0
protectedinherited

Definition at line 72 of file InDetRawData.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()
InDetRawData::m_word
unsigned int m_word
Definition: InDetRawData.h:72
InDetRawData::m_rdoId
Identifier m_rdoId
Definition: InDetRawData.h:69
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
SCT3_RawData::m_errorCondensedHit
std::vector< int > m_errorCondensedHit
Definition: SCT3_RawData.h:78
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