Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 setNumberOfEvents (unsigned int number)
 Set number of events. 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...
 
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()

EventStreamInfo::EventStreamInfo ( )
inline

Default Constructor.

Definition at line 86 of file EventStreamInfo.h.

86  : m_numberOfEvents(0),
87  m_runNumbers(),
90  m_itemList(),
91  m_eventTypes() {}

◆ ~EventStreamInfo()

EventStreamInfo::~EventStreamInfo ( )
inlinevirtual

Destructor.

Definition at line 92 of file EventStreamInfo.h.

92 {}

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 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  {
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  {
77  m_processingTags.insert(process);
78 }

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

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

◆ reset()

void EventStreamInfo::reset ( )

Definition at line 132 of file EventStreamInfo.cxx.

132  {
133  m_numberOfEvents = 0;
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 81 of file EventStreamInfo.h.

◆ m_itemList

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

Definition at line 80 of file EventStreamInfo.h.

◆ m_lumiBlockNumbers

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

Definition at line 78 of file EventStreamInfo.h.

◆ m_numberOfEvents

unsigned int EventStreamInfo::m_numberOfEvents
private

Definition at line 76 of file EventStreamInfo.h.

◆ m_processingTags

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

Definition at line 79 of file EventStreamInfo.h.

◆ m_runNumbers

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

Definition at line 77 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:79
EventStreamInfo::m_runNumbers
std::set< unsigned int > m_runNumbers
Definition: EventStreamInfo.h:77
SUSY_SimplifiedModel_PostInclude.process
string process
Definition: SUSY_SimplifiedModel_PostInclude.py:42
python.CaloAddPedShiftConfig.type
type
Definition: CaloAddPedShiftConfig.py:42
EventStreamInfo::m_eventTypes
std::set< EventType > m_eventTypes
Definition: EventStreamInfo.h:81
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:78
EventStreamInfo::m_itemList
std::set< std::pair< CLID, std::string > > m_itemList
Definition: EventStreamInfo.h:80
python.selection.number
number
Definition: selection.py:20
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:76
xAOD::lumiBlock
setTeId lumiBlock
Definition: L2StandAloneMuon_v1.cxx:327
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37