All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MyTrack Class Reference

#include <src/Test/MyTrack.h>

Inheritance diagram for MyTrack:
Collaboration diagram for MyTrack:

Public Member Functions

 MyTrack ()
 Standard constructor.
 
 MyTrack (float x, float y, float z)
 Standard constructor.
 
virtual ~MyTrack ()
 Standard Destructor.
 
virtual const CLIDclID () const
 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.
 
float pz () const
 Accessors: Retrieve z-component of the track momentum.
 
void setPx (float px)
 Accessors: Update x-component of the track momentum.
 
void setPy (float py)
 Accessors: Update y-component of the track momentum.
 
void setPz (float pz)
 Accessors: Update z-component of the track momentum.
 
const Eventevent () const
 Access to the source track object (constant case)
 
void setEvent (Event *evt)
 Access to event object.
 
const MyVertexdecayVertex () const
 Access to the source track object (constant case)
 
void setDecayVertex (MyVertex *decay)
 Access to event object.
 
std::ostream & fillStream (std::ostream &s) const
 Fill the output stream (ASCII)
 
- Public Member Functions inherited from KeyedObject< int >
 KeyedObject ()
 Standard Constructor. The object key is preset to the invalid value.
 
 KeyedObject (const key_type &kval)
 Standard Constructor accepting the object's key.
 
 KeyedObject ()
 Standard Constructor. The object key is preset to the invalid value.
 
 KeyedObject (const key_type &kval)
 Standard Constructor accepting the object's key.
 
virtual ~KeyedObject ()
 Standard destructor.
 
virtual ~KeyedObject ()
 Standard destructor.
 
const key_typekey () const
 Retrieve Key of the object.
 
const key_typekey () const
 Retrieve Key of the object.
 
bool hasKey () const
 Check if the object has a key assigned or not.
 
bool hasKey () const
 Check if the object has a key assigned or not.
 
virtual long index () const
 Distance in the parent container.
 
virtual long index () const
 Distance in the parent container.
 
virtual StreamBufferserialize (StreamBuffer &s) const
 Serialize the object for writing.
 
virtual StreamBufferserialize (StreamBuffer &s)
 Serialize the object for reading.
 
virtual StreamBufferserialize (StreamBuffer &s) const
 Serialize the object for writing.
 
virtual StreamBufferserialize (StreamBuffer &s)
 Serialize the object for reading.
 
- Public Member Functions inherited from ContainedObject
const ObjectContainerBaseparent () const
 Access to parent object.
 
void setParent (ObjectContainerBase *value)
 Update parent member.
 
const ObjectContainerBaseparent () const
 Access to parent object.
 
void setParent (ObjectContainerBase *value)
 Update parent member.
 

Static Public Member Functions

static const CLIDclassID ()
 

Private Attributes

float m_px
 The track momentum.
 
float m_py
 
float m_pz
 
SmartRef< Eventm_event
 Link to Top level event.
 
SmartRef< MyVertexm_decay
 

Additional Inherited Members

- Public Types inherited from KeyedObject< int >
typedef int key_type
 Definition of the key-type to access object.
 
typedef int key_type
 Definition of the key-type to access object.
 
- Protected Types inherited from KeyedObject< int >
typedef Containers::key_traits
< key_type
traits
 definition of the container key traits to be made friend
 
typedef Containers::key_traits
< key_type
traits
 definition of the container key traits to be made friend
 
- Protected Member Functions inherited from KeyedObject< int >
unsigned long addRef ()
 Add reference to object (Increase reference counter).
 
unsigned long addRef ()
 Add reference to object (Increase reference counter).
 
unsigned long release ()
 Release reference. If the reference count is ZERO, delete the object.
 
unsigned long release ()
 Release reference. If the reference count is ZERO, delete the object.
 
void setKey (const key_type &key)
 Set object key.
 
void setKey (const key_type &key)
 Set object key.
 
- Protected Attributes inherited from KeyedObject< int >
key_type m_key
 Object Key; It's initial value is not determined.
 
long m_refCount
 Reference counter.
 
bool m_hasKey
 Boolean to indicate wether a key was already assigned.
 

Detailed Description

Definition at line 27 of file MyTrack.h.

Constructor & Destructor Documentation

MyTrack::MyTrack ( )
inline

Standard constructor.

Definition at line 36 of file MyTrack.h.

: m_px(0.0), m_py(0.0), m_pz(0.0) {
}
MyTrack::MyTrack ( float  x,
float  y,
float  z 
)
inline

Standard constructor.

Definition at line 39 of file MyTrack.h.

: m_px(x), m_py(y), m_pz(z) {
}
virtual MyTrack::~MyTrack ( )
inlinevirtual

Standard Destructor.

Definition at line 42 of file MyTrack.h.

{
}

Member Function Documentation

static const CLID& MyTrack::classID ( )
inlinestatic

Definition at line 46 of file MyTrack.h.

{ return CLID_MyTrack; }
virtual const CLID& MyTrack::clID ( ) const
inlinevirtual

Retrieve pointer to class definition structure.

Reimplemented from ContainedObject.

Definition at line 45 of file MyTrack.h.

{ return classID(); }
const MyVertex * MyTrack::decayVertex ( ) const
inline

Access to the source track object (constant case)

Definition at line 85 of file MyTrack.h.

{
return m_decay;
}
const Event* MyTrack::event ( ) const
inline

Access to the source track object (constant case)

Definition at line 61 of file MyTrack.h.

{
return m_event;
}
std::ostream& MyTrack::fillStream ( std::ostream &  s) const
inlinevirtual

Fill the output stream (ASCII)

Reimplemented from ContainedObject.

Definition at line 75 of file MyTrack.h.

{
s << "px: " << px() << "py: " << py() << "px: " << pz();
return s;
}
float MyTrack::px ( ) const
inline

Accessors: Retrieve x-component of the track momentum.

Definition at line 48 of file MyTrack.h.

{ return m_px; }
float MyTrack::py ( ) const
inline

Accessors: Retrieve y-component of the track momentum.

Definition at line 50 of file MyTrack.h.

{ return m_py; }
float MyTrack::pz ( ) const
inline

Accessors: Retrieve z-component of the track momentum.

Definition at line 52 of file MyTrack.h.

{ return m_pz; }
void MyTrack::setDecayVertex ( MyVertex decay)
inline

Access to event object.

Definition at line 90 of file MyTrack.h.

{
m_decay = decay;
}
void MyTrack::setEvent ( Event evt)
inline

Access to event object.

Definition at line 65 of file MyTrack.h.

{
}
void MyTrack::setPx ( float  px)
inline

Accessors: Update x-component of the track momentum.

Definition at line 54 of file MyTrack.h.

{ m_px = px; }
void MyTrack::setPy ( float  py)
inline

Accessors: Update y-component of the track momentum.

Definition at line 56 of file MyTrack.h.

{ m_py = py; }
void MyTrack::setPz ( float  pz)
inline

Accessors: Update z-component of the track momentum.

Definition at line 58 of file MyTrack.h.

{ m_pz = pz; }

Member Data Documentation

SmartRef<MyVertex> MyTrack::m_decay
private

Definition at line 33 of file MyTrack.h.

SmartRef<Event> MyTrack::m_event
private

Link to Top level event.

Definition at line 32 of file MyTrack.h.

float MyTrack::m_px
private

The track momentum.

Definition at line 30 of file MyTrack.h.

float MyTrack::m_py
private

Definition at line 30 of file MyTrack.h.

float MyTrack::m_pz
private

Definition at line 30 of file MyTrack.h.


The documentation for this class was generated from the following file: