29 static const CLID& CLID_MyTrack = 1355;
51 typedef std::vector<MyTrack*>
Vector;
78 MyTrack(
float x,
float y,
float z );
103 const MyVertex* originVertex()
const;
106 void setOriginVertex(
MyVertex* origin );
112 void addDecayVertex(
MyVertex* vtx );
115 void removeDecayVertex(
MyVertex* vtx );
151 SmartRefVector<MyVertex>::iterator i;
153 if ( i->target() == vtx ) {
unsigned int CLID
Class ID definition.
ContainedObject()=default
Constructors.
virtual StreamBuffer & serialize(StreamBuffer &s) const
Serialize the object for writing.
Essential information of the event used in examples It can be identified by "/Event".
SharedObjectsContainer< MyTrack > Selection
the type of selection
std::vector< MyTrack * > Vector
the type of plain vector
const CLID & clID() const override
Retrieve pointer to class definition structure.
SmartRefVector< MyVertex > m_decayVertices
Links to all decay vertices.
SmartRef< Event > m_event
Link to Top level event.
void removeDecayVertex(MyVertex *vtx)
Remove decay vertex.
float m_px
The track momentum.
KeyedContainer< MyTrack, Containers::HashMap > Container
the actual type of container in TES
void addDecayVertex(MyVertex *vtx)
Add decay vertex.
void setOriginVertex(MyVertex *origin)
Set origin vertex.
float px() const
Accessors: Retrieve x-component of the track momentum.
MyTrack()
Standard constructor.
const Event * event() const
Access to the source track object (constant case)
static const CLID & classID()
void setPx(float px)
Accessors: Update x-component of the track momentum.
float py() const
Accessors: Retrieve y-component of the track momentum.
void setPy(float py)
Accessors: Update y-component of the track momentum.
const SmartRefVector< MyVertex > & decayVertices() const
Access to decay vertices.
SmartRef< MyVertex > m_originVertex
Link to origin vertex.
StreamBuffer & serialize(StreamBuffer &s) const override
Serialize the object for writing.
void setEvent(Event *evt)
Access to event object.
float pz() const
Accessors: Retrieve z-component of the track momentum.
const MyVertex * originVertex() const
Origin vertex.
void setPz(float pz)
Accessors: Update z-component of the track momentum.
std::vector< const MyTrack * > ConstVector
the type of vector of const-pointers
Simple class that represents a vertex for testing purposes.
template class KeyedContainer, KeyedContainer.h
StreamBuffer & serialize(StreamBuffer &s) const override
Serialize the object for writing.
ObjectVector is one of the basic Gaudi container classes capable of being registered in Data Stores.
Very simple class to represent the container of objects which are not owned by this container.
Kernel objects: SmartRef.
Kernel objects: SmartRefVector.
The stream buffer is a small object collecting object data.
KeyedContainer< MyTrack > MyTrackVector
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...