CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
KinematicState.cc
Go to the documentation of this file.
3 
6  const MagneticField* field) :
7  theField(field), param(parameters),err(error), ch(charge), vl(true)
8 {}
9 
10 
12 {
13  bool res = false;
14  if((kinematicParameters().vector() == other.kinematicParameters().vector())&&
15  (kinematicParametersError().matrix() == other.kinematicParametersError().matrix())) res = true;
16  return res;
17 }
18 
19 
21 {
24  AlgebraicSymMatrix66 cError =
26  CartesianTrajectoryError cartError(cError);
27 // cout<<"conversion called"<<endl;
28 // cout<<"parameters::position"<<globalPosition()<<endl;
29 // cout<<"parameters::momentum"<<globalMomentum()<<endl;
30 // cout<<"parameters::error"<<cError<<endl;
31  return FreeTrajectoryState(globalPar,cartError);
32 }
33 /*
34 AlgebraicSymMatrix KinematicState::weightMatrix() const
35 {
36  GlobalTrajectoryParameters gtp = freeTrajectoryState().parameters();
37  cout<<"curvilinear error is"<<freeTrajectoryState().curvilinearError().matrix()<<endl;
38  return err.weightMatrix(gtp);
39 }
40 */
dictionary parameters
Definition: Parameters.py:2
AlgebraicVector7 const & vector() const
The full vector (7 elements)
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
GlobalVector globalMomentum() const
double charge(const std::vector< uint8_t > &Ampls)
int TrackCharge
Definition: TrackCharge.h:4
KinematicParametersError const & kinematicParametersError() const
KinematicParameters const & kinematicParameters() const
const MagneticField * theField
TrackCharge particleCharge() const
bool operator==(const KinematicState &other) const
FreeTrajectoryState freeTrajectoryState() const
GlobalPoint globalPosition() const
AlgebraicSymMatrix77 matrix() const