![]() |
The Gaudi Framework
master (ff829712)
|
Simple class that represents a vertex for testing purposes. More...
#include </builds/gaudi/Gaudi/GaudiTestSuite/include/GaudiTestSuite/MyVertex.h>
Public Member Functions | |
MyVertex () | |
Standard constructor. | |
MyVertex (float x, float y, float z) | |
Standard constructor. | |
~MyVertex () override | |
Standard Destructor. | |
const CLID & | clID () const override |
Retrieve pointer to class definition structure. | |
float | x () const |
Accessors: Retrieve x-component of the track momentum. | |
float | y () const |
Accessors: Retrieve y-component of the track momentum. | |
float | z () const |
Accessors: Retrieve z-component of the track momentum. | |
void | setX (float x) |
Accessors: Update x-component of the track momentum. | |
void | setY (float y) |
Accessors: Update y-component of the track momentum. | |
void | setZ (float z) |
Accessors: Update z-component of the track momentum. | |
const Event * | event () const |
Access to the source track object (constant case) | |
void | setEvent (Event *evt) |
Access to event object. | |
const MyTrack * | motherParticle () const |
Mother track. | |
void | setMotherParticle (MyTrack *mother) |
Set mother track. | |
const SmartRefVector< MyTrack > & | decayParticles () const |
Access to decay particles. | |
void | addDecayParticle (MyTrack *track) |
Add decay particle. | |
void | removeDecayParticle (MyTrack *vtx) |
Remove decay vertex. | |
const SmartRefVector< Collision > & | collisions () const |
Access to collisions. | |
void | addCollision (Collision *vtx) |
Add collision. | |
void | removeCollision (Collision *vtx) |
Remove collision. | |
StreamBuffer & | serialize (StreamBuffer &s) const override |
Serialize the object for writing. | |
StreamBuffer & | serialize (StreamBuffer &s) override |
Serialize the object for reading. | |
![]() | |
KeyedObject ()=default | |
Standard Constructor. The object key is preset to the invalid value. | |
KeyedObject (const key_type &kval) | |
Standard Constructor accepting the object's key. | |
~KeyedObject () override | |
Standard destructor. | |
const key_type & | key () const |
Retrieve Key of the object. | |
bool | hasKey () const |
Check if the object has a key assigned or not. | |
long | index () const override |
Distance in the parent container. | |
![]() | |
const ObjectContainerBase * | parent () const |
Access to parent object. | |
void | setParent (ObjectContainerBase *value) |
Update parent member. | |
virtual std::ostream & | fillStream (std::ostream &s) const |
Fill the output stream (ASCII) | |
Static Public Member Functions | |
static const CLID & | classID () |
![]() | |
static const CLID & | classID () |
Protected Attributes | |
float | m_x |
The vertex location. | |
float | m_y |
float | m_z |
SmartRef< Event > | m_event |
Link to Top level event. | |
SmartRef< MyTrack > | m_motherParticle |
Link to mother track. | |
SmartRefVector< MyTrack > | m_decayParticles |
Links to all daughter particles. | |
SmartRefVector< Collision > | m_collisions |
Vector of collisions this object belongs to. | |
![]() | |
key_type | m_key |
Object Key. | |
long | m_refCount |
Reference counter. | |
bool | m_hasKey |
Boolean to indicate wether a key was already assigned. | |
Additional Inherited Members | |
![]() | |
typedef int | key_type |
Definition of the key-type to access object. | |
![]() | |
typedef Containers::key_traits< key_type > | traits |
definition of the container key traits to be made friend | |
![]() | |
unsigned long | addRef () |
Add reference to object (Increase reference counter). | |
unsigned long | release () |
Release reference. If the reference count is ZERO, delete the object. | |
void | setKey (const key_type &key) |
Set object key. | |
![]() | |
ContainedObject ()=default | |
Constructors. | |
ContainedObject (const ContainedObject &) | |
Copy constructor and assignement: do NOT copy the parent reference... | |
ContainedObject & | operator= (const ContainedObject &) |
virtual | ~ContainedObject () |
Destructor. | |
Simple class that represents a vertex for testing purposes.
Definition at line 33 of file MyVertex.h.
MyVertex::MyVertex | ( | ) |
MyVertex::MyVertex | ( | float | x, |
float | y, | ||
float | z ) |
Standard constructor.
Definition at line 30 of file MyVertex.cpp.
|
override |
|
inline |
Add collision.
Add decay vertex.
Definition at line 133 of file MyVertex.h.
|
inline |
Add decay particle.
Add decay vertex.
Definition at line 116 of file MyVertex.h.
|
inlinestatic |
Definition at line 55 of file MyVertex.h.
|
inlineoverridevirtual |
Retrieve pointer to class definition structure.
Reimplemented from ContainedObject.
Definition at line 54 of file MyVertex.h.
|
inline |
|
inline |
|
inline |
Access to the source track object (constant case)
Definition at line 70 of file MyVertex.h.
|
inline |
Mother track.
Mother particle.
Definition at line 107 of file MyVertex.h.
|
inline |
Remove collision.
Remove decay vertex.
Definition at line 136 of file MyVertex.h.
|
inline |
Remove decay vertex.
Definition at line 119 of file MyVertex.h.
|
inlineoverridevirtual |
Serialize the object for writing.
Reimplemented from KeyedObject< int >.
Definition at line 36 of file MyVertex.cpp.
|
inlineoverridevirtual |
Serialize the object for reading.
Reimplemented from KeyedObject< int >.
Definition at line 47 of file MyVertex.cpp.
|
inline |
|
inline |
Set mother track.
Set origin vertex.
Definition at line 110 of file MyVertex.h.
|
inline |
Accessors: Update x-component of the track momentum.
Definition at line 63 of file MyVertex.h.
|
inline |
Accessors: Update y-component of the track momentum.
Definition at line 65 of file MyVertex.h.
|
inline |
Accessors: Update z-component of the track momentum.
Definition at line 67 of file MyVertex.h.
|
inline |
|
inline |
|
inline |
|
protected |
Vector of collisions this object belongs to.
Definition at line 44 of file MyVertex.h.
|
protected |
Links to all daughter particles.
Definition at line 42 of file MyVertex.h.
Link to Top level event.
Definition at line 38 of file MyVertex.h.
Link to mother track.
Definition at line 40 of file MyVertex.h.
|
protected |
The vertex location.
Definition at line 36 of file MyVertex.h.
|
protected |
Definition at line 36 of file MyVertex.h.
|
protected |
Definition at line 36 of file MyVertex.h.