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

TrackLinearExtrapolator Class Reference

#include <TrackExtrapolators/TrackLinearExtrapolator.h>

Inheritance diagram for TrackLinearExtrapolator:

TrackExtrapolator ITrackExtrapolator List of all members.

Public Member Functions

 TrackLinearExtrapolator (const std::string &type, const std::string &name, const IInterface *parent)
 constructor
virtual ~TrackLinearExtrapolator ()
 destructor
StatusCode propagate (State &state, double z, ParticleID pid=ParticleID(211))
 Propagate a State to a given z-position.
StatusCode propagate (State &state, HepPlane3D &plane, ParticleID pid=ParticleID(211))
 Propagate a State to the intersection point with a given plane.

Detailed Description

A TrackLinearExtrapolator is a ITrackExtrapolator which does a 'linear' (i.e. straight line) extrapolation of a State. It doesn't take into account MS.

Author:
Eduardo Rodrigues (changes and new features for new track event model)
Date:
25/11/2004
Author:
Rutger van der Eijk
Date:
07-04-1999

Definition at line 27 of file TrackLinearExtrapolator.h.


Constructor & Destructor Documentation

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

constructor

Definition at line 113 of file TrackLinearExtrapolator.cpp.

00116   : TrackExtrapolator ( type, name, parent )
00117 {
00118   //declareInterface<ITrackExtrapolator>( this );
00119 }

TrackLinearExtrapolator::~TrackLinearExtrapolator  )  [virtual]
 

destructor

Definition at line 124 of file TrackLinearExtrapolator.cpp.

00124 {};


Member Function Documentation

StatusCode TrackLinearExtrapolator::propagate State state,
HepPlane3D &  plane,
ParticleID  pid = ParticleID(211)
 

Propagate a State to the intersection point with a given plane.

Definition at line 77 of file TrackLinearExtrapolator.cpp.

References propagate().

00080 {
00081   // calculation of the z-position by linear extrapolation to the plane
00082   // ------------------------------------------------------------------
00083   // given the plane defined by (a,b,c,d) and the input state of
00084   // position (x0,y0,z0) and slopes (Tx,Ty),
00085   // the (x,y,z) of the intersection point verify the set of equations
00086   //    a*x + b*y + c*z + d = 0
00087   //    x = x0 + (z-z0)*Tx
00088   //    x = y0 + (z-z0)*Ty
00089   HepNormal3D nVec   = plane.normal();
00090   HepPoint3D  posVec = state.position();
00091   HepVector3D slpVec = state.slopes();
00092 
00093   double den = nVec.dot( slpVec );
00094 
00095   if ( den < TrackParameters::looseTolerance ) return StatusCode::FAILURE;
00096 
00097   slpVec *= ( state.z() );
00098   posVec -= slpVec;
00099   
00100   double nom = - ( nVec.dot( posVec ) + plane.d() );
00101   
00102   double zNew = nom / den;
00103 
00104   debug() << " z propagation " << zNew 
00105           << " of particle pid " << pid.pid() << endreq;
00106 
00107   return propagate( state, zNew, pid );
00108 }

StatusCode TrackLinearExtrapolator::propagate State state,
double  z,
ParticleID  pid = ParticleID(211)
[virtual]
 

Propagate a State to a given z-position.

Reimplemented from TrackExtrapolator.

Definition at line 45 of file TrackLinearExtrapolator.cpp.

References TrackExtrapolator::updateState().

Referenced by propagate().

00048 {
00049   // create transport matrix
00050   unsigned int ndim = state.nParameters();
00051   
00052   m_F = HepMatrix(ndim, ndim, 1);
00053 
00054   // check current z-position
00055   double dz = zNew - state.z();
00056   // if ( fabs(dz) < TrackParameters::hiTolerance ) dz = 0.;
00057   m_F[0][2] = dz; // tx*dz
00058   m_F[1][3] = dz; // ty*dz
00059   info() << " F " << m_F << endreq;
00060   
00061   // extrapolate
00062   //extrapolate(state);
00063   //state -> setZ( zNew );
00064   updateState( state, zNew );
00065 
00066   debug() << " z propagation " << zNew
00067           << " propagated state " << state.state()
00068           << " propagated cov   " << state.covariance()
00069           << " of particle pid " << pid.pid() << endreq;
00070 
00071   return StatusCode::SUCCESS;
00072 }


The documentation for this class was generated from the following files:
Generated on Wed May 4 11:52:41 2005 for New Track Event Model by doxygen 1.4.1