ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::RODHeader_v2 Class Reference

Description of RODHeader_v2. More...

#include <RODHeader_v2.h>

Inheritance diagram for xAOD::RODHeader_v2:
Collaboration diagram for xAOD::RODHeader_v2:

Public Member Functions

 RODHeader_v2 ()
virtual ~RODHeader_v2 ()
 Default desturctor.
virtual void initialize (uint32_t version, uint32_t sourceId, uint32_t run, uint32_t lvl1Id, uint32_t bcId, uint32_t trigType, uint32_t lvl1DetType, const std::vector< uint32_t > &statusWords, uint32_t nData)
unsigned int version () const
 get version
void setVersion (unsigned int)
 set version
unsigned int sourceId () const
 get sourceId
void setSourceId (unsigned int)
 set sourceId
unsigned int run () const
 get run
void setRun (unsigned int)
 set run
unsigned int lvl1Id () const
 get lvl1Id
void setLvl1Id (unsigned int)
 set lvl1Id
unsigned int bcid () const
 get bcid
void setBcid (unsigned int)
 set bcid
unsigned int trigType () const
 get trigType
void setTrigType (unsigned int)
 set trigType
unsigned int lvl1DetType () const
 get detType
void setLvl1DetType (unsigned int)
 set detType
const std::vector< unsigned int > & statusWords () const
 get statusWords
void setStatusWords (const std::vector< unsigned int > &)
 set statusWords
unsigned int payloadSize () const
 get payloadSize
void setPayloadSize (unsigned int)
 set payloadSize
int majorVersion () const
int minorVersion () const
int sourceID () const
int subDetectorID () const
int moduleID () const
int crate () const
int sLink () const
int dataType () const
int runType () const
int runNumber () const
int extendedL1ID () const
int ecrID () const
int l1ID () const
int bunchCrossing () const
int l1TriggerType () const
int detEventType () const
int orbitCount () const
int stepNumber () const
int stepType () const
bool bcnMismatch () const
bool gLinkTimeout () const
bool dataTransportError () const
bool rodFifoOverflow () const
bool lvdsLinkError () const
bool cmmParityError () const
bool gLinkError () const
bool limitedRoISet () const
bool triggerTypeTimeout () const

Detailed Description

Description of RODHeader_v2.

Author
alexa.nosp@m.nder.nosp@m..mazu.nosp@m.rov@.nosp@m.cern..nosp@m.ch
Revision
694350
Date
2015-09-11 14:02:19 +0200 (Fri, 11 Sep 2015)

Definition at line 23 of file RODHeader_v2.h.

Constructor & Destructor Documentation

◆ RODHeader_v2()

xAOD::RODHeader_v2::RODHeader_v2 ( )

Definition at line 18 of file RODHeader_v2.cxx.

18 :
20 {
21 }
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.

◆ ~RODHeader_v2()

virtual xAOD::RODHeader_v2::~RODHeader_v2 ( )
inlinevirtual

Default desturctor.

Definition at line 28 of file RODHeader_v2.h.

28{}

Member Function Documentation

◆ bcid()

unsigned int xAOD::RODHeader_v2::bcid ( ) const

get bcid

◆ bcnMismatch()

bool xAOD::RODHeader_v2::bcnMismatch ( ) const

Definition at line 147 of file RODHeader_v2.cxx.

148 {
149 return (statusWords().empty()) ? false : statusWords()[ 0 ] & 0x1;
150 }
static const Attributes_t empty
const std::vector< unsigned int > & statusWords() const
get statusWords

◆ bunchCrossing()

int xAOD::RODHeader_v2::bunchCrossing ( ) const

Definition at line 115 of file RODHeader_v2.cxx.

116 {
117 return bcid();
118 }
unsigned int bcid() const
get bcid

◆ cmmParityError()

bool xAOD::RODHeader_v2::cmmParityError ( ) const

Definition at line 172 of file RODHeader_v2.cxx.

173 {
174 return (statusWords().empty()) ? false : statusWords()[ 0 ] & 0x20000;
175 }

◆ crate()

int xAOD::RODHeader_v2::crate ( ) const

Definition at line 75 of file RODHeader_v2.cxx.

76 {
77 return sourceId() & 0xf;
78 }
unsigned int sourceId() const
get sourceId

◆ dataTransportError()

bool xAOD::RODHeader_v2::dataTransportError ( ) const

Definition at line 157 of file RODHeader_v2.cxx.

158 {
159 return (statusWords().empty()) ? false : statusWords()[ 0 ] & 0x8;
160 }

◆ dataType()

int xAOD::RODHeader_v2::dataType ( ) const

Definition at line 85 of file RODHeader_v2.cxx.

86 {
87 return (sourceId() >> 7) & 0x1;
88 }

◆ detEventType()

int xAOD::RODHeader_v2::detEventType ( ) const

Definition at line 125 of file RODHeader_v2.cxx.

126 {
127 return lvl1DetType();
128 }
unsigned int lvl1DetType() const
get detType

◆ ecrID()

int xAOD::RODHeader_v2::ecrID ( ) const

Definition at line 105 of file RODHeader_v2.cxx.

106 {
107 return (lvl1Id() >> 24) & 0xff;
108 }
unsigned int lvl1Id() const
get lvl1Id

◆ extendedL1ID()

int xAOD::RODHeader_v2::extendedL1ID ( ) const

Definition at line 100 of file RODHeader_v2.cxx.

101 {
102 return lvl1Id();
103 }

◆ gLinkError()

bool xAOD::RODHeader_v2::gLinkError ( ) const

Definition at line 177 of file RODHeader_v2.cxx.

178 {
179 return (statusWords().empty()) ? false : statusWords()[ 0 ] & 0x40000;
180 }

◆ gLinkTimeout()

bool xAOD::RODHeader_v2::gLinkTimeout ( ) const

Definition at line 152 of file RODHeader_v2.cxx.

153 {
154 return (statusWords().empty()) ? false : statusWords()[ 0 ] & 0x4;
155 }

◆ initialize()

void xAOD::RODHeader_v2::initialize ( uint32_t version,
uint32_t sourceId,
uint32_t run,
uint32_t lvl1Id,
uint32_t bcId,
uint32_t trigType,
uint32_t lvl1DetType,
const std::vector< uint32_t > & statusWords,
uint32_t nData )
virtual

Definition at line 33 of file RODHeader_v2.cxx.

36 {
39 setRun(run);
45 setPayloadSize(nData);
46 }
uint16_t bcId(uint32_t data)
void setBcid(unsigned int)
set bcid
void setPayloadSize(unsigned int)
set payloadSize
void setVersion(unsigned int)
set version
unsigned int version() const
get version
void setTrigType(unsigned int)
set trigType
void setLvl1DetType(unsigned int)
set detType
void setLvl1Id(unsigned int)
set lvl1Id
void setStatusWords(const std::vector< unsigned int > &)
set statusWords
unsigned int trigType() const
get trigType
void setRun(unsigned int)
set run
unsigned int run() const
get run
void setSourceId(unsigned int)
set sourceId

◆ l1ID()

int xAOD::RODHeader_v2::l1ID ( ) const

Definition at line 110 of file RODHeader_v2.cxx.

111 {
112 return lvl1Id() & 0xffffff;
113 }

◆ l1TriggerType()

int xAOD::RODHeader_v2::l1TriggerType ( ) const

Definition at line 120 of file RODHeader_v2.cxx.

121 {
122 return trigType();
123 }

◆ limitedRoISet()

bool xAOD::RODHeader_v2::limitedRoISet ( ) const

Definition at line 183 of file RODHeader_v2.cxx.

184 {
185 return (statusWords().size() < 2) ? false : statusWords()[ 1 ] & 0x2;
186 }
size_t size() const
Number of registered mappings.

◆ lvdsLinkError()

bool xAOD::RODHeader_v2::lvdsLinkError ( ) const

Definition at line 167 of file RODHeader_v2.cxx.

168 {
169 return (statusWords().empty()) ? false : statusWords()[ 0 ] & 0x10000;
170 }

◆ lvl1DetType()

unsigned int xAOD::RODHeader_v2::lvl1DetType ( ) const

get detType

◆ lvl1Id()

unsigned int xAOD::RODHeader_v2::lvl1Id ( ) const

get lvl1Id

◆ majorVersion()

int xAOD::RODHeader_v2::majorVersion ( ) const

Definition at line 50 of file RODHeader_v2.cxx.

51 {
52 return (version() >> 16) & 0xffff;
53 }

◆ minorVersion()

int xAOD::RODHeader_v2::minorVersion ( ) const

Definition at line 55 of file RODHeader_v2.cxx.

56 {
57 return version() & 0xffff;
58 }

◆ moduleID()

int xAOD::RODHeader_v2::moduleID ( ) const

Definition at line 70 of file RODHeader_v2.cxx.

71 {
72 return sourceId() & 0xffff;
73 }

◆ orbitCount()

int xAOD::RODHeader_v2::orbitCount ( ) const

Definition at line 130 of file RODHeader_v2.cxx.

131 {
132 return (lvl1DetType() >> 16) & 0xffff;
133 }

◆ payloadSize()

unsigned int xAOD::RODHeader_v2::payloadSize ( ) const

get payloadSize

◆ rodFifoOverflow()

bool xAOD::RODHeader_v2::rodFifoOverflow ( ) const

Definition at line 162 of file RODHeader_v2.cxx.

163 {
164 return (statusWords().empty()) ? false : statusWords()[ 0 ] & 0x10;
165 }

◆ run()

unsigned int xAOD::RODHeader_v2::run ( ) const

get run

◆ runNumber()

int xAOD::RODHeader_v2::runNumber ( ) const

Definition at line 95 of file RODHeader_v2.cxx.

96 {
97 return run() & 0xffffff;
98 }

◆ runType()

int xAOD::RODHeader_v2::runType ( ) const

Definition at line 90 of file RODHeader_v2.cxx.

91 {
92 return (run() >> 24) & 0xff;
93 }

◆ setBcid()

void xAOD::RODHeader_v2::setBcid ( unsigned int )

set bcid

◆ setLvl1DetType()

void xAOD::RODHeader_v2::setLvl1DetType ( unsigned int )

set detType

◆ setLvl1Id()

void xAOD::RODHeader_v2::setLvl1Id ( unsigned int )

set lvl1Id

◆ setPayloadSize()

void xAOD::RODHeader_v2::setPayloadSize ( unsigned int )

set payloadSize

◆ setRun()

void xAOD::RODHeader_v2::setRun ( unsigned int )

set run

◆ setSourceId()

void xAOD::RODHeader_v2::setSourceId ( unsigned int )

set sourceId

◆ setStatusWords()

void xAOD::RODHeader_v2::setStatusWords ( const std::vector< unsigned int > & )

set statusWords

◆ setTrigType()

void xAOD::RODHeader_v2::setTrigType ( unsigned int )

set trigType

◆ setVersion()

void xAOD::RODHeader_v2::setVersion ( unsigned int )

set version

◆ sLink()

int xAOD::RODHeader_v2::sLink ( ) const

Definition at line 80 of file RODHeader_v2.cxx.

81 {
82 return (sourceId() >> 4) & 0x3;
83 }

◆ sourceID()

int xAOD::RODHeader_v2::sourceID ( ) const

Definition at line 60 of file RODHeader_v2.cxx.

61 {
62 return sourceId();
63 }

◆ sourceId()

unsigned int xAOD::RODHeader_v2::sourceId ( ) const

get sourceId

◆ statusWords()

const std::vector< unsigned int > & xAOD::RODHeader_v2::statusWords ( ) const

get statusWords

◆ stepNumber()

int xAOD::RODHeader_v2::stepNumber ( ) const

Definition at line 135 of file RODHeader_v2.cxx.

136 {
137 return (lvl1DetType() >> 4) & 0xfff;
138 }

◆ stepType()

int xAOD::RODHeader_v2::stepType ( ) const

Definition at line 140 of file RODHeader_v2.cxx.

141 {
142 return lvl1DetType() & 0xf;
143 }

◆ subDetectorID()

int xAOD::RODHeader_v2::subDetectorID ( ) const

Definition at line 65 of file RODHeader_v2.cxx.

66 {
67 return (sourceId() >> 16) & 0xff;
68 }

◆ triggerTypeTimeout()

bool xAOD::RODHeader_v2::triggerTypeTimeout ( ) const

Definition at line 188 of file RODHeader_v2.cxx.

189 {
190 return (statusWords().size() < 2) ? false : statusWords()[ 1 ] & 0x10000;
191 }

◆ trigType()

unsigned int xAOD::RODHeader_v2::trigType ( ) const

get trigType

◆ version()

unsigned int xAOD::RODHeader_v2::version ( ) const

get version


The documentation for this class was generated from the following files: