ATLAS Offline Software
Loading...
Searching...
No Matches
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
20namespace EventStorage { class DataReader; }
21
26public:
27
28
30
31
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
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
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
100private:
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;
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
121std::ostream& operator<<(std::ostream& os, const ByteStreamMetadata& bsmd);
122
130inline bool
132 return lhs.getGuid() == rhs.getGuid();
133 }
134
142inline bool
144 return lhs.getGuid() != rhs.getGuid();
145 }
146
148CLASS_DEF(ByteStreamMetadata, 170625359, 1)
149#endif
bool operator!=(const ByteStreamMetadata &lhs, const ByteStreamMetadata &rhs)
Compare ByteStreamMetadata objects for inequality.
bool operator==(const ByteStreamMetadata &lhs, const ByteStreamMetadata &rhs)
Compare ByteStreamMetadata objects for equality.
std::ostream & operator<<(std::ostream &os, const ByteStreamMetadata &bsmd)
pretty print bytestream metadata content
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)
This class is the StoreGate data object for bytestream metadata.
uint64_t getDetectorMask() const
unsigned int getBeamType() const
ByteStreamMetadata & operator=(const ByteStreamMetadata &)=default
ByteStreamMetadata(ByteStreamMetadata &&)=default
const std::string & getGuid() const
const std::string & getStream() const
unsigned int getMaxEvents() const
unsigned int getRecEnable() const
unsigned int getRunNumber() const
unsigned int getTriggerType() const
unsigned int getNumEvents() const
unsigned int getBeamEnergy() const
unsigned int getLumiBlock() const
const std::vector< std::string > & getFreeMetaDataStrings() const
ByteStreamMetadata(const ByteStreamMetadata &)=default
ByteStreamMetadata & operator=(ByteStreamMetadata &&)=default
const std::string & getProject() const
std::vector< std::string > m_freeMetaDataStrings
uint64_t getDetectorMask2() const