Go to the documentation of this file.
12 #ifndef GAUDIPOOLDB_TEST_MYTRACK_H
13 #define GAUDIPOOLDB_TEST_MYTRACK_H
37 static const CLID& CLID_MyTrack = 355;
86 MyTrack(
float x,
float y,
float z );
91 const CLID&
clID()
const override {
return classID(); }
94 float px()
const {
return m_px; }
96 float py()
const {
return m_py; }
98 float pz()
const {
return m_pz; }
100 void setPx(
float px ) { m_px = px; }
102 void setPy(
float py ) { m_py = py; }
104 void setPz(
float pz ) { m_pz = pz; }
111 const MyVertex* originVertex()
const;
114 void setOriginVertex(
MyVertex* origin );
120 void addDecayVertex(
MyVertex* vtx );
123 void removeDecayVertex(
MyVertex* vtx );
161 if ( i->target() == vtx ) {
190 #endif // GAUDIPOOLDB_TEST_MYTRACK_H
StreamBuffer & serialize(StreamBuffer &s) const override
Serialize the object for writing.
const MyVertex * originVertex() const
Origin vertex.
float m_px
The track momentum.
Kernel objects: SmartRefVector.
const Event * event() const
Access to the source track object (constant case)
KeyedContainer< MyTrack > MyTrackVector
SmartRefVector< MyVertex > m_decayVertices
Links to all decay vertices.
const SmartRefVector< MyVertex > & decayVertices() const
Access to decay vertices.
SmartRef< Event > m_event
Link to Top level event.
float pz() const
Accessors: Retrieve z-component of the track momentum.
void setPz(float pz)
Accessors: Update z-component of the track momentum.
static const CLID & classID()
StreamBuffer & serialize(StreamBuffer &s) const override
Serialize the object for writing.
SharedObjectsContainer< MyTrack > Selection
the type of selection
void addDecayVertex(MyVertex *vtx)
Add decay vertex.
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...
void removeDecayVertex(MyVertex *vtx)
Remove decay vertex.
void setOriginVertex(MyVertex *origin)
Set origin vertex.
void setEvent(Event *evt)
Access to event object.
void setPy(float py)
Accessors: Update y-component of the track momentum.
void setPx(float px)
Accessors: Update x-component of the track momentum.
SmartRef< MyVertex > m_originVertex
Link to origin vertex.
std::vector< MyTrack * > Vector
the type of plain vector
Kernel objects: SmartRef.
const CLID & clID() const override
Retrieve pointer to class definition structure.
float px() const
Accessors: Retrieve x-component of the track momentum.
float py() const
Accessors: Retrieve y-component of the track momentum.
std::vector< const MyTrack * > ConstVector
the type of vector of const-pointers
virtual StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.