CMS 3D CMS Logo

Strip1DMeasurementTransformator Class Reference

Helper class for accessing the RecHit and the TrajectoryState parameters and errors in the measurement frame. More...

#include <TrackingTools/KalmanUpdators/interface/Strip1DMeasurementTransformator.h>

List of all members.

Public Member Functions

const TransientTrackingRecHithit () const
double hitError () const
double hitParameters () const
double projectedTrajectoryError () const
double projectedTrajectoryParameters () const
AM15 projectionMatrix () const
const TSOSstate () const
 Strip1DMeasurementTransformator (const TSOS &aTsos, const TransientTrackingRecHit &aHit)
const StripTopologytopology () const
const ASM55trajectoryError () const
AV5 trajectoryParameters () const
 ~Strip1DMeasurementTransformator ()

Private Types

typedef AlgebraicMatrix15 AM15
typedef AlgebraicSymMatrix55 ASM55
typedef AlgebraicVector5 AV5
typedef TrajectoryStateOnSurface TSOS

Private Member Functions

void init ()

Private Attributes

const TransientTrackingRecHittheRecHit
TSOS theState
const StripTopologytheTopology


Detailed Description

Helper class for accessing the RecHit and the TrajectoryState parameters and errors in the measurement frame.

The RecHits are treated as 1-dimensional, the second coordinate is ignored. Ported from ORCA.

Date
2007/05/09 13:50:25
Revision
1.4
Author:
todorov, cerati

Definition at line 19 of file Strip1DMeasurementTransformator.h.


Member Typedef Documentation

typedef AlgebraicMatrix15 Strip1DMeasurementTransformator::AM15 [private]

Definition at line 25 of file Strip1DMeasurementTransformator.h.

typedef AlgebraicSymMatrix55 Strip1DMeasurementTransformator::ASM55 [private]

Definition at line 24 of file Strip1DMeasurementTransformator.h.

typedef AlgebraicVector5 Strip1DMeasurementTransformator::AV5 [private]

Definition at line 26 of file Strip1DMeasurementTransformator.h.

typedef TrajectoryStateOnSurface Strip1DMeasurementTransformator::TSOS [private]

Definition at line 23 of file Strip1DMeasurementTransformator.h.


Constructor & Destructor Documentation

Strip1DMeasurementTransformator::Strip1DMeasurementTransformator ( const TSOS aTsos,
const TransientTrackingRecHit aHit 
)

Definition at line 4 of file Strip1DMeasurementTransformator.cc.

References init().

00005                                                                                              : 
00006   theRecHit(hit),
00007   theState(tsos),
00008   theTopology(0) {
00009 
00010   init();
00011 }

Strip1DMeasurementTransformator::~Strip1DMeasurementTransformator (  )  [inline]

Definition at line 32 of file Strip1DMeasurementTransformator.h.

00032 {}


Member Function Documentation

const TransientTrackingRecHit& Strip1DMeasurementTransformator::hit ( void   )  const [inline]

Definition at line 42 of file Strip1DMeasurementTransformator.h.

References theRecHit.

Referenced by hitError(), hitParameters(), and init().

00042 {return theRecHit;}

double Strip1DMeasurementTransformator::hitError (  )  const

Definition at line 34 of file Strip1DMeasurementTransformator.cc.

References hit(), Topology::measurementError(), topology(), and MeasurementError::uu().

Referenced by KFStrip1DUpdator::update().

00034                                                        {
00035 
00036   return     
00037     topology()->measurementError(hit().localPosition(),
00038                                  hit().localPositionError()).uu();
00039 }

double Strip1DMeasurementTransformator::hitParameters (  )  const

Definition at line 19 of file Strip1DMeasurementTransformator.cc.

References hit(), Topology::measurementPosition(), topology(), and PV2DBase< T, PVType, FrameType >::x().

Referenced by KFStrip1DUpdator::update().

00019                                                             {
00020   
00021   return topology()->measurementPosition(hit().localPosition()).x();
00022 }

void Strip1DMeasurementTransformator::init ( void   )  [private]

Definition at line 13 of file Strip1DMeasurementTransformator.cc.

References TransientTrackingRecHit::detUnit(), hit(), theTopology, and GeomDetUnit::topology().

Referenced by Strip1DMeasurementTransformator().

00013                                            {
00014 
00015   theTopology = 
00016     dynamic_cast<const StripTopology*>(&(hit().detUnit()->topology()));
00017 }

double Strip1DMeasurementTransformator::projectedTrajectoryError (  )  const

Definition at line 46 of file Strip1DMeasurementTransformator.cc.

References Topology::measurementError(), state(), topology(), and MeasurementError::uu().

Referenced by KFStrip1DUpdator::update().

00046                                                                        {
00047 
00048   return 
00049     topology()->measurementError(state().localPosition(),
00050                                  state().localError().positionError()).uu();
00051 }

double Strip1DMeasurementTransformator::projectedTrajectoryParameters (  )  const

Definition at line 29 of file Strip1DMeasurementTransformator.cc.

References Topology::measurementPosition(), state(), topology(), and PV2DBase< T, PVType, FrameType >::x().

Referenced by KFStrip1DUpdator::update().

00029                                                                             {
00030 
00031   return topology()->measurementPosition(state().localPosition()).x();
00032 }

AlgebraicMatrix15 Strip1DMeasurementTransformator::projectionMatrix (  )  const

Definition at line 53 of file Strip1DMeasurementTransformator.cc.

References funct::cos(), StripTopology::localPitch(), phi, funct::sin(), state(), strip(), StripTopology::stripAngle(), and topology().

Referenced by KFStrip1DUpdator::update().

00053                                                                           {
00054 
00055   //  H(measurement <- local)
00056   //  m_meas = H*x_local + c
00057   AlgebraicMatrix15 H;
00058 
00059   double phi = 
00060     topology()->stripAngle(topology()->strip(state().localPosition()));
00061   double pitch = topology()->localPitch(state().localPosition());
00062   H(0,3) = cos(phi)/pitch; H(0,4) = sin(phi)/pitch;
00063   
00064   return H;
00065 }

const TSOS& Strip1DMeasurementTransformator::state ( void   )  const [inline]

Definition at line 43 of file Strip1DMeasurementTransformator.h.

References theState.

Referenced by projectedTrajectoryError(), projectedTrajectoryParameters(), projectionMatrix(), trajectoryError(), and trajectoryParameters().

00043 {return theState;}

const StripTopology* Strip1DMeasurementTransformator::topology (  )  const [inline]

Definition at line 44 of file Strip1DMeasurementTransformator.h.

References theTopology.

Referenced by hitError(), hitParameters(), projectedTrajectoryError(), projectedTrajectoryParameters(), and projectionMatrix().

00044 {return theTopology;}

const AlgebraicSymMatrix55 & Strip1DMeasurementTransformator::trajectoryError (  )  const

Definition at line 41 of file Strip1DMeasurementTransformator.cc.

References TrajectoryStateOnSurface::localError(), LocalTrajectoryError::matrix(), and state().

Referenced by KFStrip1DUpdator::update().

00041                                                                                     {
00042 
00043   return state().localError().matrix();
00044 }

AlgebraicVector5 Strip1DMeasurementTransformator::trajectoryParameters (  )  const

Definition at line 24 of file Strip1DMeasurementTransformator.cc.

References TrajectoryStateOnSurface::localParameters(), state(), and LocalTrajectoryParameters::vector().

Referenced by KFStrip1DUpdator::update().

00024                                                                              {
00025     
00026   return state().localParameters().vector();
00027 }


Member Data Documentation

const TransientTrackingRecHit& Strip1DMeasurementTransformator::theRecHit [private]

Definition at line 48 of file Strip1DMeasurementTransformator.h.

Referenced by hit().

TSOS Strip1DMeasurementTransformator::theState [private]

Definition at line 49 of file Strip1DMeasurementTransformator.h.

Referenced by state().

const StripTopology* Strip1DMeasurementTransformator::theTopology [private]

Definition at line 50 of file Strip1DMeasurementTransformator.h.

Referenced by init(), and topology().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:56 2009 for CMSSW by  doxygen 1.5.4