ATLAS Offline Software
Loading...
Searching...
No Matches
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

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

Namespaces

namespace  EventStorage

Functions

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

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 }
const std::string & getGuid() const

◆ 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}
uint64_t getDetectorMask() const
unsigned int getBeamType() const
const std::string & getStream() const
unsigned int getMaxEvents() const
unsigned int getRecEnable() const
unsigned int getRunNumber() const
unsigned int getTriggerType() const
unsigned int getNumEvents() const
unsigned int getBeamEnergy() const
unsigned int getLumiBlock() const
const std::vector< std::string > & getFreeMetaDataStrings() const
const std::string & getProject() const
uint64_t getDetectorMask2() const

◆ 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 }