Go to the documentation of this file.
11 #ifndef GAUDIPOOLDB_TEST_MYVERTEX_H
12 #define GAUDIPOOLDB_TEST_MYVERTEX_H
28 static const CLID& CLID_MyVertex = 356;
53 MyVertex(
float x,
float y,
float z );
57 const CLID&
clID()
const override {
return classID(); }
60 float x()
const {
return m_x; }
62 float y()
const {
return m_y; }
64 float z()
const {
return m_z; }
66 void setX(
float x ) { m_x = x; }
68 void setY(
float y ) { m_y = y; }
70 void setZ(
float z ) { m_z = z; }
77 const MyTrack* motherParticle()
const;
80 void setMotherParticle(
MyTrack* mother );
86 void addDecayParticle(
MyTrack* track );
89 void removeDecayParticle(
MyTrack* vtx );
125 if ( i->target() == p ) {
142 if ( i->target() ==
c ) {
151 #endif // GAUDIPOOLDB_TEST_MYTRACK_H
const CLID & clID() const override
Retrieve pointer to class definition structure.
Kernel objects: SmartRefVector.
void setEvent(Event *evt)
Access to event object.
void addDecayParticle(MyTrack *track)
Add decay particle.
void removeDecayParticle(MyTrack *vtx)
Remove decay vertex.
float y() const
Accessors: Retrieve y-component of the track momentum.
const MyTrack * motherParticle() const
Mother track.
SmartRef< MyTrack > m_motherParticle
Link to mother track.
void setX(float x)
Accessors: Update x-component of the track momentum.
static const CLID & classID()
SmartRefVector< MyTrack > m_decayParticles
Links to all daughter particles.
void addCollision(Collision *vtx)
Add collision.
const SmartRefVector< MyTrack > & decayParticles() const
Access to decay particles.
const SmartRefVector< Collision > & collisions() const
Access to collisions.
void setZ(float z)
Accessors: Update z-component of the track momentum.
SmartRefVector< Collision > m_collisions
Vector of collisions this object belongs to.
template class KeyedContainer, KeyedContainer.h
unsigned int CLID
Class ID definition.
Definition of the templated KeyedObject class.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
float z() const
Accessors: Retrieve z-component of the track momentum.
float x() const
Accessors: Retrieve x-component of the track momentum.
const Event * event() const
Access to the source track object (constant case)
void setMotherParticle(MyTrack *mother)
Set mother track.
SmartRef< Event > m_event
Link to Top level event.
Kernel objects: SmartRef.
void setY(float y)
Accessors: Update y-component of the track momentum.
void removeCollision(Collision *vtx)
Remove collision.
KeyedContainer< MyVertex > MyVertexVector