Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

TrackProjector Class Reference

#include <TrackProjectors/TrackProjector.h>

Inheritance diagram for TrackProjector:

ITrackProjector TrackITProjector TrackOTProjector TrackVeloPhiProjector TrackVeloRProjector List of all members.

Public Member Functions

virtual StatusCode project (const State &state, Measurement &meas)
virtual const HepVector & projectionMatrix () const
 Retrieve the projection matrix H of the (last) projection.
double chi2 () const
 Retrieve the chi squared of the (last) projection.
double residual () const
 Retrieve the residual of the (last) projection.
double errResidual () const
 Retrieve the error on the residual of the (last) projection.
 TrackProjector (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor.
virtual ~TrackProjector ()
 Destructor.

Protected Member Functions

void computeResidual (const State &state, const Measurement &meas)
void computeErrorResidual (const State &state, const Measurement &meas)

Protected Attributes

double m_residual
double m_errResidual
HepVector m_H

Detailed Description

A TrackProjector is a base class implementing methods from the ITrackProjector interface.

Author:
Jose Hernando

Eduardo Rodrigues

Date:
2005-03-10

Definition at line 25 of file TrackProjector.h.


Constructor & Destructor Documentation

TrackProjector::TrackProjector const std::string &  type,
const std::string &  name,
const IInterface *  parent
 

Standard constructor.

Definition at line 67 of file TrackProjector.cpp.

References m_errResidual, m_H, and m_residual.

00070   : GaudiTool ( type, name , parent )
00071   , m_H()
00072 {
00073   declareInterface<ITrackProjector>( this );
00074   m_residual = 0.;
00075   m_errResidual = 0.;
00076   m_H = HepVector(5,0);
00077 }

TrackProjector::~TrackProjector  )  [virtual]
 

Destructor.

Definition at line 82 of file TrackProjector.cpp.

00082 {}; 


Member Function Documentation

double TrackProjector::chi2  )  const [virtual]
 

Retrieve the chi squared of the (last) projection.

Implements ITrackProjector.

Definition at line 43 of file TrackProjector.cpp.

References m_errResidual, and m_residual.

00044 {
00045   return m_errResidual != 0 ? (m_residual/m_errResidual)*(m_residual/m_errResidual) : 0.;
00046 }

void TrackProjector::computeErrorResidual const State state,
const Measurement meas
[protected]
 

Definition at line 98 of file TrackProjector.cpp.

References m_errResidual, and m_H.

Referenced by TrackVeloRProjector::project(), TrackVeloPhiProjector::project(), TrackOTProjector::project(), and TrackITProjector::project().

00100 {
00101   double error = meas.errMeasure();
00102   const HepSymMatrix& C = state.covariance();
00103   double resError  = error * error + C.similarity( m_H );
00104   m_errResidual = sqrt( resError );
00105 }

void TrackProjector::computeResidual const State state,
const Measurement meas
[protected]
 

Definition at line 89 of file TrackProjector.cpp.

References m_H, and m_residual.

00091 {
00092   m_residual = meas.measure() - dot( m_H, state.stateVector() );
00093 }

double TrackProjector::errResidual  )  const [virtual]
 

Retrieve the error on the residual of the (last) projection.

Implements ITrackProjector.

Definition at line 59 of file TrackProjector.cpp.

References m_errResidual.

00060 {
00061   return m_errResidual;
00062 }

StatusCode TrackProjector::project const State state,
Measurement meas
[virtual]
 

Project a state onto a measurement. It returns the chi squared of the projection

Implements ITrackProjector.

Reimplemented in TrackITProjector, TrackOTProjector, TrackVeloPhiProjector, and TrackVeloRProjector.

Definition at line 27 of file TrackProjector.cpp.

00028 {
00029   return StatusCode::FAILURE;
00030 }

const HepVector & TrackProjector::projectionMatrix  )  const [virtual]
 

Retrieve the projection matrix H of the (last) projection.

Implements ITrackProjector.

Definition at line 35 of file TrackProjector.cpp.

References m_H.

00036 {
00037   return m_H;
00038 }

double TrackProjector::residual  )  const [virtual]
 

Retrieve the residual of the (last) projection.

Implements ITrackProjector.

Definition at line 51 of file TrackProjector.cpp.

References m_residual.

00052 {
00053   return m_residual;
00054 }


Member Data Documentation

double TrackProjector::m_errResidual [protected]
 

Definition at line 61 of file TrackProjector.h.

Referenced by chi2(), computeErrorResidual(), errResidual(), and TrackProjector().

HepVector TrackProjector::m_H [protected]
 

Definition at line 62 of file TrackProjector.h.

Referenced by computeErrorResidual(), computeResidual(), projectionMatrix(), and TrackProjector().

double TrackProjector::m_residual [protected]
 

Definition at line 60 of file TrackProjector.h.

Referenced by chi2(), computeResidual(), residual(), and TrackProjector().


The documentation for this class was generated from the following files:
Generated on Fri May 27 13:59:47 2005 for New Track Event Model by doxygen 1.4.1