ATLAS Offline Software
Classes | Namespaces | Functions
ByteStreamMetadata.h File Reference

This file contains the class definition for the ByteStreamMetadata class. More...

#include <vector>
#include <string>
#include <cstdint>
#include <iosfwd>
#include "AthenaKernel/CLASS_DEF.h"
Include dependency graph for ByteStreamMetadata.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 EventStorage
 

Functions

std::ostream & operator<< (std::ostream &os, const ByteStreamMetadata &bsmd)
 pretty print bytestream metadata content More...
 
bool operator== (const ByteStreamMetadata &lhs, const ByteStreamMetadata &rhs)
 Compare ByteStreamMetadata objects for equality. More...
 
bool operator!= (const ByteStreamMetadata &lhs, const ByteStreamMetadata &rhs)
 Compare ByteStreamMetadata objects for inequality. More...
 

Detailed Description

This file contains the class definition for the ByteStreamMetadata class.

Author
Peter van Gemmeren gemme.nosp@m.ren@.nosp@m.anl.g.nosp@m.ov
Frank Berghaus fberg.nosp@m.haus.nosp@m.@anl..nosp@m.gov
Id
ByteStreamMetadata.h,v 1.2 2009-04-02 14:47:40 gemmeren Exp

Definition in file ByteStreamMetadata.h.

Function Documentation

◆ operator!=()

bool operator!= ( const ByteStreamMetadata lhs,
const ByteStreamMetadata rhs 
)
inline

Compare ByteStreamMetadata objects for inequality.

Implementation of standard comparison operator. Uses the public interface of ByteStreamMetadata to compare GUIDs. It returns true if the GUIDs are not equal, false if they are.

Definition at line 143 of file ByteStreamMetadata.h.

143  {
144  return lhs.getGuid() != rhs.getGuid();
145  }

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const ByteStreamMetadata bsmd 
)

pretty print bytestream metadata content

Definition at line 194 of file ByteStreamMetadata.cxx.

194  {
195  std::bitset<64> word1(bsmd.getDetectorMask());
196  std::bitset<64> word2(bsmd.getDetectorMask2());
197 
198  os << " runNumber: " << bsmd.getRunNumber() << '\n'
199  << " numEvents: " << bsmd.getNumEvents() << '\n'
200  << " m_maxEvents: " << bsmd.getMaxEvents() << '\n'
201  << " recEnable: " << bsmd.getRecEnable() << '\n'
202  << " triggerType: " << bsmd.getTriggerType() << '\n'
203  << " detectorMask: " << word1 << '\n'
204  << " detectorMask2: " << word2 << '\n'
205  << " beamType: " << bsmd.getBeamType() << '\n'
206  << " beamEnergy: " << bsmd.getBeamEnergy() << '\n'
207  << " guid: " << bsmd.getGuid() << '\n'
208  << " stream: " << bsmd.getStream() << '\n'
209  << " project: " << bsmd.getProject() << '\n'
210  << " lumiBlock: " << bsmd.getLumiBlock() << '\n';
211 
212  os << " freeMetaDataStrings: ";
213  for (const std::string& key : bsmd.getFreeMetaDataStrings())
214  os << key << " ";
215 
216  return os;
217 }

◆ operator==()

bool operator== ( const ByteStreamMetadata lhs,
const ByteStreamMetadata rhs 
)
inline

Compare ByteStreamMetadata objects for equality.

Implementation of standard comparison operator. Uses the public interface of ByteStreamMetadata to compare GUIDs. It returns true if the GUIDs are equal, false otherwise.

Definition at line 131 of file ByteStreamMetadata.h.

131  {
132  return lhs.getGuid() == rhs.getGuid();
133  }
xAOD::word1
word1
Definition: eFexEMRoI_v1.cxx:87
ByteStreamMetadata::getDetectorMask
uint64_t getDetectorMask() const
Definition: ByteStreamMetadata.cxx:157
ByteStreamMetadata::getBeamEnergy
unsigned int getBeamEnergy() const
Definition: ByteStreamMetadata.cxx:169
ByteStreamMetadata::getFreeMetaDataStrings
const std::vector< std::string > & getFreeMetaDataStrings() const
Definition: ByteStreamMetadata.cxx:189
ByteStreamMetadata::getMaxEvents
unsigned int getMaxEvents() const
Definition: ByteStreamMetadata.cxx:145
ByteStreamMetadata::getStream
const std::string & getStream() const
Definition: ByteStreamMetadata.cxx:177
ByteStreamMetadata::getBeamType
unsigned int getBeamType() const
Definition: ByteStreamMetadata.cxx:165
ByteStreamMetadata::getProject
const std::string & getProject() const
Definition: ByteStreamMetadata.cxx:181
ByteStreamMetadata::getLumiBlock
unsigned int getLumiBlock() const
Definition: ByteStreamMetadata.cxx:185
ByteStreamMetadata::getDetectorMask2
uint64_t getDetectorMask2() const
Definition: ByteStreamMetadata.cxx:161
ByteStreamMetadata::getRecEnable
unsigned int getRecEnable() const
Definition: ByteStreamMetadata.cxx:149
ByteStreamMetadata::getNumEvents
unsigned int getNumEvents() const
Definition: ByteStreamMetadata.cxx:141
ByteStreamMetadata::getGuid
const std::string & getGuid() const
Definition: ByteStreamMetadata.cxx:173
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
ByteStreamMetadata::getRunNumber
unsigned int getRunNumber() const
Definition: ByteStreamMetadata.cxx:137
ByteStreamMetadata::getTriggerType
unsigned int getTriggerType() const
Definition: ByteStreamMetadata.cxx:153
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37