CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
KinematicState.cc
Go to the documentation of this file.
3 
6  const TrackCharge& charge,
7  const MagneticField* field)
8  : fts(GlobalTrajectoryParameters(parameters.position(), parameters.momentum(), charge, field),
10  param(parameters),
11  err(error),
12  vl(true) {}
13 
14 bool KinematicState::operator==(const KinematicState& other) const {
15  return (kinematicParameters().vector() == other.kinematicParameters().vector()) &&
17 }
18 
19 /*
20 void KinematicState::setFreeTrajectoryState() const {
21  GlobalTrajectoryParameters globalPar(globalPosition(), globalMomentum(),
22  particleCharge(), theField);
23  AlgebraicSymMatrix66 cError =
24  kinematicParametersError().matrix().Sub<AlgebraicSymMatrix66>(0,0);
25  CartesianTrajectoryError cartError(cError);
26 // cout<<"conversion called"<<endl;
27 // cout<<"parameters::position"<<globalPosition()<<endl;
28 // cout<<"parameters::momentum"<<globalMomentum()<<endl;
29 // cout<<"parameters::error"<<cError<<endl;
30  fts = FreeTrajectoryState(globalPar,cartError);
31 }
32 */
AlgebraicVector7 const & vector() const
The full vector (7 elements)
AlgebraicSymMatrix77 const & matrix() const
int TrackCharge
Definition: TrackCharge.h:4
KinematicParametersError const & kinematicParametersError() const
ROOT::Math::SMatrix< double, 6, 6, ROOT::Math::MatRepSym< double, 6 > > AlgebraicSymMatrix66
KinematicParameters const & kinematicParameters() const
static int position[264][3]
Definition: ReadPGInfo.cc:289
bool operator==(const KinematicState &other) const