16 struct InstanceCount {
18 InstanceCount() : count( 0 ) {}
20 if ( count ) std::cout <<
"Number of MyVertex instances:" << count << std::endl;
24static InstanceCount s_instances;
MyVertex()
Standard constructor.
float y() const
Accessors: Retrieve y-component of the track momentum.
SmartRef< Event > m_event
Link to Top level event.
float m_x
The vertex location.
float x() const
Accessors: Retrieve x-component of the track momentum.
~MyVertex() override
Standard Destructor.
float z() const
Accessors: Retrieve z-component of the track momentum.
StreamBuffer & serialize(StreamBuffer &s) const override
Serialize the object for writing.
SmartRefVector< MyTrack > m_decayParticles
Links to all daughter particles.
SmartRefVector< Collision > m_collisions
Vector of collisions this object belongs to.
SmartRef< MyTrack > m_motherParticle
Link to mother track.
StreamBuffer & serialize(StreamBuffer &s) const override
Serialize the object for writing.
The stream buffer is a small object collecting object data.