CMS 3D CMS Logo

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 17 of file KinematicState.h.

Constructor & Destructor Documentation

KinematicState::KinematicState ( )
inline

Default constructor for internal KinematicFitPrimitives library needs only

Definition at line 24 of file KinematicState.h.

References ALCARECOTkAlJpsiMuMu_cff::charge, relativeConstraints::error, and vl.

24 { 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.

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

Definition at line 37 of file KinematicState.h.

References operator==(), and trackingPlots::other.

38  : fts(state),
39  param(state.position().x(),
40  state.position().y(),
41  state.position().z(),
42  state.momentum().x(),
43  state.momentum().y(),
44  state.momentum().z(),
45  mass),
46  err(state.cartesianError(), m_sigma),
47  vl(true) {}
KinematicParametersError err
CartesianTrajectoryError cartesianError() const
FreeTrajectoryState fts
T y() const
Definition: PV3DBase.h:60
ParticleMass mass() const
T z() const
Definition: PV3DBase.h:61
GlobalVector momentum() const
GlobalPoint position() const
KinematicParameters param
T x() const
Definition: PV3DBase.h:59

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 81 of file KinematicState.h.

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

Referenced by KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters().

81  {
83  }
GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
GlobalTrajectoryParameters const & trajectoryParameters() const
GlobalVector KinematicState::magneticFieldInInverseGeV ( ) const
inline

Definition at line 84 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().

Referenced by KinematicState().

14  {
15  return (kinematicParameters().vector() == other.kinematicParameters().vector()) &&
17 }
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 91 of file KinematicState.h.

Referenced by kinematicParametersError().

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

Definition at line 90 of file KinematicState.h.

Referenced by kinematicParameters(), and mass().

bool KinematicState::vl
private

Definition at line 93 of file KinematicState.h.

Referenced by isValid(), and KinematicState().