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

Description of RODHeader_v1. More...

#include <RODHeader_v1.h>

Inheritance diagram for xAOD::RODHeader_v1:
Collaboration diagram for xAOD::RODHeader_v1:

Public Member Functions

 RODHeader_v1 ()
virtual ~RODHeader_v1 ()
 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 detType, 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 detType () const
 get detType
void setDetType (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_v1.

Author
John Morris john..nosp@m.morr.nosp@m.is@ce.nosp@m.rn.c.nosp@m.h
Revision
685662
Date
2015-07-27 12:30:15 +0200 (Mon, 27 Jul 2015)

Definition at line 23 of file RODHeader_v1.h.

Constructor & Destructor Documentation

◆ RODHeader_v1()

xAOD::RODHeader_v1::RODHeader_v1 ( )

Definition at line 18 of file RODHeader_v1.cxx.

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

◆ ~RODHeader_v1()

virtual xAOD::RODHeader_v1::~RODHeader_v1 ( )
inlinevirtual

Default desturctor.

Definition at line 28 of file RODHeader_v1.h.

28{}

Member Function Documentation

◆ bcid()

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

get bcid

◆ bcnMismatch()

bool xAOD::RODHeader_v1::bcnMismatch ( ) const

Definition at line 147 of file RODHeader_v1.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_v1::bunchCrossing ( ) const

Definition at line 115 of file RODHeader_v1.cxx.

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

◆ cmmParityError()

bool xAOD::RODHeader_v1::cmmParityError ( ) const

Definition at line 172 of file RODHeader_v1.cxx.

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

◆ crate()

int xAOD::RODHeader_v1::crate ( ) const

Definition at line 75 of file RODHeader_v1.cxx.

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

◆ dataTransportError()

bool xAOD::RODHeader_v1::dataTransportError ( ) const

Definition at line 157 of file RODHeader_v1.cxx.

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

◆ dataType()

int xAOD::RODHeader_v1::dataType ( ) const

Definition at line 85 of file RODHeader_v1.cxx.

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

◆ detEventType()

int xAOD::RODHeader_v1::detEventType ( ) const

Definition at line 125 of file RODHeader_v1.cxx.

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

◆ detType()

unsigned int xAOD::RODHeader_v1::detType ( ) const

get detType

◆ ecrID()

int xAOD::RODHeader_v1::ecrID ( ) const

Definition at line 105 of file RODHeader_v1.cxx.

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

◆ extendedL1ID()

int xAOD::RODHeader_v1::extendedL1ID ( ) const

Definition at line 100 of file RODHeader_v1.cxx.

101 {
102 return lvl1Id();
103 }

◆ gLinkError()

bool xAOD::RODHeader_v1::gLinkError ( ) const

Definition at line 177 of file RODHeader_v1.cxx.

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

◆ gLinkTimeout()

bool xAOD::RODHeader_v1::gLinkTimeout ( ) const

Definition at line 152 of file RODHeader_v1.cxx.

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

◆ initialize()

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

Definition at line 33 of file RODHeader_v1.cxx.

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

◆ l1ID()

int xAOD::RODHeader_v1::l1ID ( ) const

Definition at line 110 of file RODHeader_v1.cxx.

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

◆ l1TriggerType()

int xAOD::RODHeader_v1::l1TriggerType ( ) const

Definition at line 120 of file RODHeader_v1.cxx.

121 {
122 return trigType();
123 }

◆ limitedRoISet()

bool xAOD::RODHeader_v1::limitedRoISet ( ) const

Definition at line 183 of file RODHeader_v1.cxx.

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

◆ lvdsLinkError()

bool xAOD::RODHeader_v1::lvdsLinkError ( ) const

Definition at line 167 of file RODHeader_v1.cxx.

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

◆ lvl1Id()

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

get lvl1Id

◆ majorVersion()

int xAOD::RODHeader_v1::majorVersion ( ) const

Definition at line 50 of file RODHeader_v1.cxx.

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

◆ minorVersion()

int xAOD::RODHeader_v1::minorVersion ( ) const

Definition at line 55 of file RODHeader_v1.cxx.

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

◆ moduleID()

int xAOD::RODHeader_v1::moduleID ( ) const

Definition at line 70 of file RODHeader_v1.cxx.

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

◆ orbitCount()

int xAOD::RODHeader_v1::orbitCount ( ) const

Definition at line 130 of file RODHeader_v1.cxx.

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

◆ payloadSize()

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

get payloadSize

◆ rodFifoOverflow()

bool xAOD::RODHeader_v1::rodFifoOverflow ( ) const

Definition at line 162 of file RODHeader_v1.cxx.

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

◆ run()

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

get run

◆ runNumber()

int xAOD::RODHeader_v1::runNumber ( ) const

Definition at line 95 of file RODHeader_v1.cxx.

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

◆ runType()

int xAOD::RODHeader_v1::runType ( ) const

Definition at line 90 of file RODHeader_v1.cxx.

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

◆ setBcid()

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

set bcid

◆ setDetType()

void xAOD::RODHeader_v1::setDetType ( unsigned int )

set detType

◆ setLvl1Id()

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

set lvl1Id

◆ setPayloadSize()

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

set payloadSize

◆ setRun()

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

set run

◆ setSourceId()

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

set sourceId

◆ setStatusWords()

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

set statusWords

◆ setTrigType()

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

set trigType

◆ setVersion()

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

set version

◆ sLink()

int xAOD::RODHeader_v1::sLink ( ) const

Definition at line 80 of file RODHeader_v1.cxx.

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

◆ sourceID()

int xAOD::RODHeader_v1::sourceID ( ) const

Definition at line 60 of file RODHeader_v1.cxx.

61 {
62 return sourceId();
63 }

◆ sourceId()

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

get sourceId

◆ statusWords()

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

get statusWords

◆ stepNumber()

int xAOD::RODHeader_v1::stepNumber ( ) const

Definition at line 135 of file RODHeader_v1.cxx.

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

◆ stepType()

int xAOD::RODHeader_v1::stepType ( ) const

Definition at line 140 of file RODHeader_v1.cxx.

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

◆ subDetectorID()

int xAOD::RODHeader_v1::subDetectorID ( ) const

Definition at line 65 of file RODHeader_v1.cxx.

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

◆ triggerTypeTimeout()

bool xAOD::RODHeader_v1::triggerTypeTimeout ( ) const

Definition at line 188 of file RODHeader_v1.cxx.

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

◆ trigType()

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

get trigType

◆ version()

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

get version


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