ATLAS Offline Software
RODHeader_v2.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_v2.h 694350 2015-09-11 12:02:19Z krasznaa $
8 #ifndef XAODTRIGL1CALO_VERSIONS_RODHEADER_V2_H
9 #define XAODTRIGL1CALO_VERSIONS_RODHEADER_V2_H
10 
11 #include "AthLinks/ElementLink.h"
13 
14 namespace xAOD {
15 
22 
23 class RODHeader_v2 : public SG::AuxElement {
24 public:
25  // Default constructor
26  RODHeader_v2();
28  virtual ~RODHeader_v2(){}
29 
32  uint32_t lvl1DetType, 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 lvl1DetType() const;
68  void setLvl1DetType(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_V2_H
xAOD::RODHeader_v2::triggerTypeTimeout
bool triggerTypeTimeout() const
Definition: RODHeader_v2.cxx:188
xAOD::RODHeader_v2::setPayloadSize
void setPayloadSize(unsigned int)
set payloadSize
xAOD::RODHeader_v2::trigType
unsigned int trigType() const
get trigType
xAOD::RODHeader_v2::setVersion
void setVersion(unsigned int)
set version
xAOD::RODHeader_v2::dataTransportError
bool dataTransportError() const
Definition: RODHeader_v2.cxx:157
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
xAOD::RODHeader_v2::ecrID
int ecrID() const
Definition: RODHeader_v2.cxx:105
xAOD::RODHeader_v2::setLvl1DetType
void setLvl1DetType(unsigned int)
set detType
xAOD::RODHeader_v2::runType
int runType() const
Definition: RODHeader_v2.cxx:90
xAOD::RODHeader_v2::stepNumber
int stepNumber() const
Definition: RODHeader_v2.cxx:135
xAOD::RODHeader_v2::gLinkTimeout
bool gLinkTimeout() const
Definition: RODHeader_v2.cxx:152
xAOD::RODHeader_v2::setLvl1Id
void setLvl1Id(unsigned int)
set lvl1Id
xAOD::RODHeader_v2::run
unsigned int run() const
get run
xAOD::RODHeader_v2::moduleID
int moduleID() const
Definition: RODHeader_v2.cxx:70
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::RODHeader_v2::limitedRoISet
bool limitedRoISet() const
Definition: RODHeader_v2.cxx:183
xAOD::RODHeader_v2::cmmParityError
bool cmmParityError() const
Definition: RODHeader_v2.cxx:172
xAOD::RODHeader_v2::version
unsigned int version() const
get version
xAOD::RODHeader_v2::subDetectorID
int subDetectorID() const
Definition: RODHeader_v2.cxx:65
xAOD::RODHeader_v2::orbitCount
int orbitCount() const
Definition: RODHeader_v2.cxx:130
xAOD::RODHeader_v2::statusWords
const std::vector< unsigned int > & statusWords() const
get statusWords
xAOD::RODHeader_v2::payloadSize
unsigned int payloadSize() const
get payloadSize
xAOD::RODHeader_v2::setStatusWords
void setStatusWords(const std::vector< unsigned int > &)
set statusWords
xAOD::RODHeader_v2::l1ID
int l1ID() const
Definition: RODHeader_v2.cxx:110
xAOD::RODHeader_v2::setTrigType
void setTrigType(unsigned int)
set trigType
xAOD::RODHeader_v2::lvl1Id
unsigned int lvl1Id() const
get lvl1Id
xAOD::RODHeader_v2::bcid
unsigned int bcid() const
get bcid
xAOD::RODHeader_v2::majorVersion
int majorVersion() const
Definition: RODHeader_v2.cxx:50
run
Definition: run.py:1
xAOD::RODHeader_v2
Description of RODHeader_v2.
Definition: RODHeader_v2.h:23
xAOD::RODHeader_v2::RODHeader_v2
RODHeader_v2()
Definition: RODHeader_v2.cxx:18
xAOD::RODHeader_v2::sourceId
unsigned int sourceId() const
get sourceId
xAOD::RODHeader_v2::runNumber
int runNumber() const
Definition: RODHeader_v2.cxx:95
xAOD::RODHeader_v2::setRun
void setRun(unsigned int)
set run
bcId
uint16_t bcId(uint32_t data)
Definition: TgcByteStreamData.h:326
xAOD::RODHeader_v2::extendedL1ID
int extendedL1ID() const
Definition: RODHeader_v2.cxx:100
xAOD::RODHeader_v2::~RODHeader_v2
virtual ~RODHeader_v2()
Default desturctor.
Definition: RODHeader_v2.h:28
xAOD::RODHeader_v2::detEventType
int detEventType() const
Definition: RODHeader_v2.cxx:125
xAOD::RODHeader_v2::initialize
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)
Definition: RODHeader_v2.cxx:33
xAOD::RODHeader_v2::setBcid
void setBcid(unsigned int)
set bcid
xAOD::RODHeader_v2::minorVersion
int minorVersion() const
Definition: RODHeader_v2.cxx:55
xAOD::RODHeader_v2::lvdsLinkError
bool lvdsLinkError() const
Definition: RODHeader_v2.cxx:167
xAOD::RODHeader_v2::rodFifoOverflow
bool rodFifoOverflow() const
Definition: RODHeader_v2.cxx:162
xAOD::RODHeader_v2::bunchCrossing
int bunchCrossing() const
Definition: RODHeader_v2.cxx:115
xAOD::RODHeader_v2::bcnMismatch
bool bcnMismatch() const
Definition: RODHeader_v2.cxx:147
xAOD::RODHeader_v2::l1TriggerType
int l1TriggerType() const
Definition: RODHeader_v2.cxx:120
xAOD::RODHeader_v2::crate
int crate() const
Definition: RODHeader_v2.cxx:75
xAOD::RODHeader_v2::sourceID
int sourceID() const
Definition: RODHeader_v2.cxx:60
xAOD::RODHeader_v2::sLink
int sLink() const
Definition: RODHeader_v2.cxx:80
xAOD::RODHeader_v2::stepType
int stepType() const
Definition: RODHeader_v2.cxx:140
xAOD::RODHeader_v2::setSourceId
void setSourceId(unsigned int)
set sourceId
AuxElement.h
Base class for elements of a container that can have aux data.
xAOD::RODHeader_v2::gLinkError
bool gLinkError() const
Definition: RODHeader_v2.cxx:177
xAOD::RODHeader_v2::dataType
int dataType() const
Definition: RODHeader_v2.cxx:85
xAOD::RODHeader_v2::lvl1DetType
unsigned int lvl1DetType() const
get detType