ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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. More...
 
virtual ~EventStreamInfo ()
 Destructor. More...
 
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. More...
 
void insertRunNumber (unsigned int run)
 Insert new Run Number into a set. More...
 
void insertLumiBlockNumber (unsigned int lumiBlock)
 Insert new Luminosity Block Number into a set. More...
 
void insertProcessingTag (const std::string &process)
 Insert new Processing Tag into a set. More...
 
void insertItemList (CLID type, const std::string &key)
 Insert new ItemList Entry into a set. More...
 
void insertEventType (const EventType &event)
 Insert new Event Type into a set. More...
 
void print (MsgStream &log) const
 Print a EventStreamInfo to the log file. More...
 

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()

EventStreamInfo::EventStreamInfo ( )
inline

Default Constructor.

Definition at line 82 of file EventStreamInfo.h.

82  : m_numberOfEvents(0),
83  m_runNumbers(),
86  m_itemList(),
87  m_eventTypes() {}

◆ ~EventStreamInfo()

EventStreamInfo::~EventStreamInfo ( )
inlinevirtual

Destructor.

Definition at line 88 of file EventStreamInfo.h.

88 {}

Member Function Documentation

◆ addEvent()

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

Increase Event Counter.

Definition at line 53 of file EventStreamInfo.cxx.

53  {
55 }

◆ 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 83 of file EventStreamInfo.cxx.

83  {
84  m_eventTypes.insert(event);
85 }

◆ 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 77 of file EventStreamInfo.cxx.

77  {
78  m_itemList.insert(std::pair<CLID, std::string>(type, key));
79 }

◆ 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 65 of file EventStreamInfo.cxx.

65  {
67 }

◆ 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 71 of file EventStreamInfo.cxx.

71  {
72  m_processingTags.insert(process);
73 }

◆ 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 59 of file EventStreamInfo.cxx.

59  {
60  m_runNumbers.insert(run);
61 }

◆ print()

void EventStreamInfo::print ( MsgStream &  log) const

Print a EventStreamInfo to the log file.

Definition at line 89 of file EventStreamInfo.cxx.

89  {
90  log << MSG::DEBUG << (*this) << endmsg;
91  return;
92 }

Member Data Documentation

◆ m_eventTypes

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

Definition at line 77 of file EventStreamInfo.h.

◆ m_itemList

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

Definition at line 76 of file EventStreamInfo.h.

◆ m_lumiBlockNumbers

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

Definition at line 74 of file EventStreamInfo.h.

◆ m_numberOfEvents

unsigned int EventStreamInfo::m_numberOfEvents
private

Definition at line 72 of file EventStreamInfo.h.

◆ m_processingTags

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

Definition at line 75 of file EventStreamInfo.h.

◆ m_runNumbers

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

Definition at line 73 of file EventStreamInfo.h.


The documentation for this class was generated from the following files:
EventStreamInfo::m_processingTags
std::set< std::string > m_processingTags
Definition: EventStreamInfo.h:75
EventStreamInfo::m_runNumbers
std::set< unsigned int > m_runNumbers
Definition: EventStreamInfo.h:73
SUSY_SimplifiedModel_PostInclude.process
string process
Definition: SUSY_SimplifiedModel_PostInclude.py:42
EventStreamInfo::m_eventTypes
std::set< EventType > m_eventTypes
Definition: EventStreamInfo.h:77
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
run
Definition: run.py:1
EventStreamInfo::m_lumiBlockNumbers
std::set< unsigned int > m_lumiBlockNumbers
Definition: EventStreamInfo.h:74
EventStreamInfo::m_itemList
std::set< std::pair< CLID, std::string > > m_itemList
Definition: EventStreamInfo.h:76
python.selection.number
number
Definition: selection.py:20
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
EventStreamInfo::m_numberOfEvents
unsigned int m_numberOfEvents
Definition: EventStreamInfo.h:72
xAOD::lumiBlock
setTeId lumiBlock
Definition: L2StandAloneMuon_v1.cxx:327
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37