ATLAS Offline Software
ByteStreamMetadata.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef BYTESTREAMDATA_BYTESTREAMMETADATA_H
6 #define BYTESTREAMDATA_BYTESTREAMMETADATA_H
7 
15 #include <vector>
16 #include <string>
17 #include <stdint.h>
18 #include <iostream>
19 
20 namespace EventStorage { class DataReader; }
21 
26 public:
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 
77  virtual ~ByteStreamMetadata();
78 
79 
80  unsigned int getRunNumber() const;
81  unsigned int getNumEvents() const;
82  unsigned int getMaxEvents() const;
83  unsigned int getRecEnable() const;
84  unsigned int getTriggerType() const;
85  uint64_t getDetectorMask() const;
86  uint64_t getDetectorMask2() const;
87  unsigned int getBeamType() const;
88  unsigned int getBeamEnergy() const;
89  const std::string& getGuid() const;
90  const std::string& getStream() const;
91  const std::string& getProject() const;
92  unsigned int getLumiBlock() const;
93  const std::vector<std::string>& getFreeMetaDataStrings() const;
94 
95 private:
96  unsigned int m_runNumber;
97  unsigned int m_numEvents;
98  unsigned int m_maxEvents;
99  unsigned int m_recEnable;
100  unsigned int m_triggerType;
103  unsigned int m_beamType;
104  unsigned int m_beamEnergy;
105  std::string m_guid;
106  std::string m_stream;
107  std::string m_project;
108  unsigned int m_lumiBlock;
109  std::vector<std::string> m_freeMetaDataStrings;
110 };
111 
112 
116 std::ostream& operator<<(std::ostream& os, const ByteStreamMetadata& bsmd);
117 
125 inline bool
127  return lhs.getGuid() == rhs.getGuid();
128  }
129 
137 inline bool
139  return lhs.getGuid() != rhs.getGuid();
140  }
141 
142 #include "AthenaKernel/CLASS_DEF.h"
143 CLASS_DEF(ByteStreamMetadata, 170625359, 1)
144 #endif
ByteStreamMetadata::~ByteStreamMetadata
virtual ~ByteStreamMetadata()
Definition: ByteStreamMetadata.cxx:130
ByteStreamMetadata::m_maxEvents
unsigned int m_maxEvents
Definition: ByteStreamMetadata.h:98
ByteStreamMetadata::getDetectorMask
uint64_t getDetectorMask() const
Definition: ByteStreamMetadata.cxx:156
operator==
bool operator==(const ByteStreamMetadata &lhs, const ByteStreamMetadata &rhs)
Compare ByteStreamMetadata objects for equality.
Definition: ByteStreamMetadata.h:126
ByteStreamMetadata::m_guid
std::string m_guid
Definition: ByteStreamMetadata.h:105
offline_EventStorage_v5::freeMetaDataStrings
std::vector< std::string > freeMetaDataStrings
Definition: v5_EventStorageRecords.h:60
ByteStreamMetadata::ByteStreamMetadata
ByteStreamMetadata()
Definition: ByteStreamMetadata.cxx:18
ByteStreamMetadata::m_stream
std::string m_stream
Definition: ByteStreamMetadata.h:106
ByteStreamMetadata::m_detectorMask
uint64_t m_detectorMask
Definition: ByteStreamMetadata.h:101
ByteStreamMetadata::m_freeMetaDataStrings
std::vector< std::string > m_freeMetaDataStrings
Definition: ByteStreamMetadata.h:109
ByteStreamMetadata::getBeamEnergy
unsigned int getBeamEnergy() const
Definition: ByteStreamMetadata.cxx:168
ByteStreamMetadata::getFreeMetaDataStrings
const std::vector< std::string > & getFreeMetaDataStrings() const
Definition: ByteStreamMetadata.cxx:188
ByteStreamMetadata
This class is the StoreGate data object for bytestream metadata.
Definition: ByteStreamMetadata.h:25
ByteStreamMetadata::getMaxEvents
unsigned int getMaxEvents() const
Definition: ByteStreamMetadata.cxx:144
ByteStreamMetadata::getStream
const std::string & getStream() const
Definition: ByteStreamMetadata.cxx:176
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
python.SCT_ByteStreamErrorsTestAlgConfig.maxEvents
maxEvents
Definition: SCT_ByteStreamErrorsTestAlgConfig.py:43
ByteStreamMetadata::getBeamType
unsigned int getBeamType() const
Definition: ByteStreamMetadata.cxx:164
ByteStreamMetadata::getProject
const std::string & getProject() const
Definition: ByteStreamMetadata.cxx:180
ByteStreamMetadata::getLumiBlock
unsigned int getLumiBlock() const
Definition: ByteStreamMetadata.cxx:184
ByteStreamMetadata::getDetectorMask2
uint64_t getDetectorMask2() const
Definition: ByteStreamMetadata.cxx:160
ByteStreamMetadata::m_detectorMask2
uint64_t m_detectorMask2
Definition: ByteStreamMetadata.h:102
ByteStreamMetadata::getRecEnable
unsigned int getRecEnable() const
Definition: ByteStreamMetadata.cxx:148
ByteStreamMetadata::getNumEvents
unsigned int getNumEvents() const
Definition: ByteStreamMetadata.cxx:140
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
ByteStreamMetadata::getGuid
const std::string & getGuid() const
Definition: ByteStreamMetadata.cxx:172
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
ByteStreamMetadata::m_triggerType
unsigned int m_triggerType
Definition: ByteStreamMetadata.h:100
ByteStreamMetadata::m_recEnable
unsigned int m_recEnable
Definition: ByteStreamMetadata.h:99
pool_uuid.guid
guid
Definition: pool_uuid.py:112
ByteStreamMetadata::m_runNumber
unsigned int m_runNumber
Definition: ByteStreamMetadata.h:96
NoiseOccupancyTrigOff.beamType
string beamType
Definition: NoiseOccupancyTrigOff.py:23
ByteStreamMetadata::m_beamEnergy
unsigned int m_beamEnergy
Definition: ByteStreamMetadata.h:104
ByteStreamMetadata::getRunNumber
unsigned int getRunNumber() const
Definition: ByteStreamMetadata.cxx:136
RunTileTBMonitoring.beamEnergy
beamEnergy
Definition: RunTileTBMonitoring.py:248
project
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)
Definition: MeasurementSelector.h:142
DeMoAtlasDataLoss.runNumber
string runNumber
Definition: DeMoAtlasDataLoss.py:64
ByteStreamMetadata::getTriggerType
unsigned int getTriggerType() const
Definition: ByteStreamMetadata.cxx:152
ByteStreamMetadata::m_project
std::string m_project
Definition: ByteStreamMetadata.h:107
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:64
ByteStreamMetadata::m_numEvents
unsigned int m_numEvents
Definition: ByteStreamMetadata.h:97
RunTileMonitoring.triggerType
triggerType
Definition: RunTileMonitoring.py:162
ByteStreamMetadata::m_beamType
unsigned int m_beamType
Definition: ByteStreamMetadata.h:103
EventStorage
Definition: ByteStreamEventStorageInputSvc.h:25
collisions.reader
reader
read the goodrunslist xml file(s)
Definition: collisions.py:22
xAOD::lumiBlock
setTeId lumiBlock
Definition: L2StandAloneMuon_v1.cxx:327
operator!=
bool operator!=(const ByteStreamMetadata &lhs, const ByteStreamMetadata &rhs)
Compare ByteStreamMetadata objects for inequality.
Definition: ByteStreamMetadata.h:138
ByteStreamMetadata::m_lumiBlock
unsigned int m_lumiBlock
Definition: ByteStreamMetadata.h:108
CLASS_DEF.h
macros to associate a CLID to a type
operator<<
std::ostream & operator<<(std::ostream &os, const ByteStreamMetadata &bsmd)
pretty print bytestream metadata content
Definition: ByteStreamMetadata.cxx:193