CMS 3D CMS Logo

Functions
AnalyticalErrorPropagation.h File Reference
#include "FWCore/Utilities/interface/Visibility.h"
#include "FWCore/Utilities/interface/Likely.h"
#include "TrackingTools/AnalyticalJacobians/interface/AnalyticalCurvilinearJacobian.h"
#include "TrackingTools/TrajectoryParametrization/interface/GlobalTrajectoryParameters.h"
#include "TrackingTools/TrajectoryState/interface/FreeTrajectoryState.h"
#include "TrackingTools/TrajectoryState/interface/TrajectoryStateOnSurface.h"
#include "TrackingTools/TrajectoryState/interface/SurfaceSideDefinition.h"

Go to the source code of this file.

Functions

std::pair< TrajectoryStateOnSurface, double > analyticalErrorPropagation (const FreeTrajectoryState &startingState, const Surface &surface, SurfaceSideDefinition::SurfaceSide side, const GlobalTrajectoryParameters &destParameters, const double &s)
 

Function Documentation

std::pair<TrajectoryStateOnSurface, double> analyticalErrorPropagation ( const FreeTrajectoryState startingState,
const Surface surface,
SurfaceSideDefinition::SurfaceSide  side,
const GlobalTrajectoryParameters destParameters,
const double &  s 
)
inline

Definition at line 14 of file AnalyticalErrorPropagation.h.

References FreeTrajectoryState::curvilinearError(), FreeTrajectoryState::hasError(), AnalyticalCurvilinearJacobian::jacobian(), CurvilinearTrajectoryError::matrix(), GlobalTrajectoryParameters::momentum(), FreeTrajectoryState::parameters(), GlobalTrajectoryParameters::position(), alignCSCRings::s, and UNLIKELY.

Referenced by RKPropagatorInS::propagateWithPath().

19  {
20  if
21  UNLIKELY(!startingState.hasError())
22  // return state without errors
23  return std::pair<TrajectoryStateOnSurface, double>(TrajectoryStateOnSurface(destParameters, surface, side), s);
24 
25  //
26  // compute jacobian
27  //
28 
29  // FIXME: Compute mean B field between startingState and destParameters and pass it to analyticalJacobian
30  //GlobalPoint xStart = startingState.position();
31  //GlobalPoint xDest = destParameters.position();
32  //GlobalVector h1 = destParameters.magneticFieldInInverseGeV(xStart);
33  //GlobalVector h2 = destParameters.magneticFieldInInverseGeV(xDest);
34  //GlobalVector h = 0.5*(h1+h2);
35  //LogDebug("RungeKutta") << "AnalyticalErrorPropagation: The Fields are: " << h1 << ", " << h2 << ", " << h ;
36 
37  //
38  AnalyticalCurvilinearJacobian analyticalJacobian(
39  startingState.parameters(), destParameters.position(), destParameters.momentum(), s);
40  auto const& jacobian = analyticalJacobian.jacobian();
41  return std::pair<TrajectoryStateOnSurface, double>(
43  destParameters, ROOT::Math::Similarity(jacobian, startingState.curvilinearError().matrix()), surface, side),
44  s);
45 }
const GlobalTrajectoryParameters & parameters() const
const AlgebraicMatrix55 & jacobian() const
const CurvilinearTrajectoryError & curvilinearError() const
const AlgebraicSymMatrix55 & matrix() const
#define UNLIKELY(x)
Definition: Likely.h:21