ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
ByteStreamData
ByteStreamData
ByteStreamMetadata.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef BYTESTREAMDATA_BYTESTREAMMETADATA_H
6
#define BYTESTREAMDATA_BYTESTREAMMETADATA_H
7
14
15
#include <vector>
16
#include <string>
17
#include <cstdint>
18
#include <iosfwd>
19
20
namespace
EventStorage
{
class
DataReader; }
21
25
class
ByteStreamMetadata
{
26
public
:
27
28
29
ByteStreamMetadata
();
30
31
35
ByteStreamMetadata
(
36
unsigned
int
runNumber,
37
unsigned
int
numEvents,
38
unsigned
int
maxEvents,
39
unsigned
int
recEnable,
40
unsigned
int
triggerType,
41
uint64_t detectorMask,
42
unsigned
int
beamType,
43
unsigned
int
beamEnergy,
44
const
std::string& guid,
45
const
std::string& stream,
46
const
std::string&
project
,
47
unsigned
int
lumiBlock,
48
const
std::vector<std::string>& freeMetaDataStrings);
49
50
54
ByteStreamMetadata
(
55
unsigned
int
runNumber,
56
unsigned
int
numEvents,
57
unsigned
int
maxEvents,
58
unsigned
int
recEnable,
59
unsigned
int
triggerType,
60
uint64_t detectorMask,
61
uint64_t detectorMask2,
62
unsigned
int
beamType,
63
unsigned
int
beamEnergy,
64
const
std::string& guid,
65
const
std::string& stream,
66
const
std::string&
project
,
67
unsigned
int
lumiBlock,
68
const
std::vector<std::string>& freeMetaDataStrings);
69
74
ByteStreamMetadata
(EventStorage::DataReader& reader);
75
76
// Default copy/move
77
ByteStreamMetadata
(
const
ByteStreamMetadata
&) =
default
;
78
ByteStreamMetadata
(
ByteStreamMetadata
&&) =
default
;
79
ByteStreamMetadata
&
operator=
(
const
ByteStreamMetadata
&) =
default
;
80
ByteStreamMetadata
&
operator=
(
ByteStreamMetadata
&&) =
default
;
81
82
virtual
~ByteStreamMetadata
();
83
84
85
unsigned
int
getRunNumber
()
const
;
86
unsigned
int
getNumEvents
()
const
;
87
unsigned
int
getMaxEvents
()
const
;
88
unsigned
int
getRecEnable
()
const
;
89
unsigned
int
getTriggerType
()
const
;
90
uint64_t
getDetectorMask
()
const
;
91
uint64_t
getDetectorMask2
()
const
;
92
unsigned
int
getBeamType
()
const
;
93
unsigned
int
getBeamEnergy
()
const
;
94
const
std::string&
getGuid
()
const
;
95
const
std::string&
getStream
()
const
;
96
const
std::string&
getProject
()
const
;
97
unsigned
int
getLumiBlock
()
const
;
98
const
std::vector<std::string>&
getFreeMetaDataStrings
()
const
;
99
100
private
:
101
unsigned
int
m_runNumber
;
102
unsigned
int
m_numEvents
;
103
unsigned
int
m_maxEvents
;
104
unsigned
int
m_recEnable
;
105
unsigned
int
m_triggerType
;
106
uint64_t
m_detectorMask
;
107
uint64_t
m_detectorMask2
;
108
unsigned
int
m_beamType
;
109
unsigned
int
m_beamEnergy
;
110
std::string
m_guid
;
111
std::string
m_stream
;
112
std::string
m_project
;
113
unsigned
int
m_lumiBlock
;
114
std::vector<std::string>
m_freeMetaDataStrings
;
115
};
116
117
121
std::ostream&
operator<<
(std::ostream& os,
const
ByteStreamMetadata
& bsmd);
122
130
inline
bool
131
operator==
(
const
ByteStreamMetadata
& lhs,
const
ByteStreamMetadata
& rhs) {
132
return
lhs.
getGuid
() == rhs.
getGuid
();
133
}
134
142
inline
bool
143
operator!=
(
const
ByteStreamMetadata
& lhs,
const
ByteStreamMetadata
& rhs) {
144
return
lhs.
getGuid
() != rhs.
getGuid
();
145
}
146
147
#include "
AthenaKernel/CLASS_DEF.h
"
148
CLASS_DEF
(
ByteStreamMetadata
, 170625359, 1)
149
#endif
operator!=
bool operator!=(const ByteStreamMetadata &lhs, const ByteStreamMetadata &rhs)
Compare ByteStreamMetadata objects for inequality.
Definition
ByteStreamMetadata.h:143
operator==
bool operator==(const ByteStreamMetadata &lhs, const ByteStreamMetadata &rhs)
Compare ByteStreamMetadata objects for equality.
Definition
ByteStreamMetadata.h:131
operator<<
std::ostream & operator<<(std::ostream &os, const ByteStreamMetadata &bsmd)
pretty print bytestream metadata content
Definition
ByteStreamMetadata.cxx:194
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
project
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)
Definition
MeasurementSelector.h:152
ByteStreamMetadata
This class is the StoreGate data object for bytestream metadata.
Definition
ByteStreamMetadata.h:25
ByteStreamMetadata::getDetectorMask
uint64_t getDetectorMask() const
Definition
ByteStreamMetadata.cxx:157
ByteStreamMetadata::getBeamType
unsigned int getBeamType() const
Definition
ByteStreamMetadata.cxx:165
ByteStreamMetadata::operator=
ByteStreamMetadata & operator=(const ByteStreamMetadata &)=default
ByteStreamMetadata::m_project
std::string m_project
Definition
ByteStreamMetadata.h:112
ByteStreamMetadata::m_beamType
unsigned int m_beamType
Definition
ByteStreamMetadata.h:108
ByteStreamMetadata::m_lumiBlock
unsigned int m_lumiBlock
Definition
ByteStreamMetadata.h:113
ByteStreamMetadata::ByteStreamMetadata
ByteStreamMetadata(ByteStreamMetadata &&)=default
ByteStreamMetadata::getGuid
const std::string & getGuid() const
Definition
ByteStreamMetadata.cxx:173
ByteStreamMetadata::m_triggerType
unsigned int m_triggerType
Definition
ByteStreamMetadata.h:105
ByteStreamMetadata::getStream
const std::string & getStream() const
Definition
ByteStreamMetadata.cxx:177
ByteStreamMetadata::getMaxEvents
unsigned int getMaxEvents() const
Definition
ByteStreamMetadata.cxx:145
ByteStreamMetadata::m_guid
std::string m_guid
Definition
ByteStreamMetadata.h:110
ByteStreamMetadata::m_stream
std::string m_stream
Definition
ByteStreamMetadata.h:111
ByteStreamMetadata::m_recEnable
unsigned int m_recEnable
Definition
ByteStreamMetadata.h:104
ByteStreamMetadata::ByteStreamMetadata
ByteStreamMetadata()
Definition
ByteStreamMetadata.cxx:19
ByteStreamMetadata::~ByteStreamMetadata
virtual ~ByteStreamMetadata()
Definition
ByteStreamMetadata.cxx:131
ByteStreamMetadata::getRecEnable
unsigned int getRecEnable() const
Definition
ByteStreamMetadata.cxx:149
ByteStreamMetadata::getRunNumber
unsigned int getRunNumber() const
Definition
ByteStreamMetadata.cxx:137
ByteStreamMetadata::getTriggerType
unsigned int getTriggerType() const
Definition
ByteStreamMetadata.cxx:153
ByteStreamMetadata::m_beamEnergy
unsigned int m_beamEnergy
Definition
ByteStreamMetadata.h:109
ByteStreamMetadata::getNumEvents
unsigned int getNumEvents() const
Definition
ByteStreamMetadata.cxx:141
ByteStreamMetadata::getBeamEnergy
unsigned int getBeamEnergy() const
Definition
ByteStreamMetadata.cxx:169
ByteStreamMetadata::getLumiBlock
unsigned int getLumiBlock() const
Definition
ByteStreamMetadata.cxx:185
ByteStreamMetadata::getFreeMetaDataStrings
const std::vector< std::string > & getFreeMetaDataStrings() const
Definition
ByteStreamMetadata.cxx:189
ByteStreamMetadata::m_maxEvents
unsigned int m_maxEvents
Definition
ByteStreamMetadata.h:103
ByteStreamMetadata::ByteStreamMetadata
ByteStreamMetadata(const ByteStreamMetadata &)=default
ByteStreamMetadata::m_runNumber
unsigned int m_runNumber
Definition
ByteStreamMetadata.h:101
ByteStreamMetadata::operator=
ByteStreamMetadata & operator=(ByteStreamMetadata &&)=default
ByteStreamMetadata::getProject
const std::string & getProject() const
Definition
ByteStreamMetadata.cxx:181
ByteStreamMetadata::m_numEvents
unsigned int m_numEvents
Definition
ByteStreamMetadata.h:102
ByteStreamMetadata::m_freeMetaDataStrings
std::vector< std::string > m_freeMetaDataStrings
Definition
ByteStreamMetadata.h:114
ByteStreamMetadata::m_detectorMask2
uint64_t m_detectorMask2
Definition
ByteStreamMetadata.h:107
ByteStreamMetadata::m_detectorMask
uint64_t m_detectorMask
Definition
ByteStreamMetadata.h:106
ByteStreamMetadata::getDetectorMask2
uint64_t getDetectorMask2() const
Definition
ByteStreamMetadata.cxx:161
EventStorage
Definition
ByteStreamEventStorageInputSvc.h:25
Generated on
for ATLAS Offline Software by
1.17.0