CMS 3D CMS Logo

TrajectoryStateAccessor Class Reference

Helper class to obtain the uncertainty on specific trajectory parameters. More...

#include <TrackingTools/TrajectoryState/interface/TrajectoryStateAccessor.h>

List of all members.

Public Member Functions

double inversePtError () const
 TrajectoryStateAccessor (const FreeTrajectoryState &fts)

Private Attributes

const FreeTrajectoryStatetheFts


Detailed Description

Helper class to obtain the uncertainty on specific trajectory parameters.

Definition at line 10 of file TrajectoryStateAccessor.h.


Constructor & Destructor Documentation

TrajectoryStateAccessor::TrajectoryStateAccessor ( const FreeTrajectoryState fts  )  [inline]

Definition at line 13 of file TrajectoryStateAccessor.h.

00013                                                            :
00014     theFts(fts) {}


Member Function Documentation

double TrajectoryStateAccessor::inversePtError (  )  const

Definition at line 5 of file TrajectoryStateAccessor.cc.

References funct::cos(), FreeTrajectoryState::curvilinearError(), CurvilinearTrajectoryError::matrix(), FreeTrajectoryState::momentum(), PV3DBase< T, PVType, FrameType >::perp(), funct::sin(), funct::sqrt(), theFts, and PV3DBase< T, PVType, FrameType >::theta().

00006 {
00007   GlobalVector momentum = theFts.momentum();
00008   AlgebraicSymMatrix55 errMatrix = theFts.curvilinearError().matrix();
00009   
00010   float SinTheta=sin(momentum.theta());
00011   float CosTheta=cos(momentum.theta());
00012   float ptRec=momentum.perp();
00013   float InvpErr=errMatrix(0,0);
00014   float thetaErr=errMatrix(1,1);
00015   float corr=errMatrix(0,1);
00016   float invPtErr2 = 1/(SinTheta*SinTheta)*
00017     (InvpErr + 
00018      ((CosTheta*CosTheta)/(ptRec*ptRec))*thetaErr - 
00019      2*(CosTheta/ptRec)*corr);
00020   return sqrt(invPtErr2);
00021 }


Member Data Documentation

const FreeTrajectoryState& TrajectoryStateAccessor::theFts [private]

Definition at line 20 of file TrajectoryStateAccessor.h.

Referenced by inversePtError().


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