Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Atlfast::Track Class Reference

Represents a track object. More...

#include <Track.h>

Inheritance diagram for Atlfast::Track:

Inheritance graph
[legend]
Collaboration diagram for Atlfast::Track:

Collaboration graph
[legend]
List of all members.

Public Methods

 Track (const TrackTrajectory &trajectory, const HepMC::GenParticle *progenitor)
 Track (const TrackTrajectory &truthTrajectory, const TrackTrajectory &smearTrajectory, const HepMC::GenParticle *progenitor, const HepMatrix &matrix)
 Track (const TrackTrajectory &truthTrajectory, const TrackTrajectory &smearTrajectory, const HepMatrix &matrix, int pdg)
 Track (const Track &other)
 Track ()
 ~Track ()
virtual TrackTrajectory trajectory () const
 Returns tracks trajectory.

virtual int pdg_id () const
 Returns pdg id of particle associated with track.

const HepMC::GenParticle * truth () const
 Returns truth HepMC::GenParticle that created track.

const HepMatrix smearMatrix () const
 Returns the smear matrix.

void setMatrix (const HepMatrix &matrix)
 Sets the smear matrix.

const TrackTrajectory truthTrajectory () const
 Returns the true trajectory of the track.

virtual const CLID & clID () const

Static Public Methods

const CLID & classID ()

Private Attributes

TrackTrajectory m_trajectory
 The tracks trajectory.

TrackTrajectory m_truthTrajectory
 The truth trajectory.

const HepMC::GenParticle * m_truth
 Mc truth particle from which the track was created.

HepMatrix m_smearMatrix
 The smear matrix.

int m_pdg_id
 Pdg ID of particle that created track.


Detailed Description

Represents a track object.

Really just 5-track parameters and correlation Matrix plus information about the truth particle.

Definition at line 60 of file Track.h.


Constructor & Destructor Documentation

Atlfast::Track::Track const TrackTrajectory   trajectory,
const HepMC::GenParticle *    progenitor
[inline]
 

Definition at line 84 of file Track.h.

References m_pdg_id, m_smearMatrix, m_truth, pdg_id(), and trajectory().

00086         : ContainedObject(),
00087         AssociationManager(),
00088         m_trajectory(trajectory),
00089         m_truthTrajectory(trajectory),
00090         m_truth( progenitor ),
00091         m_smearMatrix(HepMatrix(5,5,0.)),
00092         m_pdg_id(progenitor->pdg_id())
00093         { }

Atlfast::Track::Track const TrackTrajectory   truthTrajectory,
const TrackTrajectory   smearTrajectory,
const HepMC::GenParticle *    progenitor,
const HepMatrix &    matrix
[inline]
 

Definition at line 95 of file Track.h.

References m_pdg_id, m_smearMatrix, m_truth, pdg_id(), and truthTrajectory().

00099         : ContainedObject(),
00100         AssociationManager(),
00101         m_trajectory(smearTrajectory),
00102         m_truthTrajectory(truthTrajectory),
00103         m_truth( progenitor ),
00104         m_smearMatrix(matrix),
00105         m_pdg_id(progenitor->pdg_id())
00106         { }

Atlfast::Track::Track const TrackTrajectory   truthTrajectory,
const TrackTrajectory   smearTrajectory,
const HepMatrix &    matrix,
int    pdg
[inline]
 

Definition at line 108 of file Track.h.

References m_pdg_id, m_smearMatrix, m_truth, and truthTrajectory().

00111         : ContainedObject(),
00112         AssociationManager(),
00113         m_trajectory(smearTrajectory),
00114         m_truthTrajectory(truthTrajectory),
00115         m_truth( NULL ),
00116         m_smearMatrix(matrix),
00117         m_pdg_id(pdg)
00118         { }

Atlfast::Track::Track const Track &    other [inline]
 

Definition at line 121 of file Track.h.

References m_pdg_id, m_smearMatrix, and m_truth.

00121                                    : ContainedObject( ),
00122         AssociationManager(other),
00123         m_trajectory(other.m_trajectory),
00124         m_truthTrajectory(other.m_truthTrajectory),
00125         m_truth( other.m_truth ),
00126         m_smearMatrix(other.m_smearMatrix),
00127         m_pdg_id(other.m_pdg_id)
00128         { }

Atlfast::Track::Track   [inline]
 

Definition at line 132 of file Track.h.

References m_truth.

00133         : ContainedObject(), 
00134         AssociationManager(),
00135         m_truth(NULL)
00136         { }

Atlfast::Track::~Track   [inline]
 

Definition at line 138 of file Track.h.

00138 {}


Member Function Documentation

const CLID& Atlfast::Track::classID   [inline, static]
 

Definition at line 154 of file Track.h.

00154 { return CLID_ATLFAST_Track; }

virtual const CLID& Atlfast::Track::clID   const [inline, virtual]
 

Definition at line 155 of file Track.h.

00155 {  return CLID_ATLFAST_Track; }

virtual int Atlfast::Track::pdg_id   const [inline, virtual]
 

Returns pdg id of particle associated with track.

Definition at line 143 of file Track.h.

References m_pdg_id.

Referenced by Atlfast::operator<<(), and Track().

00143 {return m_pdg_id;}

void Atlfast::Track::setMatrix const HepMatrix &    matrix [inline]
 

Sets the smear matrix.

Definition at line 149 of file Track.h.

References m_smearMatrix.

00149 {m_smearMatrix = matrix;}

const HepMatrix Atlfast::Track::smearMatrix   const [inline]
 

Returns the smear matrix.

Definition at line 147 of file Track.h.

References m_smearMatrix.

Referenced by Atlfast::operator<<().

00147 {return m_smearMatrix;}

virtual TrackTrajectory Atlfast::Track::trajectory   const [inline, virtual]
 

Returns tracks trajectory.

Definition at line 141 of file Track.h.

Referenced by Atlfast::operator<<(), and Track().

00141 {return m_trajectory;}

const HepMC::GenParticle* Atlfast::Track::truth   const [inline]
 

Returns truth HepMC::GenParticle that created track.

Definition at line 145 of file Track.h.

References m_truth.

Referenced by Atlfast::operator<<().

00145 { return m_truth ; }

const TrackTrajectory Atlfast::Track::truthTrajectory   const [inline]
 

Returns the true trajectory of the track.

Definition at line 151 of file Track.h.

Referenced by Atlfast::operator<<(), and Track().

00151 {return m_truthTrajectory;}


Member Data Documentation

int Atlfast::Track::m_pdg_id [private]
 

Pdg ID of particle that created track.

Definition at line 77 of file Track.h.

Referenced by pdg_id(), and Track().

HepMatrix Atlfast::Track::m_smearMatrix [private]
 

The smear matrix.

Definition at line 75 of file Track.h.

Referenced by setMatrix(), smearMatrix(), and Track().

TrackTrajectory Atlfast::Track::m_trajectory [private]
 

The tracks trajectory.

Definition at line 68 of file Track.h.

const HepMC::GenParticle* Atlfast::Track::m_truth [private]
 

Mc truth particle from which the track was created.

Todo:
should be implemented as GenParticleLink

Definition at line 73 of file Track.h.

Referenced by Track(), and truth().

TrackTrajectory Atlfast::Track::m_truthTrajectory [private]
 

The truth trajectory.

Definition at line 70 of file Track.h.


The documentation for this class was generated from the following file:
Generated on Fri Nov 29 12:55:19 2002 by doxygen1.3-rc1