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

Static Public Member Functions

static const CLIDclassID ()
 
- Static Public Member Functions inherited from ContainedObject
static const CLIDclassID ()
 

Private Attributes

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

Additional Inherited Members

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

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.

36  : m_px(0.0), m_py(0.0), m_pz(0.0) {
37  }
float m_py
Definition: MyTrack.h:30
float m_pz
Definition: MyTrack.h:30
float m_px
The track momentum.
Definition: MyTrack.h:30
MyTrack::MyTrack ( float  x,
float  y,
float  z 
)
inline

Standard constructor.

Definition at line 39 of file MyTrack.h.

39  : m_px(x), m_py(y), m_pz(z) {
40  }
float m_py
Definition: MyTrack.h:30
float m_pz
Definition: MyTrack.h:30
float m_px
The track momentum.
Definition: MyTrack.h:30
virtual MyTrack::~MyTrack ( )
inlinevirtual

Standard Destructor.

Definition at line 42 of file MyTrack.h.

42  {
43  }

Member Function Documentation

static const CLID& MyTrack::classID ( )
inlinestatic

Definition at line 46 of file MyTrack.h.

46 { 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.

45 { return classID(); }
static const CLID & classID()
Definition: MyTrack.h:46
const MyVertex * MyTrack::decayVertex ( ) const
inline

Access to the source track object (constant case)

Definition at line 85 of file MyTrack.h.

85  {
86  return m_decay;
87 }
SmartRef< MyVertex > m_decay
Definition: MyTrack.h:33
const Event* MyTrack::event ( ) const
inline

Access to the source track object (constant case)

Definition at line 61 of file MyTrack.h.

61  {
62  return m_event;
63  }
SmartRef< Event > m_event
Link to Top level event.
Definition: MyTrack.h:32
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.

75  {
76  s << "px: " << px() << "py: " << py() << "px: " << pz();
77  return s;
78  }
float py() const
Accessors: Retrieve y-component of the track momentum.
Definition: MyTrack.h:50
float px() const
Accessors: Retrieve x-component of the track momentum.
Definition: MyTrack.h:48
float pz() const
Accessors: Retrieve z-component of the track momentum.
Definition: MyTrack.h:52
string s
Definition: gaudirun.py:210
float MyTrack::px ( ) const
inline

Accessors: Retrieve x-component of the track momentum.

Definition at line 48 of file MyTrack.h.

48 { return m_px; }
float m_px
The track momentum.
Definition: MyTrack.h:30
float MyTrack::py ( ) const
inline

Accessors: Retrieve y-component of the track momentum.

Definition at line 50 of file MyTrack.h.

50 { return m_py; }
float m_py
Definition: MyTrack.h:30
float MyTrack::pz ( ) const
inline

Accessors: Retrieve z-component of the track momentum.

Definition at line 52 of file MyTrack.h.

52 { return m_pz; }
float m_pz
Definition: MyTrack.h:30
void MyTrack::setDecayVertex ( MyVertex decay)
inline

Access to event object.

Definition at line 90 of file MyTrack.h.

90  {
91  m_decay = decay;
92 }
SmartRef< MyVertex > m_decay
Definition: MyTrack.h:33
void MyTrack::setEvent ( Event evt)
inline

Access to event object.

Definition at line 65 of file MyTrack.h.

65  {
66  m_event = evt;
67  }
SmartRef< Event > m_event
Link to Top level event.
Definition: MyTrack.h:32
void MyTrack::setPx ( float  px)
inline

Accessors: Update x-component of the track momentum.

Definition at line 54 of file MyTrack.h.

54 { m_px = px; }
float px() const
Accessors: Retrieve x-component of the track momentum.
Definition: MyTrack.h:48
float m_px
The track momentum.
Definition: MyTrack.h:30
void MyTrack::setPy ( float  py)
inline

Accessors: Update y-component of the track momentum.

Definition at line 56 of file MyTrack.h.

56 { m_py = py; }
float py() const
Accessors: Retrieve y-component of the track momentum.
Definition: MyTrack.h:50
float m_py
Definition: MyTrack.h:30
void MyTrack::setPz ( float  pz)
inline

Accessors: Update z-component of the track momentum.

Definition at line 58 of file MyTrack.h.

58 { m_pz = pz; }
float m_pz
Definition: MyTrack.h:30
float pz() const
Accessors: Retrieve z-component of the track momentum.
Definition: MyTrack.h:52

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: