CMS 3D CMS Logo

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 ExtendedPerigeeTrajectoryErrorperigeeError () const
 
 PerigeeKinematicState ()
 
const ExtendedPerigeeTrajectoryParametersperigeeParameters () 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 23 of file PerigeeKinematicState.h.

References errorIsAvailable, and vl.

23  {
24  vl = false;
25  errorIsAvailable = false;
26  }
virtual PerigeeKinematicState::~PerigeeKinematicState ( )
inlinevirtual

Definition at line 28 of file PerigeeKinematicState.h.

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

Definition at line 6 of file PerigeeKinematicState.cc.

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

7  : point(pt), inState(state), errorIsAvailable(true), vl(true) {
8  if (!(state.isValid()))
9  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 }
bool isValid() const
ROOT::Math::SMatrix< double, 6, 7, ROOT::Math::MatRepStd< double, 6, 7 > > AlgebraicMatrix67
Definition: Matrices.h:11
const GlobalTrajectoryParameters & parameters() const
Common base class.
ExtendedPerigeeTrajectoryError cov
AlgebraicSymMatrix77 const & matrix() const
KinematicParametersError const & kinematicParametersError() const
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepStd< double, 6, 6 > > AlgebraicMatrix66
ExtendedPerigeeTrajectoryParameters par
ExtendedPerigeeTrajectoryParameters extendedPerigeeFromKinematicParameters(const KinematicState &state, const GlobalPoint &point) const
AlgebraicMatrix55 jacobianCurvilinear2Perigee(const FreeTrajectoryState &fts)
ROOT::Math::SMatrix< double, 7, 7, ROOT::Math::MatRepSym< double, 7 > > AlgebraicSymMatrix77
Definition: Matrices.h:9
FreeTrajectoryState freeTrajectoryState() const

Member Function Documentation

bool PerigeeKinematicState::hasError ( void  ) const
inline

Access methods

Definition at line 32 of file PerigeeKinematicState.h.

References errorIsAvailable, and isValid().

Referenced by perigeeError().

32  {
33  if (!(isValid()))
34  throw VertexException("PerigeeKinematicState::error is requested for the invalid state");
35  return errorIsAvailable;
36  }
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 59 of file PerigeeKinematicState.h.

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

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

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

Returns the extended perigee parameters

Definition at line 70 of file PerigeeKinematicState.h.

References isValid(), and par.

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

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

Returns the reference point

Definition at line 49 of file PerigeeKinematicState.h.

References isValid(), and point.

49  {
50  if (!isValid())
51  throw VertexException("PerigeeKinematicState::point is requested for the invalid state");
52  return point;
53  }
Common base class.
const KinematicState& PerigeeKinematicState::theState ( ) const
inline

Definition at line 40 of file PerigeeKinematicState.h.

References inState, and isValid().

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

40  {
41  if (!isValid())
42  throw VertexException("PerigeeKinematicState::initial state is requested for the invalid state");
43  return inState;
44  }
Common base class.

Friends And Related Function Documentation

Definition at line 77 of file PerigeeKinematicState.h.

Member Data Documentation

ExtendedPerigeeTrajectoryError PerigeeKinematicState::cov
private

Definition at line 91 of file PerigeeKinematicState.h.

Referenced by perigeeError(), and PerigeeKinematicState().

bool PerigeeKinematicState::errorIsAvailable
private

Definition at line 93 of file PerigeeKinematicState.h.

Referenced by hasError(), and PerigeeKinematicState().

KinematicState PerigeeKinematicState::inState
private

Definition at line 92 of file PerigeeKinematicState.h.

Referenced by theState().

ExtendedPerigeeTrajectoryParameters PerigeeKinematicState::par
private

Definition at line 90 of file PerigeeKinematicState.h.

Referenced by PerigeeKinematicState(), and perigeeParameters().

GlobalPoint PerigeeKinematicState::point
private

Definition at line 89 of file PerigeeKinematicState.h.

Referenced by referencePoint().

bool PerigeeKinematicState::vl
private

Definition at line 94 of file PerigeeKinematicState.h.

Referenced by isValid(), and PerigeeKinematicState().