Go to the documentation of this file.
11 #ifndef GAUDIEXAMPLES_EVENT_H
12 #define GAUDIEXAMPLES_EVENT_H 1
28 static const CLID& CLID_Event = 110;
46 const CLID&
clID()
const override {
return classID(); }
50 int event()
const {
return m_event; }
52 void setEvent(
int value ) { m_event = value; }
55 int run()
const {
return m_run; }
57 void setRun(
int value ) { m_run = value; }
116 return s <<
"class Event :"
130 if ( i->target() ==
c ) {
141 #endif // GAUDIEXAMPLES_EVENT_H
int event() const
Retrieve event number.
Kernel objects: SmartRefVector.
void addCollision(Collision *vtx)
Add collision.
void removeCollision(Collision *vtx)
Remove collision.
std::ostream & operator<<(std::ostream &s, const Event &obj)
Output operator (ASCII)
Gaudi::Time m_time
Time stamp.
std::ostream & fillStream(std::ostream &s) const override
Fill the output stream (ASCII)
unsigned int CLID
Class ID definition.
int run() const
Retrieve run number.
const SmartRefVector< Collision > & collisions() const
Access to collisions.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
const Gaudi::Time & time() const
Retrieve reference to event time stamp.
void setTime(const Gaudi::Time &value)
Update reference to event time stamp.
virtual StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.
Kernel objects: SmartRef.
SmartRefVector< Collision > m_collisions
Vector of collisions this object belongs to.
const CLID & clID() const override
Retrieve reference to class definition structure.
static const CLID & classID()
void setEvent(int value)
Update event number.
void setRun(int value)
Update run number.