CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
PerigeeKinematicState Class Reference

#include <PerigeeKinematicState.h>

Public Member Functions

bool hasError () const
 
bool isValid () const
 
const
ExtendedPerigeeTrajectoryError
perigeeError () const
 
 PerigeeKinematicState ()
 
const
ExtendedPerigeeTrajectoryParameters
perigeeParameters () const
 
const GlobalPoint referencePoint () const
 
const KinematicStatetheState () const
 
virtual ~PerigeeKinematicState ()
 

Private Member Functions

AlgebraicMatrix jacobianCurvilinear2Perigee (const FreeTrajectoryState &fts) const
 
 PerigeeKinematicState (const KinematicState &state, const GlobalPoint &pt)
 

Private Attributes

ExtendedPerigeeTrajectoryError cov
 
bool errorIsAvailable
 
KinematicState inState
 
ExtendedPerigeeTrajectoryParameters par
 
GlobalPoint point
 
bool vl
 

Friends

class TransientTrackKinematicStateBuilder
 

Detailed Description

Class caching the "extended" perigee parametrization for vertex fitting inside the KinematicFit library. Extended parameters are: (epsilon, rho, phi, theta_p, z_p, m) (see TrajectoryStateClosestToPoint class for reference)

Kirill Prokofiev, august 2003

Definition at line 21 of file PerigeeKinematicState.h.

Constructor & Destructor Documentation

PerigeeKinematicState::PerigeeKinematicState ( )
inline

Definition at line 25 of file PerigeeKinematicState.h.

References errorIsAvailable, and vl.

26  {
27  vl = false;
28  errorIsAvailable = false;
29  }
virtual PerigeeKinematicState::~PerigeeKinematicState ( )
inlinevirtual

Definition at line 31 of file PerigeeKinematicState.h.

31 {}
PerigeeKinematicState::PerigeeKinematicState ( const KinematicState state,
const GlobalPoint pt 
)
private

Definition at line 6 of file PerigeeKinematicState.cc.

References conversions_cfi::conversions, cov, KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters(), KinematicState::freeTrajectoryState(), KinematicState::isValid(), PerigeeConversions::jacobianCurvilinear2Perigee(), findQualityFiles::jj, KinematicState::kinematicParametersError(), KinematicParametersError::matrix(), par, and FreeTrajectoryState::parameters().

6  :
7  point(pt), inState(state), errorIsAvailable(true),vl(true)
8 {
9  if(!(state.isValid())) throw VertexException("PerigeeKinematicState::kinematic state passed is not valid!");
10 
11 //working with parameters:
13  par = conversions.extendedPerigeeFromKinematicParameters(state,pt);
14 
15 //creating the error
17 
18 //making jacobian for curvilinear frame
20  AlgebraicMatrix67 ki2cu;
21  ki2cu.Place_at(jj.jacobian(),0,0);
22  ki2cu(5,6) = 1.;
23  AlgebraicMatrix66 cu2pe;
25  cu2pe(5,5) = 1.;
26  AlgebraicMatrix67 jacobian = cu2pe*ki2cu;
27 
28  cov = ExtendedPerigeeTrajectoryError(ROOT::Math::Similarity(jacobian, err));
29 
30 }
bool isValid() const
const GlobalTrajectoryParameters & parameters() const
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepStd< double, 6, 6 > > AlgebraicMatrix66
Common base class.
ExtendedPerigeeTrajectoryError cov
AlgebraicSymMatrix77 const & matrix() const
ROOT::Math::SMatrix< double, 7, 7, ROOT::Math::MatRepSym< double, 7 > > AlgebraicSymMatrix77
Definition: Matrices.h:9
KinematicParametersError const & kinematicParametersError() const
ExtendedPerigeeTrajectoryParameters par
ExtendedPerigeeTrajectoryParameters extendedPerigeeFromKinematicParameters(const KinematicState &state, const GlobalPoint &point) const
ROOT::Math::SMatrix< double, 6, 7, ROOT::Math::MatRepStd< double, 6, 7 > > AlgebraicMatrix67
Definition: Matrices.h:11
AlgebraicMatrix55 jacobianCurvilinear2Perigee(const FreeTrajectoryState &fts)
FreeTrajectoryState freeTrajectoryState() const

Member Function Documentation

bool PerigeeKinematicState::hasError ( void  ) const
inline

Access methods

Definition at line 35 of file PerigeeKinematicState.h.

References errorIsAvailable, and isValid().

Referenced by perigeeError().

36  {
37  if(!(isValid()))throw VertexException("PerigeeKinematicState::error is requested for the invalid state");
38  return errorIsAvailable;
39  }
Common base class.
bool PerigeeKinematicState::isValid ( void  ) const
inline
AlgebraicMatrix PerigeeKinematicState::jacobianCurvilinear2Perigee ( const FreeTrajectoryState fts) const
private
const ExtendedPerigeeTrajectoryError& PerigeeKinematicState::perigeeError ( ) const
inline

Returns the error matrix of extended perigee parametrization

Definition at line 63 of file PerigeeKinematicState.h.

References cov, hasError(), and isValid().

Referenced by ParticleKinematicLinearizedTrackState::predictedStateError(), ParticleKinematicLinearizedTrackState::predictedStateMomentumError(), and ParticleKinematicLinearizedTrackState::predictedStateWeight().

64  {
65  if(!(isValid())) throw VertexException("PerigeeKinematicState::requesting perigee error for invalid state");
66  if(!(hasError())) throw VertexException("PerigeeKinematicState::requesting perigee error when none available");
67  return cov;
68  }
Common base class.
ExtendedPerigeeTrajectoryError cov
const ExtendedPerigeeTrajectoryParameters& PerigeeKinematicState::perigeeParameters ( ) const
inline

Returns the extended perigee parameters

Definition at line 73 of file PerigeeKinematicState.h.

References isValid(), and par.

Referenced by ParticleKinematicLinearizedTrackState::predictedStateMomentumParameters(), and ParticleKinematicLinearizedTrackState::predictedStateParameters().

74  {
75  if(!(isValid())) throw VertexException("PerigeeKinematicState::requesting perigee parameters for invalid state");
76  return par;
77  }
Common base class.
ExtendedPerigeeTrajectoryParameters par
const GlobalPoint PerigeeKinematicState::referencePoint ( ) const
inline

Returns the reference point

Definition at line 53 of file PerigeeKinematicState.h.

References isValid(), and point.

54  {
55  if(!isValid()) throw VertexException("PerigeeKinematicState::point is requested for the invalid state");
56  return point;
57  }
Common base class.
const KinematicState& PerigeeKinematicState::theState ( ) const
inline

Definition at line 44 of file PerigeeKinematicState.h.

References inState, and isValid().

Referenced by ParticleKinematicLinearizedTrackState::computeChargedJacobians(), and ParticleKinematicLinearizedTrackState::computeNeutralJacobians().

45  {
46  if(!isValid()) throw VertexException("PerigeeKinematicState::initial state is requested for the invalid state");
47  return inState;
48  }
Common base class.

Friends And Related Function Documentation

Definition at line 81 of file PerigeeKinematicState.h.

Member Data Documentation

ExtendedPerigeeTrajectoryError PerigeeKinematicState::cov
private

Definition at line 96 of file PerigeeKinematicState.h.

Referenced by perigeeError(), and PerigeeKinematicState().

bool PerigeeKinematicState::errorIsAvailable
private

Definition at line 98 of file PerigeeKinematicState.h.

Referenced by hasError(), and PerigeeKinematicState().

KinematicState PerigeeKinematicState::inState
private

Definition at line 97 of file PerigeeKinematicState.h.

Referenced by theState().

ExtendedPerigeeTrajectoryParameters PerigeeKinematicState::par
private

Definition at line 95 of file PerigeeKinematicState.h.

Referenced by PerigeeKinematicState(), and perigeeParameters().

GlobalPoint PerigeeKinematicState::point
private

Definition at line 94 of file PerigeeKinematicState.h.

Referenced by referencePoint().

bool PerigeeKinematicState::vl
private

Definition at line 99 of file PerigeeKinematicState.h.

Referenced by isValid(), and PerigeeKinematicState().