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 <stdint.h>
#include <iostream>
#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 138 of file ByteStreamMetadata.h.

138  {
139  return lhs.getGuid() != rhs.getGuid();
140  }

◆ operator<<()

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

pretty print bytestream metadata content

Definition at line 193 of file ByteStreamMetadata.cxx.

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

◆ 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 126 of file ByteStreamMetadata.h.

126  {
127  return lhs.getGuid() == rhs.getGuid();
128  }
xAOD::word1
word1
Definition: eFexEMRoI_v1.cxx:82
ByteStreamMetadata::getDetectorMask
uint64_t getDetectorMask() const
Definition: ByteStreamMetadata.cxx:156
ByteStreamMetadata::getBeamEnergy
unsigned int getBeamEnergy() const
Definition: ByteStreamMetadata.cxx:168
ByteStreamMetadata::getFreeMetaDataStrings
const std::vector< std::string > & getFreeMetaDataStrings() const
Definition: ByteStreamMetadata.cxx:188
ByteStreamMetadata::getMaxEvents
unsigned int getMaxEvents() const
Definition: ByteStreamMetadata.cxx:144
ByteStreamMetadata::getStream
const std::string & getStream() const
Definition: ByteStreamMetadata.cxx:176
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::getRecEnable
unsigned int getRecEnable() const
Definition: ByteStreamMetadata.cxx:148
ByteStreamMetadata::getNumEvents
unsigned int getNumEvents() const
Definition: ByteStreamMetadata.cxx:140
ByteStreamMetadata::getGuid
const std::string & getGuid() const
Definition: ByteStreamMetadata.cxx:172
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
ByteStreamMetadata::getRunNumber
unsigned int getRunNumber() const
Definition: ByteStreamMetadata.cxx:136
ByteStreamMetadata::getTriggerType
unsigned int getTriggerType() const
Definition: ByteStreamMetadata.cxx:152
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37