Go to the documentation of this file.
29 static const CLID& CLID_MyTrack = 1355;
78 MyTrack(
float x,
float y,
float z );
83 const CLID&
clID()
const override {
return classID(); }
86 float px()
const {
return m_px; }
88 float py()
const {
return m_py; }
90 float pz()
const {
return m_pz; }
92 void setPx(
float px ) { m_px = px; }
94 void setPy(
float py ) { m_py = py; }
96 void setPz(
float pz ) { m_pz = pz; }
103 const MyVertex* originVertex()
const;
106 void setOriginVertex(
MyVertex* origin );
112 void addDecayVertex(
MyVertex* vtx );
115 void removeDecayVertex(
MyVertex* vtx );
153 if ( i->target() == vtx ) {
StreamBuffer & serialize(StreamBuffer &s) const override
Serialize the object for writing.
const Event * event() const
Access to the source track object (constant case)
Kernel objects: SmartRefVector.
float px() const
Accessors: Retrieve x-component of the track momentum.
const MyVertex * originVertex() const
Origin vertex.
void setOriginVertex(MyVertex *origin)
Set origin vertex.
void setPz(float pz)
Accessors: Update z-component of the track momentum.
float pz() const
Accessors: Retrieve z-component of the track momentum.
template class KeyedContainer, KeyedContainer.h
std::vector< MyTrack * > Vector
the type of plain vector
unsigned int CLID
Class ID definition.
Definition of the templated KeyedObject class.
void setPy(float py)
Accessors: Update y-component of the track momentum.
const CLID & clID() const override
Retrieve pointer to class definition structure.
static const CLID & classID()
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
void setEvent(Event *evt)
Access to event object.
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.
KeyedContainer< MyTrack > MyTrackVector
SmartRef< MyVertex > m_originVertex
Link to origin vertex.
std::vector< const MyTrack * > ConstVector
the type of vector of const-pointers
void addDecayVertex(MyVertex *vtx)
Add decay vertex.
Kernel objects: SmartRef.
SharedObjectsContainer< MyTrack > Selection
the type of selection
float py() const
Accessors: Retrieve y-component of the track momentum.
float m_px
The track momentum.
StreamBuffer & serialize(StreamBuffer &s) const override
Serialize the object for writing.
void removeDecayVertex(MyVertex *vtx)
Remove decay vertex.
void setPx(float px)
Accessors: Update x-component of the track momentum.
virtual StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.