CMS 3D CMS Logo

Functions
AnalyticalErrorPropagation.h File Reference
#include "FWCore/Utilities/interface/Visibility.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 15 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().

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