ATLAS Offline Software
TrigT1Result/TrigT1Result/Header.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #ifndef TRIGT1RESULT_HEADER_H
7 #define TRIGT1RESULT_HEADER_H
8 
9 // std include(s):
10 #include <stdint.h>
11 
12 // STL include(s):
13 #include <string>
14 #include <vector>
15 
16 // Forward declaration(s):
17 class MsgStream;
18 
19 namespace ROIB {
20 
37  class Header {
38 
39  public:
40  // constants:
43  static constexpr unsigned int wordsPerHeader = 8;
44 
47  : m_header() {}
48 
50  Header( std::vector<uint32_t>&& v)
51  : m_header( std::move(v) ) {}
52 
53  Header(Header&&) noexcept = default;
55  Header& operator=(Header&&) noexcept =default;
56  Header& operator=(const Header&) =default;
57 
64 
65 
68 
72  int size() const;
73 
74  /* 'get' methods for the various entries in the header */
75 
94 
95  /* Method setting various properties */
96 
107 
109  const std::string dump() const;
111  const std::string print(const bool longFormat = false) const;
112 
114  void dumpData() const;
116  void dumpData(MsgStream&) const;
117 
118  private:
121 
122  }; // class Header
123 
124 } // namespace ROIB
125 
126 // inline implementations
127 
128 #include "TrigT1Result/Header.icc"
129 
130 #endif // TRIGT1RESULT_HEADER_H
ROIB::Header::sourceID
uint32_t sourceID() const
get sub detector source ID
ROIB::Header::eventType
uint32_t eventType() const
get LVL1 event type
header
Definition: hcg.cxx:526
ROIB::Header::formatVersion
uint32_t formatVersion() const
get version of header format
ROIB::Header::print
const std::string print(const bool longFormat=false) const
print object content in a human readable format to string
Definition: TrigT1Result/src/Header.cxx:80
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ROIB::Header::size
int size() const
get header(data) size
ROIB::Header::Header
Header(Header &&) noexcept=default
ROIB::Header::L1ID
uint32_t L1ID() const
get extended LVL1 ID
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
ROIB
Namespace of the LVL1 RoIB simulation.
Definition: ILvl1ResultAccessTool.h:19
ROIB::Header::headerMarker
uint32_t headerMarker() const
get header marker word
ROIB::Header::BCID
uint32_t BCID() const
get bunch crossing ID
ROIB::Header::triggerType
uint32_t triggerType() const
get LVL1 trigger type
ROIB::Header::setL1ID
void setL1ID(const uint32_t)
set extended LVL1 ID
lumiFormat.i
int i
Definition: lumiFormat.py:85
ROIB::Header
Header models the LVL1 ROD Header.
Definition: TrigT1Result/TrigT1Result/Header.h:37
vector
Definition: MultiHisto.h:13
ROIB::Header::dump
const std::string dump() const
dump raw object content to string
Definition: TrigT1Result/src/Header.cxx:69
ROIB::Header::Header
Header()
default constructor: empty object
Definition: TrigT1Result/TrigT1Result/Header.h:46
ROIB::Header::setEventType
void setEventType(const uint32_t i)
set LVL1 event type
ROIB::Header::runNumber
uint32_t runNumber() const
get run number
ROIB::Header::Header
Header(std::vector< uint32_t > &&v)
constructor which fully specifies the initialiser values
Definition: TrigT1Result/TrigT1Result/Header.h:50
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
python.PyAthena.v
v
Definition: PyAthena.py:154
ROIB::Header::setTriggerType
void setTriggerType(const uint32_t i)
set LVL1 trigger type
ROIB::Header::m_header
std::vector< uint32_t > m_header
vector of unsigned ints - the only data member
Definition: TrigT1Result/TrigT1Result/Header.h:120
ROIB::Header::dumpData
void dumpData() const
print object content to default message stream
Definition: TrigT1Result/src/Header.cxx:103
ROIB::Header::headerSize
uint32_t headerSize() const
get number of words in header
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79
ROIB::Header::setBCID
void setBCID(const uint32_t i)
set bunch crossing ID
ROIB::Header::setRunNumber
void setRunNumber(const uint32_t)
set run number
ROIB::Header::wordsPerHeader
static constexpr unsigned int wordsPerHeader
a ROD header as used in the LVL1 has 8 words, not counting the one hardware word in the beginning
Definition: TrigT1Result/TrigT1Result/Header.h:43