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

Atlfast::ReconstructedParticle Class Reference

Represents the most simple particles such as Electron, Muon, Photon, etc. More...

#include <ReconstructedParticle.h>

Inheritance diagram for Atlfast::ReconstructedParticle:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 ReconstructedParticle (const int pdg_id, const HepLorentzVector &vec, const HepMC::GenParticle *progenitor)
 This is the principle constructor needed by users.

 ReconstructedParticle (const ReconstructedParticle &src)
 Copy constructors.

 ReconstructedParticle (const ReconstructedParticle *src)
 ReconstructedParticle ()
 default constructor required by Gaudi

virtual ~ReconstructedParticle ()
virtual HepLorentzVector momentum () const
virtual double eta () const
virtual double phi () const
virtual double pT () const
virtual double eT () const
virtual double mT () const
int pdg_id () const
 pdg identifier of particle

const HepMC::GenParticle * truth () const
 Access to MC truth.

virtual const CLID & clID () const

Static Public Methods

const CLID & classID ()

Private Attributes

int m_pdg_id
 pdg identity code

HepLorentzVector m_momentum
 4-momentum of particle

const HepMC::GenParticle * m_truth
 Pointer to Truth HepMC::Particile.


Detailed Description

Represents the most simple particles such as Electron, Muon, Photon, etc.

the motivation being that all particles are the same type from the point of view of kinematic state variables, and are only differentiated by having a different "label".
It implements an "IKinematic" interface which is designed to standardise kimematic attribute query method names.

Definition at line 100 of file ReconstructedParticle.h.


Constructor & Destructor Documentation

Atlfast::ReconstructedParticle::ReconstructedParticle const int    pdg_id,
const HepLorentzVector &    vec,
const HepMC::GenParticle *    progenitor
[inline]
 

This is the principle constructor needed by users.

Definition at line 112 of file ReconstructedParticle.h.

References m_momentum, m_pdg_id, m_truth, and pdg_id().

00114                                                                  : 
00115         IKinematic(),
00116         ContainedObject(),
00117         AssociationManager(),
00118         m_pdg_id(pdg_id), 
00119         m_momentum(vec), 
00120         m_truth(progenitor) {}

Atlfast::ReconstructedParticle::ReconstructedParticle const ReconstructedParticle &    src [inline]
 

Copy constructors.

Definition at line 123 of file ReconstructedParticle.h.

References m_momentum, m_pdg_id, and m_truth.

00123                                                                 :
00124         IKinematic(),
00125         ContainedObject(),
00126         AssociationManager( src ),
00127         m_pdg_id(src.m_pdg_id), 
00128         m_momentum(src.m_momentum), 
00129         m_truth(src.m_truth) 
00130        { }
      

Atlfast::ReconstructedParticle::ReconstructedParticle const ReconstructedParticle *    src [inline]
 

Definition at line 132 of file ReconstructedParticle.h.

References m_momentum, m_pdg_id, and m_truth.

00132                                                                 :
00133         IKinematic(),
00134         ContainedObject(),
00135         AssociationManager( *src ),
00136         m_pdg_id(src->m_pdg_id), 
00137         m_momentum(src->m_momentum), 
00138         m_truth(src->m_truth) {}

Atlfast::ReconstructedParticle::ReconstructedParticle   [inline]
 

default constructor required by Gaudi

Definition at line 141 of file ReconstructedParticle.h.

References m_momentum, m_pdg_id, and m_truth.

00141                               : 
00142         IKinematic(),
00143         ContainedObject(), 
00144         AssociationManager(),
00145         m_pdg_id(0), 
00146         m_momentum(HepLorentzVector(0.0,0.0,0.0,0.0)), 
00147         m_truth(0) {}

virtual Atlfast::ReconstructedParticle::~ReconstructedParticle   [inline, virtual]
 

Definition at line 150 of file ReconstructedParticle.h.

00150 {}


Member Function Documentation

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

Definition at line 181 of file ReconstructedParticle.h.

00182        { return CLID_ATLFAST_RECONSTRUCTED_PARTICLE; }

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

Definition at line 183 of file ReconstructedParticle.h.

00184        {  return CLID_ATLFAST_RECONSTRUCTED_PARTICLE; }

virtual double Atlfast::ReconstructedParticle::eT   const [inline, virtual]
 

Implements Atlfast::IKinematic.

Definition at line 161 of file ReconstructedParticle.h.

References m_momentum.

00161                                   { 
00162         return m_momentum.e()*m_momentum.perp()/m_momentum.rho() ;}

virtual double Atlfast::ReconstructedParticle::eta   const [inline, virtual]
 

Implements Atlfast::IKinematic.

Definition at line 158 of file ReconstructedParticle.h.

References m_momentum.

00158 { return m_momentum.pseudoRapidity() ;}

virtual HepLorentzVector Atlfast::ReconstructedParticle::momentum   const [inline, virtual]
 

Implements Atlfast::IKinematic.

Definition at line 157 of file ReconstructedParticle.h.

References m_momentum.

00157 {return m_momentum;} 

virtual double Atlfast::ReconstructedParticle::mT   const [inline, virtual]
 

Implements Atlfast::IKinematic.

Definition at line 163 of file ReconstructedParticle.h.

References m_momentum.

00163 { return m_momentum.mt() ;}

int Atlfast::ReconstructedParticle::pdg_id   const [inline]
 

pdg identifier of particle

Definition at line 172 of file ReconstructedParticle.h.

References m_pdg_id.

Referenced by ReconstructedParticle().

00172 { return m_pdg_id ; }

virtual double Atlfast::ReconstructedParticle::phi   const [inline, virtual]
 

Implements Atlfast::IKinematic.

Definition at line 159 of file ReconstructedParticle.h.

References m_momentum.

00159 { return m_momentum.phi() ;  } 

virtual double Atlfast::ReconstructedParticle::pT   const [inline, virtual]
 

Implements Atlfast::IKinematic.

Definition at line 160 of file ReconstructedParticle.h.

References m_momentum.

00160 { return m_momentum.perp() ;}

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

Access to MC truth.

Definition at line 177 of file ReconstructedParticle.h.

References m_truth.

00177 { return m_truth ; }


Member Data Documentation

HepLorentzVector Atlfast::ReconstructedParticle::m_momentum [private]
 

4-momentum of particle

Definition at line 192 of file ReconstructedParticle.h.

Referenced by eT(), eta(), momentum(), mT(), phi(), pT(), and ReconstructedParticle().

int Atlfast::ReconstructedParticle::m_pdg_id [private]
 

pdg identity code

Definition at line 189 of file ReconstructedParticle.h.

Referenced by pdg_id(), and ReconstructedParticle().

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

Pointer to Truth HepMC::Particile.

Todo:
Should be implemented as GenParticleLink

Definition at line 197 of file ReconstructedParticle.h.

Referenced by ReconstructedParticle(), and truth().


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