ATLAS Offline Software
Loading...
Searching...
No Matches
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)
 Constructor for 64 bit det mask.
 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.
 ByteStreamMetadata (EventStorage::DataReader &reader)
 Construct bytestream metadata directly from data reader provided by online EventStorage.
 ByteStreamMetadata (const ByteStreamMetadata &)=default
 ByteStreamMetadata (ByteStreamMetadata &&)=default
ByteStreamMetadataoperator= (const ByteStreamMetadata &)=default
ByteStreamMetadataoperator= (ByteStreamMetadata &&)=default
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/6]

ByteStreamMetadata::ByteStreamMetadata ( )

Definition at line 19 of file ByteStreamMetadata.cxx.

20 : m_runNumber(0U)
21 , m_numEvents(0U)
22 , m_maxEvents(0U)
23 , m_recEnable(0U)
24 , m_triggerType(0U)
25 , m_detectorMask(0L)
26 , m_detectorMask2(0L)
27 , m_beamType(0U)
28 , m_beamEnergy(0U)
29 , m_guid()
30 , m_stream()
31 , m_project()
32 , m_lumiBlock(0U)
34{}
std::vector< std::string > m_freeMetaDataStrings

◆ ByteStreamMetadata() [2/6]

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 )

Constructor for 64 bit det mask.

Definition at line 38 of file ByteStreamMetadata.cxx.

51 : m_runNumber(runNumber)
52 , m_numEvents(numEvents)
53 , m_maxEvents(maxEvents)
54 , m_recEnable(recEnable)
55 , m_triggerType(triggerType)
56 , m_detectorMask(detectorMask)
58 , m_beamType(beamType)
59 , m_beamEnergy(beamEnergy)
60 , m_guid(guid)
61 , m_stream(stream)
63 , m_lumiBlock(lumiBlock)
64 , m_freeMetaDataStrings(freeMetaDataStrings)
65{}
T_ResultType project(ParameterMapping::type< N > parameter_map, const T_Matrix &matrix)

◆ ByteStreamMetadata() [3/6]

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 69 of file ByteStreamMetadata.cxx.

84 : m_runNumber(runNumber)
85 , m_numEvents(numEvents)
86 , m_maxEvents(maxEvents)
87 , m_recEnable(recEnable)
88 , m_triggerType(triggerType)
89 , m_detectorMask(detectorMask)
90 , m_detectorMask2(detectorMask2)
91 , m_beamType(beamType)
92 , m_beamEnergy(beamEnergy)
93 , m_guid(guid)
94 , m_stream(stream)
96 , m_lumiBlock(lumiBlock)
97 , m_freeMetaDataStrings(freeMetaDataStrings)
98{}

◆ ByteStreamMetadata() [4/6]

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

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

Definition at line 102 of file ByteStreamMetadata.cxx.

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

◆ ByteStreamMetadata() [5/6]

ByteStreamMetadata::ByteStreamMetadata ( const ByteStreamMetadata & )
default

◆ ByteStreamMetadata() [6/6]

ByteStreamMetadata::ByteStreamMetadata ( ByteStreamMetadata && )
default

◆ ~ByteStreamMetadata()

ByteStreamMetadata::~ByteStreamMetadata ( )
virtual

Definition at line 131 of file ByteStreamMetadata.cxx.

131{}

Member Function Documentation

◆ getBeamEnergy()

unsigned int ByteStreamMetadata::getBeamEnergy ( ) const

Definition at line 169 of file ByteStreamMetadata.cxx.

170{return(m_beamEnergy);}

◆ getBeamType()

unsigned int ByteStreamMetadata::getBeamType ( ) const

Definition at line 165 of file ByteStreamMetadata.cxx.

166{return(m_beamType);}

◆ getDetectorMask()

uint64_t ByteStreamMetadata::getDetectorMask ( ) const

Definition at line 157 of file ByteStreamMetadata.cxx.

158{return(m_detectorMask);}

◆ getDetectorMask2()

uint64_t ByteStreamMetadata::getDetectorMask2 ( ) const

Definition at line 161 of file ByteStreamMetadata.cxx.

162{return(m_detectorMask2);}

◆ getFreeMetaDataStrings()

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

Definition at line 189 of file ByteStreamMetadata.cxx.

190{return(m_freeMetaDataStrings);}

◆ getGuid()

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

Definition at line 173 of file ByteStreamMetadata.cxx.

174{return(m_guid);}

◆ getLumiBlock()

unsigned int ByteStreamMetadata::getLumiBlock ( ) const

Definition at line 185 of file ByteStreamMetadata.cxx.

186{return(m_lumiBlock);}

◆ getMaxEvents()

unsigned int ByteStreamMetadata::getMaxEvents ( ) const

Definition at line 145 of file ByteStreamMetadata.cxx.

146{return(m_maxEvents);}

◆ getNumEvents()

unsigned int ByteStreamMetadata::getNumEvents ( ) const

Definition at line 141 of file ByteStreamMetadata.cxx.

142{return(m_numEvents);}

◆ getProject()

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

Definition at line 181 of file ByteStreamMetadata.cxx.

182{return(m_project);}

◆ getRecEnable()

unsigned int ByteStreamMetadata::getRecEnable ( ) const

Definition at line 149 of file ByteStreamMetadata.cxx.

150{return(m_recEnable);}

◆ getRunNumber()

unsigned int ByteStreamMetadata::getRunNumber ( ) const

Definition at line 137 of file ByteStreamMetadata.cxx.

138{return(m_runNumber);}

◆ getStream()

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

Definition at line 177 of file ByteStreamMetadata.cxx.

178{return(m_stream);}

◆ getTriggerType()

unsigned int ByteStreamMetadata::getTriggerType ( ) const

Definition at line 153 of file ByteStreamMetadata.cxx.

154{return(m_triggerType);}

◆ operator=() [1/2]

ByteStreamMetadata & ByteStreamMetadata::operator= ( ByteStreamMetadata && )
default

◆ operator=() [2/2]

ByteStreamMetadata & ByteStreamMetadata::operator= ( const ByteStreamMetadata & )
default

Member Data Documentation

◆ m_beamEnergy

unsigned int ByteStreamMetadata::m_beamEnergy
private

Definition at line 109 of file ByteStreamMetadata.h.

◆ m_beamType

unsigned int ByteStreamMetadata::m_beamType
private

Definition at line 108 of file ByteStreamMetadata.h.

◆ m_detectorMask

uint64_t ByteStreamMetadata::m_detectorMask
private

Definition at line 106 of file ByteStreamMetadata.h.

◆ m_detectorMask2

uint64_t ByteStreamMetadata::m_detectorMask2
private

Definition at line 107 of file ByteStreamMetadata.h.

◆ m_freeMetaDataStrings

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

Definition at line 114 of file ByteStreamMetadata.h.

◆ m_guid

std::string ByteStreamMetadata::m_guid
private

Definition at line 110 of file ByteStreamMetadata.h.

◆ m_lumiBlock

unsigned int ByteStreamMetadata::m_lumiBlock
private

Definition at line 113 of file ByteStreamMetadata.h.

◆ m_maxEvents

unsigned int ByteStreamMetadata::m_maxEvents
private

Definition at line 103 of file ByteStreamMetadata.h.

◆ m_numEvents

unsigned int ByteStreamMetadata::m_numEvents
private

Definition at line 102 of file ByteStreamMetadata.h.

◆ m_project

std::string ByteStreamMetadata::m_project
private

Definition at line 112 of file ByteStreamMetadata.h.

◆ m_recEnable

unsigned int ByteStreamMetadata::m_recEnable
private

Definition at line 104 of file ByteStreamMetadata.h.

◆ m_runNumber

unsigned int ByteStreamMetadata::m_runNumber
private

Definition at line 101 of file ByteStreamMetadata.h.

◆ m_stream

std::string ByteStreamMetadata::m_stream
private

Definition at line 111 of file ByteStreamMetadata.h.

◆ m_triggerType

unsigned int ByteStreamMetadata::m_triggerType
private

Definition at line 105 of file ByteStreamMetadata.h.


The documentation for this class was generated from the following files: