ATLAS Offline Software
Trigger
TrigT1
TrigT1Result
TrigT1Result
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
46
Header
()
47
:
m_header
() {}
48
50
Header
( std::vector<uint32_t>&&
v
)
51
:
m_header
( std::move(
v
) ) {}
52
53
Header
(
Header
&&) noexcept =
default
;
54
Header
(
const
Header
&) =
default
;
55
Header
& operator=(
Header
&&) noexcept =
default
;
56
Header
& operator=(
const
Header
&) =
default
;
57
59
Header
(
const
uint32_t
,
const
uint32_t
,
const
uint32_t
);
61
Header
(
const
uint32_t
,
const
uint32_t
);
63
Header
(
const
uint32_t
);
64
65
67
~
Header
() =
default
;
68
70
const
std::
vector
<
uint32_t
>&
header
()
const
;
72
int
size
()
const
;
73
74
/* 'get' methods for the various entries in the header */
75
77
uint32_t
headerMarker
()
const
;
79
uint32_t
headerSize
()
const
;
81
uint32_t
formatVersion
()
const
;
83
uint32_t
sourceID
()
const
;
85
uint32_t
runNumber
()
const
;
87
uint32_t
L1ID
()
const
;
89
uint32_t
BCID
()
const
;
91
uint32_t
triggerType
()
const
;
93
uint32_t
eventType
()
const
;
94
95
/* Method setting various properties */
96
98
void
setRunNumber
(
const
uint32_t
);
100
void
setL1ID
(
const
uint32_t
);
102
void
setBCID
(
const
uint32_t
i
);
104
void
setTriggerType
(
const
uint32_t
i
);
106
void
setEventType
(
const
uint32_t
i
);
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
:
120
std::
vector
<
uint32_t
>
m_header
;
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
Generated on Sun Dec 22 2024 21:11:04 for ATLAS Offline Software by
1.8.18