#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 ¶meters, const KinematicParametersError &error, const TrackCharge &charge, const MagneticField *field) | |
const MagneticField * | magneticField () const |
ParticleMass | mass () const |
bool | operator== (const KinematicState &other) const |
TrackCharge | particleCharge () const |
Private Attributes | |
TrackCharge | ch |
KinematicParametersError | err |
KinematicParameters | param |
const MagneticField * | theField |
bool | vl |
Class providing a state of particle needed for Kinematic Fit.
Kirill Prokofiev, March 2003
Definition at line 18 of file KinematicState.h.
KinematicState::KinematicState | ( | ) | [inline] |
Default constructor for internal KinematicFitPrimitives library needs only
Definition at line 27 of file KinematicState.h.
References vl.
{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.
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 PerigeeKinematicState::PerigeeKinematicState(), TrackKinematicStatePropagator::propagateToTheTransversePCACharged(), and TrackKinematicStatePropagator::propagateToTheTransversePCANeutral().
{ GlobalTrajectoryParameters globalPar(globalPosition(), globalMomentum(), particleCharge(), theField); AlgebraicSymMatrix66 cError = kinematicParametersError().matrix().Sub<AlgebraicSymMatrix66>(0,0); CartesianTrajectoryError cartError(cError); // cout<<"conversion called"<<endl; // cout<<"parameters::position"<<globalPosition()<<endl; // cout<<"parameters::momentum"<<globalMomentum()<<endl; // cout<<"parameters::error"<<cError<<endl; return FreeTrajectoryState(globalPar,cartError); }
GlobalVector KinematicState::globalMomentum | ( | ) | const [inline] |
Definition at line 55 of file KinematicState.h.
References KinematicParameters::momentum(), and param.
Referenced by ParticleKinematicLinearizedTrackState::computeChargedJacobians(), ParticleKinematicLinearizedTrackState::computeNeutralJacobians(), KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters(), freeTrajectoryState(), TrackKinematicStatePropagator::propagateToTheTransversePCACharged(), and TrackKinematicStatePropagator::propagateToTheTransversePCANeutral().
GlobalPoint KinematicState::globalPosition | ( | ) | const [inline] |
Definition at line 57 of file KinematicState.h.
References param, and KinematicParameters::position().
Referenced by ParticleKinematicLinearizedTrackState::computeChargedJacobians(), ParticleKinematicLinearizedTrackState::computeNeutralJacobians(), KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters(), freeTrajectoryState(), TrackKinematicStatePropagator::propagateToTheTransversePCACharged(), and TrackKinematicStatePropagator::propagateToTheTransversePCANeutral().
bool KinematicState::isValid | ( | void | ) | const [inline] |
Definition at line 69 of file KinematicState.h.
References vl.
Referenced by KinematicConstrainedVertexFitterT< nTrk, nConstraint >::fit(), KinematicConstrainedVertexFitter::fit(), and PerigeeKinematicState::PerigeeKinematicState().
{return vl;}
KinematicParameters const& KinematicState::kinematicParameters | ( | ) | const [inline] |
Access methods to parameters and private data
Definition at line 51 of file KinematicState.h.
References param.
Referenced by KinematicConstrainedVertexFitterT< nTrk, nConstraint >::fit(), KinematicConstrainedVertexFitter::fit(), operator==(), TrackKinematicStatePropagator::propagateToTheTransversePCANeutral(), and VirtualKinematicParticle::stateAtPoint().
{return param;}
KinematicParametersError const& KinematicState::kinematicParametersError | ( | ) | const [inline] |
Definition at line 53 of file KinematicState.h.
References err.
Referenced by KinematicConstrainedVertexFitterT< nTrk, nConstraint >::fit(), KinematicConstrainedVertexFitter::fit(), freeTrajectoryState(), operator==(), PerigeeKinematicState::PerigeeKinematicState(), TrackKinematicStatePropagator::propagateToTheTransversePCACharged(), and TrackKinematicStatePropagator::propagateToTheTransversePCANeutral().
{return err;}
const MagneticField* KinematicState::magneticField | ( | ) | const [inline] |
Definition at line 72 of file KinematicState.h.
References theField.
Referenced by KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters(), TrackKinematicStatePropagator::propagateToTheTransversePCACharged(), TrackKinematicStatePropagator::propagateToTheTransversePCANeutral(), TransientTrackKinematicParticle::TransientTrackKinematicParticle(), and VirtualKinematicParticle::VirtualKinematicParticle().
{return theField;}
ParticleMass KinematicState::mass | ( | ) | const [inline] |
The mass of the particle
Definition at line 44 of file KinematicState.h.
References param, and KinematicParameters::vector().
Referenced by KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters(), TrackKinematicStatePropagator::propagateToTheTransversePCACharged(), and TrackKinematicStatePropagator::propagateToTheTransversePCANeutral().
bool KinematicState::operator== | ( | const KinematicState & | other | ) | const |
Definition at line 11 of file KinematicState.cc.
References kinematicParameters(), kinematicParametersError(), KinematicParametersError::matrix(), and KinematicParameters::vector().
{ bool res = false; if((kinematicParameters().vector() == other.kinematicParameters().vector())&& (kinematicParametersError().matrix() == other.kinematicParametersError().matrix())) res = true; return res; }
TrackCharge KinematicState::particleCharge | ( | ) | const [inline] |
Definition at line 59 of file KinematicState.h.
References ch.
Referenced by KinematicPerigeeConversions::extendedPerigeeFromKinematicParameters(), freeTrajectoryState(), TrackKinematicStatePropagator::propagateToTheTransversePCA(), TrackKinematicStatePropagator::propagateToTheTransversePCACharged(), and TrackKinematicStatePropagator::propagateToTheTransversePCANeutral().
{return ch;}
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().