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
AlgebraicVector7 const & vector() const
The full vector (7 elements)
KinematicParametersError err
KinematicParametersError const & kinematicParametersError() const
FreeTrajectoryState fts
double ParticleMass
Definition: ParticleMass.h:4
const GlobalTrajectoryParameters & parameters() const
GlobalPoint globalPosition() const
KinematicState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma)
GlobalPoint position() const
int TrackCharge
Definition: TrackCharge.h:4
TrackCharge charge() const
GlobalVector magneticFieldInInverseGeV() const
KinematicParameters const & kinematicParameters() const
GlobalVector globalMomentum() const
GlobalVector momentum() const
FreeTrajectoryState freeTrajectoryState() const
GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
const MagneticField & magneticField() const
KinematicParameters param
GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
GlobalTrajectoryParameters const & trajectoryParameters() const
static int position[264][3]
Definition: ReadPGInfo.cc:289
ParticleMass mass() const
const MagneticField * magneticField() const
bool operator==(const KinematicState &other) const
bool isValid() const
TrackCharge particleCharge() const