2 #ifndef GAUDIEXAMPLES_MYVERTEX_H
3 #define GAUDIEXAMPLES_MYVERTEX_H
16 static const CLID& CLID_MyVertex = 9998;
45 double x()
const {
return m_x; }
47 double y()
const {
return m_y; }
49 double z()
const {
return m_z; }
98 #endif // RIO_EXAMPLE1_MYTRACK_H
const MyTrack * motherTrack() const
Retrieve pointer to mother particle (const or non-const)
double y() const
Accessors: Retrieve y-position.
SmartRef< MyTrack > m_mother
Link to Top level event.
double m_x
The track momentum.
Definition of the templated KeyedObject class.
MyVertex(double x, double y, double z)
Standard constructor.
The stream buffer is a small object collecting object data.
void setMotherTrack(MyTrack *value)
Update pointer to mother particle (by a C++ pointer or a smart reference)
virtual ~MyVertex()
Standard Destructor.
MyVertex()
Standard constructor.
static const CLID & classID()
virtual StreamBuffer & serialize(StreamBuffer &s)
Input streamer.
void setX(double x)
Accessors: Update x-position.
KeyedContainer< MyVertex > MyVertexVector
SmartRefVector< MyTrack > m_daughters
void addDaughterTrack(MyTrack *value)
Retrieve pointer to vector of daughter particles (const or non-const)
unsigned int CLID
Class ID definition.
void setZ(double z)
Accessors: Update z-position.
Simple class that represents a vertex for testing purposes.
void setY(double y)
Accessors: Update y-position.
double x() const
Accessors: Retrieve x-position.
double z() const
Accessors: Retrieve z-position.
virtual const CLID & clID() const
Retrieve pointer to class definition structure.