All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Event Class Reference

Essential information of the event used in examples It can be identified by "/Event". More...

#include <src/Test/Event.h>

Inheritance diagram for Event:
Collaboration diagram for Event:

Public Member Functions

 Event ()
 Constructors. More...
 
virtual ~Event ()
 Destructor. More...
 
virtual const CLIDclID () const
 Retrieve reference to class definition structure. More...
 
long event () const
 Retrieve event number. More...
 
void setEvent (long value)
 Update event number. More...
 
long run () const
 Retrieve run number. More...
 
void setRun (long value)
 Update run number. More...
 
const Gaudi::Timetime () const
 Retrieve reference to event time stamp. More...
 
void setTime (const Gaudi::Time &value)
 Update reference to event time stamp. More...
 
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the output stream (ASCII) More...
 
- Public Member Functions inherited from DataObject
 DataObject ()
 Standard Constructor. More...
 
 DataObject (const DataObject &)
 Copy Constructor. More...
 
virtual ~DataObject ()
 Standard Destructor. More...
 
virtual unsigned long addRef ()
 Add reference to object. More...
 
virtual unsigned long release ()
 release reference to object More...
 
const std::string & name () const
 Retreive DataObject name. It is the name when registered in the store. More...
 
virtual StatusCode update ()
 Provide empty placeholder for internal object reconfiguration callback. More...
 
void setRegistry (IRegistry *pRegistry)
 Set pointer to Registry. More...
 
IRegistryregistry () const
 Get pointer to Registry. More...
 
LinkManagerlinkMgr () const
 Retrieve Link manager. More...
 
unsigned char version () const
 Retrieve version number of this object representation. More...
 
void setVersion (unsigned char vsn)
 Set version number of this object representation. More...
 
unsigned long refCount () const
 Return the refcount. More...
 

Static Public Member Functions

static const CLIDclassID ()
 
- Static Public Member Functions inherited from DataObject
static const CLIDclassID ()
 Retrieve reference to class definition structure (static access) More...
 

Private Attributes

long m_event
 Event number. More...
 
long m_run
 Run number. More...
 
Gaudi::Time m_time
 Time stamp. More...
 

Friends

std::ostream & operator<< (std::ostream &s, const Event &obj)
 Output operator (ASCII) More...
 

Detailed Description

Essential information of the event used in examples It can be identified by "/Event".

Author
Pavel Binko

Definition at line 24 of file Event.h.

Constructor & Destructor Documentation

Event::Event ( )
inline

Constructors.

Definition at line 28 of file Event.h.

28 : DataObject(), m_event(0), m_run(0) { }
long m_event
Event number.
Definition: Event.h:60
long m_run
Run number.
Definition: Event.h:62
DataObject()
Standard Constructor.
Definition: DataObject.cpp:15
virtual Event::~Event ( )
inlinevirtual

Destructor.

Definition at line 30 of file Event.h.

30 { }

Member Function Documentation

static const CLID& Event::classID ( )
inlinestatic

Definition at line 34 of file Event.h.

34 { return CLID_Event; }
virtual const CLID& Event::clID ( ) const
inlinevirtual

Retrieve reference to class definition structure.

Reimplemented from DataObject.

Definition at line 33 of file Event.h.

33 { return classID(); }
static const CLID & classID()
Definition: Event.h:34
long Event::event ( ) const
inline

Retrieve event number.

Definition at line 37 of file Event.h.

37 { return m_event; }
long m_event
Event number.
Definition: Event.h:60
std::ostream & Event::fillStream ( std::ostream &  s) const
inlinevirtual

Fill the output stream (ASCII)

Reimplemented from DataObject.

Definition at line 68 of file Event.h.

68  {
69  return s
70  << "class Event :"
71  << "\n Event number = "
72  << std::setw(12)
73  << m_event
74  << "\n Run number = "
75  << std::setw(12)
76  << m_run
77  << "\n Time = " << m_time;
78 }
Gaudi::Time m_time
Time stamp.
Definition: Event.h:64
long m_event
Event number.
Definition: Event.h:60
long m_run
Run number.
Definition: Event.h:62
string s
Definition: gaudirun.py:210
long Event::run ( ) const
inline

Retrieve run number.

Definition at line 42 of file Event.h.

42 { return m_run; }
long m_run
Run number.
Definition: Event.h:62
void Event::setEvent ( long  value)
inline

Update event number.

Definition at line 39 of file Event.h.

39 { m_event = value; }
long m_event
Event number.
Definition: Event.h:60
void Event::setRun ( long  value)
inline

Update run number.

Definition at line 44 of file Event.h.

44 { m_run = value; }
long m_run
Run number.
Definition: Event.h:62
void Event::setTime ( const Gaudi::Time value)
inline

Update reference to event time stamp.

Definition at line 49 of file Event.h.

49 { m_time = value; }
Gaudi::Time m_time
Time stamp.
Definition: Event.h:64
const Gaudi::Time& Event::time ( ) const
inline

Retrieve reference to event time stamp.

Definition at line 47 of file Event.h.

47 { return m_time; }
Gaudi::Time m_time
Time stamp.
Definition: Event.h:64

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const Event obj 
)
friend

Output operator (ASCII)

Definition at line 52 of file Event.h.

52  {
53  return obj.fillStream(s);
54  }
virtual std::ostream & fillStream(std::ostream &s) const
Fill the output stream (ASCII)
Definition: Event.h:68
string s
Definition: gaudirun.py:210

Member Data Documentation

long Event::m_event
private

Event number.

Definition at line 60 of file Event.h.

long Event::m_run
private

Run number.

Definition at line 62 of file Event.h.

Gaudi::Time Event::m_time
private

Time stamp.

Definition at line 64 of file Event.h.


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