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 Attributes
KinematicState Class Reference

#include <KinematicState.h>

Public Member Functions

FreeTrajectoryState freeTrajectoryState () const
 
GlobalVector globalMomentum () const
 
GlobalPoint globalPosition () const
 
bool isValid () const
 
KinematicParameters const & kinematicParameters () const
 
KinematicParametersError const & kinematicParametersError () const
 
 KinematicState ()
 
 KinematicState (const KinematicParameters &parameters, const KinematicParametersError &error, const TrackCharge &charge, const MagneticField *field)
 
const MagneticFieldmagneticField () const
 
ParticleMass mass () const
 
bool operator== (const KinematicState &other) const
 
TrackCharge particleCharge () const
 

Private Attributes

TrackCharge ch
 
KinematicParametersError err
 
KinematicParameters param
 
const MagneticFieldtheField
 
bool vl
 

Detailed Description

Class providing a state of particle needed for Kinematic Fit.

Kirill Prokofiev, March 2003

Definition at line 18 of file KinematicState.h.

Constructor & Destructor Documentation

KinematicState::KinematicState ( )
inline

Default constructor for internal KinematicFitPrimitives library needs only

Definition at line 27 of file KinematicState.h.

References vl.

28  {vl = false;}
KinematicState::KinematicState ( const KinematicParameters parameters,
const KinematicParametersError error,
const TrackCharge charge,
const MagneticField field 
)

Constructor taking directly KinematicParameters KinematicError and Charge. To be used with proper KinematicStateBuilder.

Definition at line 4 of file KinematicState.cc.

6  :
7  theField(field), param(parameters),err(error), ch(charge), vl(true)
8 {}
KinematicParametersError err
double charge(const std::vector< uint8_t > &Ampls)
TrackCharge ch
const MagneticField * theField
KinematicParameters param

Member Function Documentation

FreeTrajectoryState KinematicState::freeTrajectoryState ( ) const

KinematicState -> FreeTrajectoryState converter

Definition at line 20 of file KinematicState.cc.

References globalMomentum(), globalPosition(), kinematicParametersError(), KinematicParametersError::matrix(), particleCharge(), and theField.

Referenced by KinematicRefittedTrackState::freeTrajectoryState(), PerigeeKinematicState::PerigeeKinematicState(), TrackKinematicStatePropagator::propagateToTheTransversePCACharged(), and TrackKinematicStatePropagator::propagateToTheTransversePCANeutral().

21 {
24  AlgebraicSymMatrix66 cError =
26  CartesianTrajectoryError cartError(cError);
27 // cout<<"conversion called"<<endl;
28 // cout<<"parameters::position"<<globalPosition()<<endl;
29 // cout<<"parameters::momentum"<<globalMomentum()<<endl;
30 // cout<<"parameters::error"<<cError<<endl;
31  return FreeTrajectoryState(globalPar,cartError);
32 }
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
GlobalVector globalMomentum() const
KinematicParametersError const & kinematicParametersError() const
const MagneticField * theField
TrackCharge particleCharge() const
GlobalPoint globalPosition() const
AlgebraicSymMatrix77 matrix() const
GlobalVector KinematicState::globalMomentum ( ) const
inline
GlobalPoint KinematicState::globalPosition ( ) const
inline
bool KinematicState::isValid ( void  ) const
inline
KinematicParameters const& KinematicState::kinematicParameters ( ) const
inline
KinematicParametersError const& KinematicState::kinematicParametersError ( ) const
inline
const MagneticField* KinematicState::magneticField ( ) const
inline
ParticleMass KinematicState::mass ( ) const
inline
bool KinematicState::operator== ( const KinematicState other) const

Definition at line 11 of file KinematicState.cc.

References kinematicParameters(), kinematicParametersError(), KinematicParametersError::matrix(), and KinematicParameters::vector().

12 {
13  bool res = false;
14  if((kinematicParameters().vector() == other.kinematicParameters().vector())&&
15  (kinematicParametersError().matrix() == other.kinematicParametersError().matrix())) res = true;
16  return res;
17 }
AlgebraicVector7 const & vector() const
The full vector (7 elements)
KinematicParametersError const & kinematicParametersError() const
KinematicParameters const & kinematicParameters() const
AlgebraicSymMatrix77 matrix() const
TrackCharge KinematicState::particleCharge ( ) const
inline

Member Data Documentation

TrackCharge KinematicState::ch
private

Definition at line 80 of file KinematicState.h.

Referenced by particleCharge().

KinematicParametersError KinematicState::err
private

Definition at line 79 of file KinematicState.h.

Referenced by kinematicParametersError().

KinematicParameters KinematicState::param
private

Definition at line 78 of file KinematicState.h.

Referenced by globalMomentum(), globalPosition(), kinematicParameters(), and mass().

const MagneticField* KinematicState::theField
private

Definition at line 77 of file KinematicState.h.

Referenced by freeTrajectoryState(), and magneticField().

bool KinematicState::vl
private

Definition at line 82 of file KinematicState.h.

Referenced by isValid(), and KinematicState().