CMS 3D CMS Logo

FreeTrajectoryState.cc
Go to the documentation of this file.
4 
6 
8 
10 
11 #include <cmath>
12 #include <sstream>
13 
14 // void bPoint(){}
15 
17  std::stringstream form;
18  form << "FreeTrajectoryState: attempt to access errors when none available"
19  << "\nCurvilinear error valid/values :" << theCurvilinearError.valid() << "\n"
21  edm::LogWarning("FreeTrajectoryState") << "(was exception) " << form.str();
22  // throw TrajectoryStateException(form.str());
23  // bPoint();
24 }
25 
26 // implementation of non-trivial methods of FreeTrajectoryState
27 
28 // Warning: these methods violate constness
29 
30 // convert curvilinear errors to cartesian
33  const AlgebraicMatrix65& jac = curv2Cart.jacobian();
34 
35  aCartesianError = ROOT::Math::Similarity(jac, theCurvilinearError.matrix());
36 }
37 
38 // convert cartesian errors to curvilinear
41  const AlgebraicMatrix56& jac = cart2Curv.jacobian();
42 
43  theCurvilinearError = ROOT::Math::Similarity(jac, aCartesianError.matrix());
44 }
45 
47  if UNLIKELY (!hasError())
48  return;
49  bool zeroField = (parameters().magneticField().nominalValue() == 0);
50  if UNLIKELY (zeroField)
52  else
54 }
CurvilinearTrajectoryError theCurvilinearError
const GlobalTrajectoryParameters & parameters() const
const AlgebraicMatrix65 & jacobian() const
ROOT::Math::SMatrix< double, 5, 6, ROOT::Math::MatRepStd< double, 5, 6 > > AlgebraicMatrix56
GlobalTrajectoryParameters theGlobalParameters
const AlgebraicMatrix56 & jacobian() const
void rescaleError(double factor)
const AlgebraicSymMatrix55 & matrix() const
const MagneticField & magneticField() const
void createCartesianError(CartesianTrajectoryError &aCartesianError) const
const AlgebraicSymMatrix66 & matrix() const
int nominalValue() const
The nominal field value for this map in kGauss.
Definition: MagneticField.h:49
ROOT::Math::SMatrix< double, 6, 5, ROOT::Math::MatRepStd< double, 6, 5 > > AlgebraicMatrix65
#define UNLIKELY(x)
Definition: Likely.h:21
Log< level::Warning, false > LogWarning
void createCurvilinearError(CartesianTrajectoryError const &aCartesianError) const