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 }
JacobianCartesianToCurvilinear.h
Likely.h
FreeTrajectoryState.h
MessageLogger.h
FreeTrajectoryState::createCartesianError
void createCartesianError(CartesianTrajectoryError &aCartesianError) const
Definition: FreeTrajectoryState.cc:31
FreeTrajectoryState::hasError
bool hasError() const
Definition: FreeTrajectoryState.h:77
CurvilinearTrajectoryError::valid
bool valid() const
Definition: CurvilinearTrajectoryError.h:49
JacobianCurvilinearToCartesian.h
JacobianCurvilinearToCartesian::jacobian
const AlgebraicMatrix65 & jacobian() const
Definition: JacobianCurvilinearToCartesian.h:24
FreeTrajectoryState::createCurvilinearError
void createCurvilinearError(CartesianTrajectoryError const &aCartesianError) const
Definition: FreeTrajectoryState.cc:39
AlgebraicMatrix56
ROOT::Math::SMatrix< double, 5, 6, ROOT::Math::MatRepStd< double, 5, 6 > > AlgebraicMatrix56
Definition: AlgebraicROOTObjects.h:56
FreeTrajectoryState::missingError
void missingError() const
Definition: FreeTrajectoryState.cc:16
FreeTrajectoryState::theGlobalParameters
GlobalTrajectoryParameters theGlobalParameters
Definition: FreeTrajectoryState.h:117
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
CurvilinearTrajectoryError::zeroFieldScaling
void zeroFieldScaling(double factor)
Definition: CurvilinearTrajectoryError.h:70
MagneticField::nominalValue
int nominalValue() const
The nominal field value for this map in kGauss.
Definition: MagneticField.h:49
DQMScaleToClient_cfi.factor
factor
Definition: DQMScaleToClient_cfi.py:8
JacobianCartesianToCurvilinear::jacobian
const AlgebraicMatrix56 & jacobian() const
Definition: JacobianCartesianToCurvilinear.h:24
FreeTrajectoryState::parameters
const GlobalTrajectoryParameters & parameters() const
Definition: FreeTrajectoryState.h:79
MagneticField.h
CartesianTrajectoryError::matrix
const AlgebraicSymMatrix66 & matrix() const
Definition: CartesianTrajectoryError.h:28
AlgebraicMatrix65
ROOT::Math::SMatrix< double, 6, 5, ROOT::Math::MatRepStd< double, 6, 5 > > AlgebraicMatrix65
Definition: AlgebraicROOTObjects.h:61
FreeTrajectoryState::theCurvilinearError
CurvilinearTrajectoryError theCurvilinearError
Definition: FreeTrajectoryState.h:118
CartesianTrajectoryError
Definition: CartesianTrajectoryError.h:15
JacobianCurvilinearToCartesian
Definition: JacobianCurvilinearToCartesian.h:14
GlobalTrajectoryParameters::magneticField
const MagneticField & magneticField() const
Definition: GlobalTrajectoryParameters.h:106
JacobianCartesianToCurvilinear
Definition: JacobianCartesianToCurvilinear.h:14
CurvilinearTrajectoryError::matrix
const AlgebraicSymMatrix55 & matrix() const
Definition: CurvilinearTrajectoryError.h:61
FreeTrajectoryState::rescaleError
void rescaleError(double factor)
Definition: FreeTrajectoryState.cc:46