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)
 
 KinematicState (const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma)
 
const MagneticFieldmagneticField () const
 
GlobalVector magneticFieldInInverseGeV (const GlobalPoint &x) const
 
GlobalVector magneticFieldInInverseGeV () const
 
ParticleMass mass () const
 
bool operator== (const KinematicState &other) const
 
TrackCharge particleCharge () const
 
GlobalTrajectoryParameters const & trajectoryParameters () const
 

Private Attributes

KinematicParametersError err
 
FreeTrajectoryState fts
 
KinematicParameters param
 
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 6 of file KinematicState.cc.

8  :
9  fts(GlobalTrajectoryParameters(parameters.position(),parameters.momentum(),charge,field),
11  param(parameters),err(error), vl(true){}
KinematicParametersError err
FreeTrajectoryState fts
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
AlgebraicSymMatrix77 const & matrix() const
KinematicParameters param
GlobalPoint position() const
GlobalVector momentum() const
KinematicState::KinematicState ( const FreeTrajectoryState state,
const ParticleMass mass,
float  m_sigma 
)
inline

Definition at line 40 of file KinematicState.h.

41  :
42  fts(state),
43  param(state.position().x(),state.position().y(),state.position().z(),
44  state.momentum().x(),state.momentum().y(),state.momentum().z(),
45  mass),
46  err(state.cartesianError(),m_sigma), vl(true){}
KinematicParametersError err
CartesianTrajectoryError cartesianError() const
FreeTrajectoryState fts
T y() const
Definition: PV3DBase.h:63
ParticleMass mass() const
T z() const
Definition: PV3DBase.h:64
GlobalVector momentum() const
GlobalPoint position() const
KinematicParameters param
T x() const
Definition: PV3DBase.h:62

Member Function Documentation

FreeTrajectoryState KinematicState::freeTrajectoryState ( ) const
inline
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
GlobalVector KinematicState::magneticFieldInInverseGeV ( const GlobalPoint x) const
inline

Definition at line 84 of file KinematicState.h.

References GlobalTrajectoryParameters::magneticFieldInInverseGeV(), and trajectoryParameters().

Referenced by KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters().

GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
GlobalTrajectoryParameters const & trajectoryParameters() const
GlobalVector KinematicState::magneticFieldInInverseGeV ( ) const
inline

Definition at line 85 of file KinematicState.h.

References GlobalTrajectoryParameters::magneticFieldInInverseGeV(), and trajectoryParameters().

GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
GlobalTrajectoryParameters const & trajectoryParameters() const
ParticleMass KinematicState::mass ( ) const
inline
bool KinematicState::operator== ( const KinematicState other) const

Definition at line 14 of file KinematicState.cc.

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

15 {
16  return (kinematicParameters().vector() == other.kinematicParameters().vector()) &&
18 }
AlgebraicVector7 const & vector() const
The full vector (7 elements)
AlgebraicSymMatrix77 const & matrix() const
KinematicParametersError const & kinematicParametersError() const
KinematicParameters const & kinematicParameters() const
TrackCharge KinematicState::particleCharge ( ) const
inline
GlobalTrajectoryParameters const& KinematicState::trajectoryParameters ( ) const
inline

Member Data Documentation

KinematicParametersError KinematicState::err
private

Definition at line 93 of file KinematicState.h.

Referenced by kinematicParametersError().

FreeTrajectoryState KinematicState::fts
private
KinematicParameters KinematicState::param
private

Definition at line 92 of file KinematicState.h.

Referenced by kinematicParameters(), and mass().

bool KinematicState::vl
private

Definition at line 95 of file KinematicState.h.

Referenced by isValid(), and KinematicState().