Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsAlignment::detail Namespace Reference

Classes

class  AlignmentErrorCategory
 
struct  TrackAlignmentState
 struct to store info needed for track-based alignment More...
 

Functions

void resetAlignmentDerivative (Acts::AlignmentToBoundMatrix &alignToBound, AlignmentMask mask)
 
template<typename traj_t , typename parameters_t = BoundTrackParameters>
TrackAlignmentState trackAlignmentState (const GeometryContext &gctx, const traj_t &multiTraj, const size_t &entryIndex, const std::pair< ActsDynamicMatrix, std::unordered_map< size_t, size_t >> &globalTrackParamsCov, const std::unordered_map< const Surface *, size_t > &idxedAlignSurfaces, const AlignmentMask &alignMask)
 

Function Documentation

void ActsAlignment::detail::resetAlignmentDerivative ( Acts::AlignmentToBoundMatrix alignToBound,
AlignmentMask  mask 
)

Reset some columns of the alignment to bound derivative to zero if the relevant degree of freedom is fixed

Parameters
alignToBoundThe alignment to bound parameters derivative
maskThe alignment mask

Definition at line 14 of file AlignmentEngine.cpp.

View newest version in sPHENIX GitHub at line 14 of file AlignmentEngine.cpp

References ACTS_CHECK_BIT, Acts::eAlignmentCenter0, Acts::eAlignmentCenter1, Acts::eAlignmentCenter2, Acts::eAlignmentRotation0, Acts::eAlignmentRotation1, and Acts::eAlignmentRotation2.

Referenced by trackAlignmentState().

+ Here is the caller graph for this function:

template<typename traj_t , typename parameters_t = BoundTrackParameters>
TrackAlignmentState ActsAlignment::detail::trackAlignmentState ( const GeometryContext gctx,
const traj_t &  multiTraj,
const size_t &  entryIndex,
const std::pair< ActsDynamicMatrix, std::unordered_map< size_t, size_t >> &  globalTrackParamsCov,
const std::unordered_map< const Surface *, size_t > &  idxedAlignSurfaces,
const AlignmentMask &  alignMask 
)

Calculate the first and second derivative of chi2 w.r.t. alignment parameters for a single track

Suppose there are n measurements on the track, and m (m<=n) of them are on alignable surface, then (eAlignmentSize*m) alignment parameters will be involved for this particular track, i.e. this track will contribute to at most (eAlignmentSize*m*2) elements of the full chi2 second derivative matrix

Template Parameters
source_link_tThe source link type of the trajectory
parameters_tThe track parameters type
Parameters
gctxThe current geometry context object
multiTrajThe MultiTrajectory containing the trajectory to be investigated
entryIndexThe trajectory entry index
globalTrackParamsCovThe global track parameters covariance for a single track and the starting row/column for smoothed states. This contains all smoothed track states including those non-measurement states. Selection of certain rows/columns for measurement states is needed.
idxedAlignSurfacesThe indexed surfaces to be aligned
Returns
The track alignment state containing fundamental alignment ingredients

Definition at line 105 of file AlignmentEngine.hpp.

View newest version in sPHENIX GitHub at line 105 of file AlignmentEngine.hpp

References ActsAlignment::detail::TrackAlignmentState::alignedSurfaces, ActsAlignment::detail::TrackAlignmentState::alignmentDof, ActsAlignment::detail::TrackAlignmentState::alignmentToChi2Derivative, ActsAlignment::detail::TrackAlignmentState::alignmentToChi2SecondDerivative, ActsAlignment::detail::TrackAlignmentState::alignmentToResidualDerivative, ActsAlignment::detail::TrackAlignmentState::chi2, Acts::eAlignmentSize, Acts::eBoundSize, Acts::eFreeDir0, Acts::MultiTrajectoryHelpers::freeSmoothed(), H, it, ActsAlignment::detail::TrackAlignmentState::measurementCovariance, ActsAlignment::detail::TrackAlignmentState::measurementDim, Acts::MeasurementFlag, ActsAlignment::detail::TrackAlignmentState::projectionMatrix, resetAlignmentDerivative(), ActsAlignment::detail::TrackAlignmentState::residual, ActsAlignment::detail::TrackAlignmentState::residualCovariance, filter::state, writeMapConfig::surface, ActsAlignment::detail::TrackAlignmentState::trackParametersCovariance, and ActsAlignment::detail::TrackAlignmentState::trackParametersDim.

+ Here is the call graph for this function: