ATLAS Offline Software
Loading...
Searching...
No Matches
EventStreamInfo Class Reference

This class provides the summary information stored for data written as a Event Stream. More...

#include <EventStreamInfo.h>

Collaboration diagram for EventStreamInfo:

Public Member Functions

 EventStreamInfo ()
 Default Constructor.
virtual ~EventStreamInfo ()
 Destructor.
 EventStreamInfo (const EventStreamInfo &)=default
 EventStreamInfo (EventStreamInfo &&)=default
EventStreamInfooperator= (const EventStreamInfo &)=default
EventStreamInfooperator= (EventStreamInfo &&)=default
unsigned int getNumberOfEvents () const
const std::set< unsigned int > & getRunNumbers () const
const std::set< unsigned int > & getLumiBlockNumbers () const
const std::set< std::string > & getProcessingTags () const
const std::set< std::pair< CLID, std::string > > & getItemList () const
const std::set< EventType > & getEventTypes () const
void addEvent (unsigned int number=1)
 Increase Event Counter.
void setNumberOfEvents (unsigned int number)
 Set number of events.
void insertRunNumber (unsigned int run)
 Insert new Run Number into a set.
void insertLumiBlockNumber (unsigned int lumiBlock)
 Insert new Luminosity Block Number into a set.
void insertProcessingTag (const std::string &process)
 Insert new Processing Tag into a set.
void insertItemList (CLID type, const std::string &key)
 Insert new ItemList Entry into a set.
void insertEventType (const EventType &event)
 Insert new Event Type into a set.
void print (MsgStream &log) const
 Print a EventStreamInfo to the log file.
void reset ()

Private Attributes

unsigned int m_numberOfEvents
std::set< unsigned int > m_runNumbers
std::set< unsigned int > m_lumiBlockNumbers
std::set< std::string > m_processingTags
std::set< std::pair< CLID, std::string > > m_itemList
std::set< EventTypem_eventTypes

Detailed Description

This class provides the summary information stored for data written as a Event Stream.

Definition at line 28 of file EventStreamInfo.h.

Constructor & Destructor Documentation

◆ EventStreamInfo() [1/3]

EventStreamInfo::EventStreamInfo ( )
inline

Default Constructor.

Definition at line 93 of file EventStreamInfo.h.

97 m_itemList(),
98 m_eventTypes() {}
std::set< std::string > m_processingTags
std::set< EventType > m_eventTypes
std::set< unsigned int > m_runNumbers
unsigned int m_numberOfEvents
std::set< std::pair< CLID, std::string > > m_itemList
std::set< unsigned int > m_lumiBlockNumbers

◆ ~EventStreamInfo()

EventStreamInfo::~EventStreamInfo ( )
inlinevirtual

Destructor.

Definition at line 99 of file EventStreamInfo.h.

99{}

◆ EventStreamInfo() [2/3]

EventStreamInfo::EventStreamInfo ( const EventStreamInfo & )
default

◆ EventStreamInfo() [3/3]

EventStreamInfo::EventStreamInfo ( EventStreamInfo && )
default

Member Function Documentation

◆ addEvent()

void EventStreamInfo::addEvent ( unsigned int number = 1)

Increase Event Counter.

Definition at line 53 of file EventStreamInfo.cxx.

53 {
55}
std::string number(const double &d, const std::string &s)
Definition utils.cxx:186

◆ getEventTypes()

const std::set< EventType > & EventStreamInfo::getEventTypes ( ) const
Returns
a set of Event Types

Definition at line 47 of file EventStreamInfo.cxx.

47 {
48 return(m_eventTypes);
49}

◆ getItemList()

const std::set< std::pair< CLID, std::string > > & EventStreamInfo::getItemList ( ) const
Returns
a set of ItemList Entries

Definition at line 41 of file EventStreamInfo.cxx.

41 {
42 return(m_itemList);
43}

◆ getLumiBlockNumbers()

const std::set< unsigned int > & EventStreamInfo::getLumiBlockNumbers ( ) const
Returns
a set of Luminosity Block Numbers

Definition at line 29 of file EventStreamInfo.cxx.

29 {
30 return(m_lumiBlockNumbers);
31}

◆ getNumberOfEvents()

unsigned int EventStreamInfo::getNumberOfEvents ( ) const
Returns
the Number of Events

Definition at line 17 of file EventStreamInfo.cxx.

17 {
18 return(m_numberOfEvents);
19}

◆ getProcessingTags()

const std::set< std::string > & EventStreamInfo::getProcessingTags ( ) const
Returns
a set of Processing Tags

Definition at line 35 of file EventStreamInfo.cxx.

35 {
36 return(m_processingTags);
37}

◆ getRunNumbers()

const std::set< unsigned int > & EventStreamInfo::getRunNumbers ( ) const
Returns
a set of Run Numbers

Definition at line 23 of file EventStreamInfo.cxx.

23 {
24 return(m_runNumbers);
25}

◆ insertEventType()

void EventStreamInfo::insertEventType ( const EventType & event)

Insert new Event Type into a set.

Parameters
event[IN] EventType object of the Event to be inserted.

Definition at line 88 of file EventStreamInfo.cxx.

88 {
89 m_eventTypes.insert(event);
90}

◆ insertItemList()

void EventStreamInfo::insertItemList ( CLID type,
const std::string & key )

Insert new ItemList Entry into a set.

Parameters
type[IN] CLID for type to be inserted.
key[IN] string with key to be inserted.

Definition at line 82 of file EventStreamInfo.cxx.

82 {
83 m_itemList.insert(std::pair<CLID, std::string>(type, key));
84}

◆ insertLumiBlockNumber()

void EventStreamInfo::insertLumiBlockNumber ( unsigned int lumiBlock)

Insert new Luminosity Block Number into a set.

Parameters
lumiBlock[IN] the Luminosity Block Number to be inserted.

Definition at line 70 of file EventStreamInfo.cxx.

70 {
71 m_lumiBlockNumbers.insert(lumiBlock);
72}

◆ insertProcessingTag()

void EventStreamInfo::insertProcessingTag ( const std::string & process)

Insert new Processing Tag into a set.

Parameters
process[IN] string with the Processing Tag to be inserted.

Definition at line 76 of file EventStreamInfo.cxx.

76 {
78}
const std::string process

◆ insertRunNumber()

void EventStreamInfo::insertRunNumber ( unsigned int run)

Insert new Run Number into a set.

Parameters
run[IN] the Run Number to be inserted.

Definition at line 64 of file EventStreamInfo.cxx.

64 {
65 m_runNumbers.insert(run);
66}

◆ operator=() [1/2]

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

◆ operator=() [2/2]

EventStreamInfo & EventStreamInfo::operator= ( EventStreamInfo && )
default

◆ print()

void EventStreamInfo::print ( MsgStream & log) const

Print a EventStreamInfo to the log file.

Definition at line 94 of file EventStreamInfo.cxx.

94 {
95 log << MSG::DEBUG << (*this) << endmsg;
96 return;
97}
#define endmsg

◆ reset()

void EventStreamInfo::reset ( )

Definition at line 132 of file EventStreamInfo.cxx.

132 {
134 m_runNumbers.clear();
135 m_lumiBlockNumbers.clear();
136 m_processingTags.clear();
137 m_itemList.clear();
138 m_eventTypes.clear();
139 return;
140}

◆ setNumberOfEvents()

void EventStreamInfo::setNumberOfEvents ( unsigned int number)

Set number of events.

Definition at line 58 of file EventStreamInfo.cxx.

58 {
60}

Member Data Documentation

◆ m_eventTypes

std::set<EventType> EventStreamInfo::m_eventTypes
private

Definition at line 88 of file EventStreamInfo.h.

◆ m_itemList

std::set<std::pair<CLID, std::string> > EventStreamInfo::m_itemList
private

Definition at line 87 of file EventStreamInfo.h.

◆ m_lumiBlockNumbers

std::set<unsigned int> EventStreamInfo::m_lumiBlockNumbers
private

Definition at line 85 of file EventStreamInfo.h.

◆ m_numberOfEvents

unsigned int EventStreamInfo::m_numberOfEvents
private

Definition at line 83 of file EventStreamInfo.h.

◆ m_processingTags

std::set<std::string> EventStreamInfo::m_processingTags
private

Definition at line 86 of file EventStreamInfo.h.

◆ m_runNumbers

std::set<unsigned int> EventStreamInfo::m_runNumbers
private

Definition at line 84 of file EventStreamInfo.h.


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