00001
00002
00003 #ifndef XAODTRIGL1CALO_VERSIONS_RODHEADER_V1_H
00004 #define XAODTRIGL1CALO_VERSIONS_RODHEADER_V1_H
00005
00006 #include "AthLinks/ElementLink.h"
00007 #include "AthContainers/AuxElement.h"
00008
00009 namespace xAOD {
00010
00017
00018 class RODHeader_v1 : public SG::AuxElement {
00019 public:
00020
00021 RODHeader_v1();
00023 virtual ~RODHeader_v1(){}
00024
00025 virtual void initialize(uint32_t version, uint32_t sourceId, uint32_t run,
00026 uint32_t lvl1Id, uint32_t bcId, uint32_t trigType,
00027 uint32_t detType, const std::vector<uint32_t>& statusWords,
00028 uint32_t nData);
00029
00031 unsigned int version() const;
00033 void setVersion(unsigned int);
00034
00036 unsigned int sourceId() const;
00038 void setSourceId(unsigned int);
00039
00041 unsigned int run() const;
00043 void setRun(unsigned int);
00044
00046 unsigned int lvl1Id() const;
00048 void setLvl1Id(unsigned int);
00049
00051 unsigned int bcid() const;
00053 void setBcid(unsigned int);
00054
00056 unsigned int trigType() const;
00058 void setTrigType(unsigned int);
00059
00061 unsigned int detType() const;
00063 void setDetType(unsigned int);
00064
00066 const std::vector<unsigned int>& statusWords() const;
00068 void setStatusWords(const std::vector<unsigned int>&);
00069
00071 unsigned int payloadSize() const;
00073 void setPayloadSize(unsigned int);
00074
00075
00076 int majorVersion() const;
00077 int minorVersion() const;
00078 int sourceID() const;
00079 int subDetectorID() const;
00080 int moduleID() const;
00081 int crate() const;
00082 int sLink() const;
00083 int dataType() const;
00084 int runType() const;
00085 int runNumber() const;
00086 int extendedL1ID() const;
00087 int ecrID() const;
00088 int l1ID() const;
00089 int bunchCrossing() const;
00090 int l1TriggerType() const;
00091 int detEventType() const;
00092 int orbitCount() const;
00093 int stepNumber() const;
00094 int stepType() const;
00095
00096
00097 bool bcnMismatch() const;
00098 bool gLinkTimeout() const;
00099 bool dataTransportError() const;
00100 bool rodFifoOverflow() const;
00101 bool lvdsLinkError() const;
00102 bool cmmParityError() const;
00103 bool gLinkError() const;
00104
00105 bool limitedRoISet() const;
00106 bool triggerTypeTimeout() const;
00107
00108 };
00109 }
00110
00111 #endif // XAODTRIGL1CALO_VERSIONS_RODHEADER_V1_H