2 #ifndef GAUDIEXAMPLES_MYTRACK_H
3 #define GAUDIEXAMPLES_MYTRACK_H
17 static const CLID& CLID_MyTrack = 9999;
76 s <<
"px: " <<
px() <<
"py: " <<
py() <<
"px: " <<
pz();
97 #endif // RIO_EXAMPLE1_MYTRACK_H
const Event * event() const
Access to the source track object (constant case)
SmartRef< MyVertex > m_decay
Essential information of the event used in examples It can be identified by "/Event".
Definition of the templated KeyedObject class.
void setDecayVertex(MyVertex *decay)
Access to event object.
void setPz(float pz)
Accessors: Update z-component of the track momentum.
float py() const
Accessors: Retrieve y-component of the track momentum.
void setEvent(Event *evt)
Access to event object.
void setPy(float py)
Accessors: Update y-component of the track momentum.
float px() const
Accessors: Retrieve x-component of the track momentum.
std::ostream & fillStream(std::ostream &s) const
Fill the output stream (ASCII)
static const CLID & classID()
float pz() const
Accessors: Retrieve z-component of the track momentum.
unsigned int CLID
Class ID definition.
MyTrack(float x, float y, float z)
Standard constructor.
Simple class that represents a vertex for testing purposes.
void setPx(float px)
Accessors: Update x-component of the track momentum.
virtual ~MyTrack()
Standard Destructor.
const MyVertex * decayVertex() const
Access to the source track object (constant case)
float m_px
The track momentum.
MyTrack()
Standard constructor.
virtual const CLID & clID() const
Retrieve pointer to class definition structure.
SmartRef< Event > m_event
Link to Top level event.
KeyedContainer< MyTrack > MyTrackVector