CMS 3D CMS Logo

KinematicState.h
Go to the documentation of this file.
1 #ifndef KinematicState_H
2 #define KinematicState_H
3 
9 
18 public:
24  KinematicState() { vl = false; }
25 
34  const TrackCharge& charge,
35  const MagneticField* field);
36 
37  KinematicState(const FreeTrajectoryState& state, const ParticleMass& mass, float m_sigma)
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) {}
48 
49  bool operator==(const KinematicState& other) const;
50 
54  ParticleMass mass() const { return param.vector()[6]; }
55 
61  KinematicParameters const& kinematicParameters() const { return param; }
62 
64 
66 
67  GlobalVector globalMomentum() const { return fts.momentum(); }
68 
69  GlobalPoint globalPosition() const { return fts.position(); }
70 
71  TrackCharge particleCharge() const { return fts.charge(); }
72 
78 
79  bool isValid() const { return vl; }
80 
83  }
85 
87 
88 private:
92 
93  bool vl;
94 };
95 #endif
Vector3DBase
Definition: Vector3DBase.h:8
KinematicState::particleCharge
TrackCharge particleCharge() const
Definition: KinematicState.h:71
FreeTrajectoryState::momentum
GlobalVector momentum() const
Definition: FreeTrajectoryState.h:68
DDAxes::y
BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:29
FreeTrajectoryState.h
TrackCharge
int TrackCharge
Definition: TrackCharge.h:4
KinematicState::vl
bool vl
Definition: KinematicState.h:93
ParticleMass
double ParticleMass
Definition: ParticleMass.h:4
KinematicState
Definition: KinematicState.h:17
FreeTrajectoryState::charge
TrackCharge charge() const
Definition: FreeTrajectoryState.h:69
KinematicState::globalMomentum
GlobalVector globalMomentum() const
Definition: KinematicState.h:67
DDAxes::x
FreeTrajectoryState::position
GlobalPoint position() const
Definition: FreeTrajectoryState.h:67
relativeConstraints.error
error
Definition: relativeConstraints.py:53
KinematicParameters.h
DDAxes::z
KinematicState::trajectoryParameters
GlobalTrajectoryParameters const & trajectoryParameters() const
Definition: KinematicState.h:65
KinematicState::kinematicParametersError
KinematicParametersError const & kinematicParametersError() const
Definition: KinematicState.h:63
trackingPlots.other
other
Definition: trackingPlots.py:1467
GlobalTrajectoryParameters
Definition: GlobalTrajectoryParameters.h:15
Point3DBase< float, GlobalTag >
KinematicState::fts
FreeTrajectoryState fts
Definition: KinematicState.h:89
KinematicState::operator==
bool operator==(const KinematicState &other) const
Definition: KinematicState.cc:14
KinematicState::magneticFieldInInverseGeV
GlobalVector magneticFieldInInverseGeV() const
Definition: KinematicState.h:84
KinematicParametersError.h
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition: ALCARECOTkAlJpsiMuMu_cff.py:47
funct::true
true
Definition: Factorize.h:173
KinematicState::err
KinematicParametersError err
Definition: KinematicState.h:91
KinematicState::KinematicState
KinematicState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma)
Definition: KinematicState.h:37
KinematicState::KinematicState
KinematicState()
Definition: KinematicState.h:24
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
KinematicParameters
Definition: KinematicParameters.h:15
FreeTrajectoryState::parameters
const GlobalTrajectoryParameters & parameters() const
Definition: FreeTrajectoryState.h:79
KinematicParametersError
Definition: KinematicParametersError.h:20
MagneticField.h
KinematicState::isValid
bool isValid() const
Definition: KinematicState.h:79
KinematicState::mass
ParticleMass mass() const
Definition: KinematicState.h:54
KinematicState::param
KinematicParameters param
Definition: KinematicState.h:90
RunInfoPI::state
state
Definition: RunInfoPayloadInspectoHelper.h:16
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
KinematicParameters::vector
AlgebraicVector7 const & vector() const
The full vector (7 elements)
Definition: KinematicParameters.h:31
GlobalTrajectoryParameters::magneticFieldInInverseGeV
GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
Definition: GlobalTrajectoryParameters.cc:35
GlobalTrajectoryParameters::magneticField
const MagneticField & magneticField() const
Definition: GlobalTrajectoryParameters.h:106
KinematicState::magneticField
const MagneticField * magneticField() const
Definition: KinematicState.h:86
KinematicState::kinematicParameters
KinematicParameters const & kinematicParameters() const
Definition: KinematicState.h:61
KinematicState::magneticFieldInInverseGeV
GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
Definition: KinematicState.h:81
MagneticField
Definition: MagneticField.h:19
ParticleMass.h
KinematicState::freeTrajectoryState
FreeTrajectoryState freeTrajectoryState() const
Definition: KinematicState.h:77
KinematicState::globalPosition
GlobalPoint globalPosition() const
Definition: KinematicState.h:69