ATLAS Offline Software
RODHeader_v1.h
Go to the documentation of this file.
1 // Dear emacs, this is -*- c++ -*-
2 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // $Id: RODHeader_v1.h 685662 2015-07-27 10:30:15Z amazurov $
8 #ifndef XAODTRIGL1CALO_VERSIONS_RODHEADER_V1_H
9 #define XAODTRIGL1CALO_VERSIONS_RODHEADER_V1_H
10 
11 #include "AthLinks/ElementLink.h"
13 
14 namespace xAOD {
15 
22 
23 class RODHeader_v1 : public SG::AuxElement {
24 public:
25  // Default constructor
26  RODHeader_v1();
28  virtual ~RODHeader_v1(){}
29 
32  uint32_t detType, const std::vector<uint32_t>& statusWords,
33  uint32_t nData);
34 
36  unsigned int version() const;
38  void setVersion(unsigned int);
39 
41  unsigned int sourceId() const;
43  void setSourceId(unsigned int);
44 
46  unsigned int run() const;
48  void setRun(unsigned int);
49 
51  unsigned int lvl1Id() const;
53  void setLvl1Id(unsigned int);
54 
56  unsigned int bcid() const;
58  void setBcid(unsigned int);
59 
61  unsigned int trigType() const;
63  void setTrigType(unsigned int);
64 
66  unsigned int detType() const;
68  void setDetType(unsigned int);
69 
71  const std::vector<unsigned int>& statusWords() const;
73  void setStatusWords(const std::vector<unsigned int>&);
74 
76  unsigned int payloadSize() const;
78  void setPayloadSize(unsigned int);
79 
80  // Header data
81  int majorVersion() const;
82  int minorVersion() const;
83  int sourceID() const;
84  int subDetectorID() const;
85  int moduleID() const;
86  int crate() const;
87  int sLink() const;
88  int dataType() const;
89  int runType() const;
90  int runNumber() const;
91  int extendedL1ID() const;
92  int ecrID() const;
93  int l1ID() const;
94  int bunchCrossing() const;
95  int l1TriggerType() const;
96  int detEventType() const;
97  int orbitCount() const;
98  int stepNumber() const;
99  int stepType() const;
100 
101  // Status bits - word 1
102  bool bcnMismatch() const;
103  bool gLinkTimeout() const;
104  bool dataTransportError() const;
105  bool rodFifoOverflow() const;
106  bool lvdsLinkError() const;
107  bool cmmParityError() const;
108  bool gLinkError() const;
109  // Status bits - word 2
110  bool limitedRoISet() const;
111  bool triggerTypeTimeout() const;
112 
113 };
114 } // namespace xAOD
115 
116 #endif // XAODTRIGL1CALO_VERSIONS_RODHEADER_V1_H
xAOD::RODHeader_v1::gLinkError
bool gLinkError() const
Definition: RODHeader_v1.cxx:177
xAOD::RODHeader_v1::setLvl1Id
void setLvl1Id(unsigned int)
set lvl1Id
xAOD::RODHeader_v1::setRun
void setRun(unsigned int)
set run
xAOD::RODHeader_v1::detEventType
int detEventType() const
Definition: RODHeader_v1.cxx:125
xAOD::RODHeader_v1::orbitCount
int orbitCount() const
Definition: RODHeader_v1.cxx:130
xAOD::RODHeader_v1::l1ID
int l1ID() const
Definition: RODHeader_v1.cxx:110
xAOD::RODHeader_v1::setVersion
void setVersion(unsigned int)
set version
xAOD::RODHeader_v1::dataTransportError
bool dataTransportError() const
Definition: RODHeader_v1.cxx:157
xAOD::RODHeader_v1::setPayloadSize
void setPayloadSize(unsigned int)
set payloadSize
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
xAOD::RODHeader_v1::majorVersion
int majorVersion() const
Definition: RODHeader_v1.cxx:50
xAOD::RODHeader_v1::stepNumber
int stepNumber() const
Definition: RODHeader_v1.cxx:135
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::RODHeader_v1::cmmParityError
bool cmmParityError() const
Definition: RODHeader_v1.cxx:172
xAOD::RODHeader_v1::stepType
int stepType() const
Definition: RODHeader_v1.cxx:140
xAOD::RODHeader_v1::triggerTypeTimeout
bool triggerTypeTimeout() const
Definition: RODHeader_v1.cxx:188
xAOD::RODHeader_v1::limitedRoISet
bool limitedRoISet() const
Definition: RODHeader_v1.cxx:183
xAOD::RODHeader_v1::RODHeader_v1
RODHeader_v1()
Definition: RODHeader_v1.cxx:18
xAOD::RODHeader_v1::setTrigType
void setTrigType(unsigned int)
set trigType
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::RODHeader_v1::run
unsigned int run() const
get run
xAOD::RODHeader_v1::moduleID
int moduleID() const
Definition: RODHeader_v1.cxx:70
xAOD::RODHeader_v1::setBcid
void setBcid(unsigned int)
set bcid
xAOD::RODHeader_v1::gLinkTimeout
bool gLinkTimeout() const
Definition: RODHeader_v1.cxx:152
xAOD::RODHeader_v1::lvl1Id
unsigned int lvl1Id() const
get lvl1Id
xAOD::RODHeader_v1::subDetectorID
int subDetectorID() const
Definition: RODHeader_v1.cxx:65
xAOD::RODHeader_v1::setStatusWords
void setStatusWords(const std::vector< unsigned int > &)
set statusWords
xAOD::RODHeader_v1::ecrID
int ecrID() const
Definition: RODHeader_v1.cxx:105
xAOD::RODHeader_v1::runType
int runType() const
Definition: RODHeader_v1.cxx:90
xAOD::RODHeader_v1::payloadSize
unsigned int payloadSize() const
get payloadSize
xAOD::RODHeader_v1::version
unsigned int version() const
get version
xAOD::RODHeader_v1::sourceID
int sourceID() const
Definition: RODHeader_v1.cxx:60
run
Definition: run.py:1
xAOD::RODHeader_v1::bunchCrossing
int bunchCrossing() const
Definition: RODHeader_v1.cxx:115
xAOD::RODHeader_v1::crate
int crate() const
Definition: RODHeader_v1.cxx:75
xAOD::RODHeader_v1::sLink
int sLink() const
Definition: RODHeader_v1.cxx:80
xAOD::RODHeader_v1::extendedL1ID
int extendedL1ID() const
Definition: RODHeader_v1.cxx:100
xAOD::RODHeader_v1::detType
unsigned int detType() const
get detType
bcId
uint16_t bcId(uint32_t data)
Definition: TgcByteStreamData.h:326
xAOD::RODHeader_v1::bcnMismatch
bool bcnMismatch() const
Definition: RODHeader_v1.cxx:147
xAOD::RODHeader_v1::trigType
unsigned int trigType() const
get trigType
xAOD::RODHeader_v1::initialize
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)
Definition: RODHeader_v1.cxx:33
xAOD::RODHeader_v1::sourceId
unsigned int sourceId() const
get sourceId
xAOD::RODHeader_v1::runNumber
int runNumber() const
Definition: RODHeader_v1.cxx:95
xAOD::RODHeader_v1::l1TriggerType
int l1TriggerType() const
Definition: RODHeader_v1.cxx:120
xAOD::RODHeader_v1::statusWords
const std::vector< unsigned int > & statusWords() const
get statusWords
xAOD::RODHeader_v1::setSourceId
void setSourceId(unsigned int)
set sourceId
xAOD::RODHeader_v1::setDetType
void setDetType(unsigned int)
set detType
xAOD::RODHeader_v1
Description of RODHeader_v1.
Definition: RODHeader_v1.h:23
xAOD::RODHeader_v1::dataType
int dataType() const
Definition: RODHeader_v1.cxx:85
xAOD::RODHeader_v1::bcid
unsigned int bcid() const
get bcid
xAOD::RODHeader_v1::minorVersion
int minorVersion() const
Definition: RODHeader_v1.cxx:55
xAOD::RODHeader_v1::~RODHeader_v1
virtual ~RODHeader_v1()
Default desturctor.
Definition: RODHeader_v1.h:28
xAOD::RODHeader_v1::rodFifoOverflow
bool rodFifoOverflow() const
Definition: RODHeader_v1.cxx:162
xAOD::RODHeader_v1::lvdsLinkError
bool lvdsLinkError() const
Definition: RODHeader_v1.cxx:167
AuxElement.h
Base class for elements of a container that can have aux data.