CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KinematicState.h
Go to the documentation of this file.
1 #ifndef KinematicState_H
2 #define KinematicState_H
3 
9 
19 
20 public:
21 
28  {vl = false;}
29 
38  const MagneticField* field);
39 
41  const ParticleMass& mass, float m_sigma) :
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){}
47 
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 
69 
70  GlobalPoint globalPosition() const {return fts.position();}
71 
72  TrackCharge particleCharge() const {return fts.charge();}
73 
74 
75 
81 
82  bool isValid() const {return vl;}
83 
86 
88 
89 
90 private:
94 
95  bool vl;
96 };
97 #endif
dictionary parameters
Definition: Parameters.py:2
AlgebraicVector7 const & vector() const
The full vector (7 elements)
bool isValid() const
KinematicParametersError err
FreeTrajectoryState fts
const GlobalTrajectoryParameters & parameters() const
double ParticleMass
Definition: ParticleMass.h:5
GlobalVector globalMomentum() const
TrackCharge charge() const
GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
double charge(const std::vector< uint8_t > &Ampls)
float float float z
GlobalVector magneticFieldInInverseGeV(const GlobalPoint &x) const
ParticleMass mass() const
KinematicState(const FreeTrajectoryState &state, const ParticleMass &mass, float m_sigma)
int TrackCharge
Definition: TrackCharge.h:4
KinematicParametersError const & kinematicParametersError() const
GlobalVector momentum() const
GlobalPoint position() const
KinematicParameters const & kinematicParameters() const
const MagneticField * magneticField() const
GlobalVector magneticFieldInInverseGeV() const
KinematicParameters param
TrackCharge particleCharge() const
static int position[264][3]
Definition: ReadPGInfo.cc:509
bool operator==(const KinematicState &other) const
const MagneticField & magneticField() const
FreeTrajectoryState freeTrajectoryState() const
Definition: DDAxes.h:10
GlobalPoint globalPosition() const
GlobalTrajectoryParameters const & trajectoryParameters() const