ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ByteStreamMetadata Class Reference

This class is the StoreGate data object for bytestream metadata. More...

#include <ByteStreamMetadata.h>

Collaboration diagram for ByteStreamMetadata:

Public Member Functions

 ByteStreamMetadata ()
 
 ByteStreamMetadata (unsigned int runNumber, unsigned int numEvents, unsigned int maxEvents, unsigned int recEnable, unsigned int triggerType, uint64_t detectorMask, unsigned int beamType, unsigned int beamEnergy, const std::string &guid, const std::string &stream, const std::string &project, unsigned int lumiBlock, const std::vector< std::string > &freeMetaDataStrings)
 Constructure for 64 bit det mask constructor. More...
 
 ByteStreamMetadata (unsigned int runNumber, unsigned int numEvents, unsigned int maxEvents, unsigned int recEnable, unsigned int triggerType, uint64_t detectorMask, uint64_t detectorMask2, unsigned int beamType, unsigned int beamEnergy, const std::string &guid, const std::string &stream, const std::string &project, unsigned int lumiBlock, const std::vector< std::string > &freeMetaDataStrings)
 Constructor using 128 bit det mask. More...
 
 ByteStreamMetadata (EventStorage::DataReader &reader)
 Construct bytestream metadata directly from data reader provided by online EventStorage. More...
 
virtual ~ByteStreamMetadata ()
 
unsigned int getRunNumber () const
 
unsigned int getNumEvents () const
 
unsigned int getMaxEvents () const
 
unsigned int getRecEnable () const
 
unsigned int getTriggerType () const
 
uint64_t getDetectorMask () const
 
uint64_t getDetectorMask2 () const
 
unsigned int getBeamType () const
 
unsigned int getBeamEnergy () const
 
const std::string & getGuid () const
 
const std::string & getStream () const
 
const std::string & getProject () const
 
unsigned int getLumiBlock () const
 
const std::vector< std::string > & getFreeMetaDataStrings () const
 

Private Attributes

unsigned int m_runNumber
 
unsigned int m_numEvents
 
unsigned int m_maxEvents
 
unsigned int m_recEnable
 
unsigned int m_triggerType
 
uint64_t m_detectorMask
 
uint64_t m_detectorMask2
 
unsigned int m_beamType
 
unsigned int m_beamEnergy
 
std::string m_guid
 
std::string m_stream
 
std::string m_project
 
unsigned int m_lumiBlock
 
std::vector< std::string > m_freeMetaDataStrings
 

Detailed Description

This class is the StoreGate data object for bytestream metadata.

Definition at line 25 of file ByteStreamMetadata.h.

Constructor & Destructor Documentation

◆ ByteStreamMetadata() [1/4]

ByteStreamMetadata::ByteStreamMetadata ( )

Definition at line 18 of file ByteStreamMetadata.cxx.

19  : m_runNumber(0U)
20  , m_numEvents(0U)
21  , m_maxEvents(0U)
22  , m_recEnable(0U)
23  , m_triggerType(0U)
24  , m_detectorMask(0L)
25  , m_detectorMask2(0L)
26  , m_beamType(0U)
27  , m_beamEnergy(0U)
28  , m_guid()
29  , m_stream()
30  , m_project()
31  , m_lumiBlock(0U)
33 {}

◆ ByteStreamMetadata() [2/4]

ByteStreamMetadata::ByteStreamMetadata ( unsigned int  runNumber,
unsigned int  numEvents,
unsigned int  maxEvents,
unsigned int  recEnable,
unsigned int  triggerType,
uint64_t  detectorMask,
unsigned int  beamType,
unsigned int  beamEnergy,
const std::string &  guid,
const std::string &  stream,
const std::string &  project,
unsigned int  lumiBlock,
const std::vector< std::string > &  freeMetaDataStrings 
)

Constructure for 64 bit det mask constructor.

Definition at line 37 of file ByteStreamMetadata.cxx.

51  , m_numEvents(numEvents)
53  , m_recEnable(recEnable)
55  , m_detectorMask(detectorMask)
56  , m_detectorMask2(0)
59  , m_guid(guid)
60  , m_stream(stream)
64 {}

◆ ByteStreamMetadata() [3/4]

ByteStreamMetadata::ByteStreamMetadata ( unsigned int  runNumber,
unsigned int  numEvents,
unsigned int  maxEvents,
unsigned int  recEnable,
unsigned int  triggerType,
uint64_t  detectorMask,
uint64_t  detectorMask2,
unsigned int  beamType,
unsigned int  beamEnergy,
const std::string &  guid,
const std::string &  stream,
const std::string &  project,
unsigned int  lumiBlock,
const std::vector< std::string > &  freeMetaDataStrings 
)

Constructor using 128 bit det mask.

Definition at line 68 of file ByteStreamMetadata.cxx.

84  , m_numEvents(numEvents)
86  , m_recEnable(recEnable)
88  , m_detectorMask(detectorMask)
89  , m_detectorMask2(detectorMask2)
92  , m_guid(guid)
93  , m_stream(stream)
97 {}

◆ ByteStreamMetadata() [4/4]

ByteStreamMetadata::ByteStreamMetadata ( EventStorage::DataReader &  reader)

Construct bytestream metadata directly from data reader provided by online EventStorage.

Definition at line 101 of file ByteStreamMetadata.cxx.

102  : m_runNumber (reader.runNumber())
103  , m_numEvents (reader.eventsInFile())
104  , m_maxEvents (reader.maxEvents())
105  , m_recEnable (reader.recEnable())
106  , m_triggerType (reader.triggerType())
107  , m_detectorMask (0)
108  , m_detectorMask2 (0)
109  , m_beamType (reader.beamType())
110  , m_beamEnergy (reader.beamEnergy())
111  , m_guid (reader.GUID())
112  , m_stream (reader.stream())
113  , m_project (reader.projectTag())
114  , m_lumiBlock (reader.lumiblockNumber())
115  , m_freeMetaDataStrings(reader.freeMetaDataStrings())
116 {
117  // default goes into ByteStreamMetadata
118  std::bitset<64> word1;
119  std::bitset<64> word2;
120  for (unsigned int i=0; i<64; ++i) {
121  word1[i] = reader.detectorMask()[i];
122  word2[i] = reader.detectorMask()[i+64];
123  }
124  m_detectorMask = word1.to_ulong();
125  m_detectorMask2 = word2.to_ulong();
126 }

◆ ~ByteStreamMetadata()

ByteStreamMetadata::~ByteStreamMetadata ( )
virtual

Definition at line 130 of file ByteStreamMetadata.cxx.

130 {}

Member Function Documentation

◆ getBeamEnergy()

unsigned int ByteStreamMetadata::getBeamEnergy ( ) const

Definition at line 168 of file ByteStreamMetadata.cxx.

169 {return(m_beamEnergy);}

◆ getBeamType()

unsigned int ByteStreamMetadata::getBeamType ( ) const

Definition at line 164 of file ByteStreamMetadata.cxx.

165 {return(m_beamType);}

◆ getDetectorMask()

uint64_t ByteStreamMetadata::getDetectorMask ( ) const

Definition at line 156 of file ByteStreamMetadata.cxx.

157 {return(m_detectorMask);}

◆ getDetectorMask2()

uint64_t ByteStreamMetadata::getDetectorMask2 ( ) const

Definition at line 160 of file ByteStreamMetadata.cxx.

161 {return(m_detectorMask2);}

◆ getFreeMetaDataStrings()

const std::vector< std::string > & ByteStreamMetadata::getFreeMetaDataStrings ( ) const

Definition at line 188 of file ByteStreamMetadata.cxx.

189 {return(m_freeMetaDataStrings);}

◆ getGuid()

const std::string & ByteStreamMetadata::getGuid ( ) const

Definition at line 172 of file ByteStreamMetadata.cxx.

173 {return(m_guid);}

◆ getLumiBlock()

unsigned int ByteStreamMetadata::getLumiBlock ( ) const

Definition at line 184 of file ByteStreamMetadata.cxx.

185 {return(m_lumiBlock);}

◆ getMaxEvents()

unsigned int ByteStreamMetadata::getMaxEvents ( ) const

Definition at line 144 of file ByteStreamMetadata.cxx.

145 {return(m_maxEvents);}

◆ getNumEvents()

unsigned int ByteStreamMetadata::getNumEvents ( ) const

Definition at line 140 of file ByteStreamMetadata.cxx.

141 {return(m_numEvents);}

◆ getProject()

const std::string & ByteStreamMetadata::getProject ( ) const

Definition at line 180 of file ByteStreamMetadata.cxx.

181 {return(m_project);}

◆ getRecEnable()

unsigned int ByteStreamMetadata::getRecEnable ( ) const

Definition at line 148 of file ByteStreamMetadata.cxx.

149 {return(m_recEnable);}

◆ getRunNumber()

unsigned int ByteStreamMetadata::getRunNumber ( ) const

Definition at line 136 of file ByteStreamMetadata.cxx.

137 {return(m_runNumber);}

◆ getStream()

const std::string & ByteStreamMetadata::getStream ( ) const

Definition at line 176 of file ByteStreamMetadata.cxx.

177 {return(m_stream);}

◆ getTriggerType()

unsigned int ByteStreamMetadata::getTriggerType ( ) const

Definition at line 152 of file ByteStreamMetadata.cxx.

153 {return(m_triggerType);}

Member Data Documentation

◆ m_beamEnergy

unsigned int ByteStreamMetadata::m_beamEnergy
private

Definition at line 104 of file ByteStreamMetadata.h.

◆ m_beamType

unsigned int ByteStreamMetadata::m_beamType
private

Definition at line 103 of file ByteStreamMetadata.h.

◆ m_detectorMask

uint64_t ByteStreamMetadata::m_detectorMask
private

Definition at line 101 of file ByteStreamMetadata.h.

◆ m_detectorMask2

uint64_t ByteStreamMetadata::m_detectorMask2
private

Definition at line 102 of file ByteStreamMetadata.h.

◆ m_freeMetaDataStrings

std::vector<std::string> ByteStreamMetadata::m_freeMetaDataStrings
private

Definition at line 109 of file ByteStreamMetadata.h.

◆ m_guid

std::string ByteStreamMetadata::m_guid
private

Definition at line 105 of file ByteStreamMetadata.h.

◆ m_lumiBlock

unsigned int ByteStreamMetadata::m_lumiBlock
private

Definition at line 108 of file ByteStreamMetadata.h.

◆ m_maxEvents

unsigned int ByteStreamMetadata::m_maxEvents
private

Definition at line 98 of file ByteStreamMetadata.h.

◆ m_numEvents

unsigned int ByteStreamMetadata::m_numEvents
private

Definition at line 97 of file ByteStreamMetadata.h.

◆ m_project

std::string ByteStreamMetadata::m_project
private

Definition at line 107 of file ByteStreamMetadata.h.

◆ m_recEnable

unsigned int ByteStreamMetadata::m_recEnable
private

Definition at line 99 of file ByteStreamMetadata.h.

◆ m_runNumber

unsigned int ByteStreamMetadata::m_runNumber
private

Definition at line 96 of file ByteStreamMetadata.h.

◆ m_stream

std::string ByteStreamMetadata::m_stream
private

Definition at line 106 of file ByteStreamMetadata.h.

◆ m_triggerType

unsigned int ByteStreamMetadata::m_triggerType
private

Definition at line 100 of file ByteStreamMetadata.h.


The documentation for this class was generated from the following files:
ByteStreamMetadata::m_maxEvents
unsigned int m_maxEvents
Definition: ByteStreamMetadata.h:98
xAOD::word1
word1
Definition: eFexEMRoI_v1.cxx:87
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::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
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
python.SCT_ByteStreamErrorsTestAlgConfig.maxEvents
maxEvents
Definition: SCT_ByteStreamErrorsTestAlgConfig.py:43
ByteStreamMetadata::m_detectorMask2
uint64_t m_detectorMask2
Definition: ByteStreamMetadata.h:102
lumiFormat.i
int i
Definition: lumiFormat.py:85
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
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::m_project
std::string m_project
Definition: ByteStreamMetadata.h:107
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
collisions.reader
reader
read the goodrunslist xml file(s)
Definition: collisions.py:22
xAOD::lumiBlock
setTeId lumiBlock
Definition: L2StandAloneMuon_v1.cxx:327
ByteStreamMetadata::m_lumiBlock
unsigned int m_lumiBlock
Definition: ByteStreamMetadata.h:108