#include <CompositeAlignmentParameters.h>
Public Types | |
typedef std::map< AlignableDetOrUnitPtr, Alignable * > | AlignableDetToAlignableMap |
typedef std::map< Alignable *, int > | Alilenmap |
typedef std::map< Alignable *, int > | Aliposmap |
typedef align::Alignables | Components |
vector of alignable components More... | |
typedef AlignmentParametersData::DataContainer | DataContainer |
Public Member Functions | |
Alignable * | alignableFromAlignableDet (const AlignableDetOrUnitPtr &adet) const |
Get relevant Alignable from AlignableDet. More... | |
CompositeAlignmentParameters * | clone (const AlgebraicVector &par, const AlgebraicSymMatrix &cov) const |
Clone parameters. More... | |
CompositeAlignmentParameters * | clone (const AlgebraicVector &par, const AlgebraicSymMatrix &cov, const AlignableDetToAlignableMap &alimap, const Aliposmap &aliposmap, const Alilenmap &alilenmap) const |
Clone parameters. More... | |
Components | components () const |
Get vector of alignable components. More... | |
CompositeAlignmentParameters (const AlgebraicVector &par, const AlgebraicSymMatrix &cov, const Components &comp) | |
constructors More... | |
CompositeAlignmentParameters (const AlgebraicVector &par, const AlgebraicSymMatrix &cov, const Components &comp, const AlignableDetToAlignableMap &alimap, const Aliposmap &aliposmap, const Alilenmap &alilenmap) | |
CompositeAlignmentParameters (const DataContainer &data, const Components &comp, const AlignableDetToAlignableMap &alimap, const Aliposmap &aliposmap, const Alilenmap &alilenmap) | |
AlgebraicVector | correctionTerm (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDet *> &alidetvec) const |
for backward compatibility, use std::vector<AlignableDetOrUnitPtr> More... | |
AlgebraicVector | correctionTerm (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDetOrUnitPtr > &alidetvec) const |
const AlgebraicSymMatrix & | covariance () const |
Get parameter covariance matrix. More... | |
AlgebraicSymMatrix | covarianceSubset (const align::Alignables &) const |
Extract covariance matrix for subset of alignables. More... | |
AlgebraicMatrix | covarianceSubset (const align::Alignables &, const align::Alignables &) const |
Extract covariance matrix elements between two subsets of alignables. More... | |
AlgebraicMatrix | derivatives (const TrajectoryStateOnSurface &tsos, const AlignableDetOrUnitPtr &alidet) const |
Get derivatives. More... | |
AlgebraicMatrix | derivatives (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDet *> &alidetvec) const |
for backward compatibility, use std::vector<AlignableDetOrUnitPtr> More... | |
AlgebraicMatrix | derivatives (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDetOrUnitPtr > &alidetvec) const |
AlgebraicMatrix | derivativesLegacy (const TrajectoryStateOnSurface &tsos, AlignableDet *alidet) const |
AlgebraicMatrix | derivativesLegacy (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDet *> &alidetvec) const |
const AlgebraicVector & | parameters () const |
Get alignment parameters. More... | |
AlgebraicVector | parameterSubset (const align::Alignables &) const |
Extract parameters for subset of alignables. More... | |
AlgebraicMatrix | selectedDerivatives (const TrajectoryStateOnSurface &tsos, const AlignableDetOrUnitPtr &alidet) const |
Get derivatives for selected alignables. More... | |
AlgebraicMatrix | selectedDerivatives (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDet *> &alidetvec) const |
for backward compatibility, use std::vector<AlignableDetOrUnitPtr> More... | |
AlgebraicMatrix | selectedDerivatives (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDetOrUnitPtr > &alidetvec) const |
AlgebraicMatrix | selectedDerivativesLegacy (const TrajectoryStateOnSurface &tsos, AlignableDet *alidet) const |
AlgebraicMatrix | selectedDerivativesLegacy (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDet *> &alidetvec) const |
virtual | ~CompositeAlignmentParameters () |
destructor More... | |
Protected Attributes | |
DataContainer | theData |
Private Member Functions | |
void | convert (const std::vector< AlignableDet *> &input, std::vector< AlignableDetOrUnitPtr > &output) const |
align::Alignables | extractAlignables (const align::Alignables &) const |
Return vector of alignables without multiple occurences. More... | |
bool | extractPositionAndLength (const align::Alignables &alignables, std::vector< int > &posvec, std::vector< int > &lenvec, int &length) const |
Extract position and length of parameters for a subset of Alignables. More... | |
Private Attributes | |
AlignableDetToAlignableMap | theAlignableDetToAlignableMap |
Relate Alignable's and AlignableDet's. More... | |
Alilenmap | theAlilenmap |
Aliposmap | theAliposmap |
Maps to find parameters/covariance elements for given alignable. More... | |
Components | theComponents |
Vector of alignable components. More... | |
Class for 'concatenated' alignment parameters and associated Quantities for a set of Alignables. Provided by AlignmentParameterStore. It does not inherit from AligmentParameters since it does not need to be attached to an Alignable, so it does not need to have implementations of the apply(..) method. It neither needs AlignmentUservariables attached.
(last update by
)
Definition at line 27 of file CompositeAlignmentParameters.h.
typedef std::map<AlignableDetOrUnitPtr, Alignable *> CompositeAlignmentParameters::AlignableDetToAlignableMap |
Definition at line 32 of file CompositeAlignmentParameters.h.
typedef std::map<Alignable *, int> CompositeAlignmentParameters::Alilenmap |
Definition at line 34 of file CompositeAlignmentParameters.h.
typedef std::map<Alignable *, int> CompositeAlignmentParameters::Aliposmap |
Definition at line 33 of file CompositeAlignmentParameters.h.
vector of alignable components
Definition at line 30 of file CompositeAlignmentParameters.h.
Definition at line 36 of file CompositeAlignmentParameters.h.
CompositeAlignmentParameters::CompositeAlignmentParameters | ( | const AlgebraicVector & | par, |
const AlgebraicSymMatrix & | cov, | ||
const Components & | comp | ||
) |
constructors
(last update by
)
Definition at line 17 of file CompositeAlignmentParameters.cc.
Referenced by clone().
CompositeAlignmentParameters::CompositeAlignmentParameters | ( | const AlgebraicVector & | par, |
const AlgebraicSymMatrix & | cov, | ||
const Components & | comp, | ||
const AlignableDetToAlignableMap & | alimap, | ||
const Aliposmap & | aliposmap, | ||
const Alilenmap & | alilenmap | ||
) |
Definition at line 23 of file CompositeAlignmentParameters.cc.
CompositeAlignmentParameters::CompositeAlignmentParameters | ( | const DataContainer & | data, |
const Components & | comp, | ||
const AlignableDetToAlignableMap & | alimap, | ||
const Aliposmap & | aliposmap, | ||
const Alilenmap & | alilenmap | ||
) |
Definition at line 36 of file CompositeAlignmentParameters.cc.
|
virtual |
Alignable * CompositeAlignmentParameters::alignableFromAlignableDet | ( | const AlignableDetOrUnitPtr & | adet | ) | const |
Get relevant Alignable from AlignableDet.
Definition at line 208 of file CompositeAlignmentParameters.cc.
References theAlignableDetToAlignableMap.
Referenced by correctionTerm(), derivatives(), derivativesLegacy(), and HIPAlignmentAlgorithm::run().
CompositeAlignmentParameters * CompositeAlignmentParameters::clone | ( | const AlgebraicVector & | par, |
const AlgebraicSymMatrix & | cov | ||
) | const |
Clone parameters.
Definition at line 51 of file CompositeAlignmentParameters.cc.
References HLT_2022v12_cff::cap, components(), and CompositeAlignmentParameters().
CompositeAlignmentParameters * CompositeAlignmentParameters::clone | ( | const AlgebraicVector & | par, |
const AlgebraicSymMatrix & | cov, | ||
const AlignableDetToAlignableMap & | alimap, | ||
const Aliposmap & | aliposmap, | ||
const Alilenmap & | alilenmap | ||
) | const |
Clone parameters.
Definition at line 59 of file CompositeAlignmentParameters.cc.
References HLT_2022v12_cff::cap, components(), and CompositeAlignmentParameters().
CompositeAlignmentParameters::Components CompositeAlignmentParameters::components | ( | ) | const |
Get vector of alignable components.
Definition at line 71 of file CompositeAlignmentParameters.cc.
References theComponents.
Referenced by clone(), and AlignmentParameterStore::updateParameters().
|
private |
backward compatibility method to convert vectors from specific AlignableDet to more general AlignableDetOrUnitPtr
Definition at line 392 of file CompositeAlignmentParameters.cc.
References input, and convertSQLitetoXML_cfg::output.
Referenced by correctionTerm(), and derivatives().
AlgebraicVector CompositeAlignmentParameters::correctionTerm | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDet *> & | alidetvec | ||
) | const |
for backward compatibility, use std::vector<AlignableDetOrUnitPtr>
Definition at line 94 of file CompositeAlignmentParameters.cc.
References convert().
AlgebraicVector CompositeAlignmentParameters::correctionTerm | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDetOrUnitPtr > & | alidetvec | ||
) | const |
Definition at line 103 of file CompositeAlignmentParameters.cc.
References alignableFromAlignableDet(), and CompositeAlignmentDerivativesExtractor::correctionTerm().
|
inline |
Get parameter covariance matrix.
Definition at line 62 of file CompositeAlignmentParameters.h.
References theData.
Referenced by AlignmentParameterStore::updateParameters().
AlgebraicSymMatrix CompositeAlignmentParameters::covarianceSubset | ( | const align::Alignables & | vec | ) | const |
Extract covariance matrix for subset of alignables.
Definition at line 252 of file CompositeAlignmentParameters.cc.
References extractAlignables(), extractPositionAndLength(), mps_fire::result, EgammaValidation_Wenu_cff::sel, and theData.
AlgebraicMatrix CompositeAlignmentParameters::covarianceSubset | ( | const align::Alignables & | veci, |
const align::Alignables & | vecj | ||
) | const |
Extract covariance matrix elements between two subsets of alignables.
Definition at line 296 of file CompositeAlignmentParameters.cc.
References extractAlignables(), extractPositionAndLength(), mps_fire::result, and theData.
AlgebraicMatrix CompositeAlignmentParameters::derivatives | ( | const TrajectoryStateOnSurface & | tsos, |
const AlignableDetOrUnitPtr & | alidet | ||
) | const |
Get derivatives.
Definition at line 128 of file CompositeAlignmentParameters.cc.
Referenced by derivatives(), and selectedDerivatives().
AlgebraicMatrix CompositeAlignmentParameters::derivatives | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDet *> & | alidetvec | ||
) | const |
for backward compatibility, use std::vector<AlignableDetOrUnitPtr>
Definition at line 75 of file CompositeAlignmentParameters.cc.
References convert(), and derivatives().
AlgebraicMatrix CompositeAlignmentParameters::derivatives | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDetOrUnitPtr > & | alidetvec | ||
) | const |
Definition at line 83 of file CompositeAlignmentParameters.cc.
References alignableFromAlignableDet(), and CompositeAlignmentDerivativesExtractor::derivatives().
AlgebraicMatrix CompositeAlignmentParameters::derivativesLegacy | ( | const TrajectoryStateOnSurface & | tsos, |
AlignableDet * | alidet | ||
) | const |
deprecated due to 'AlignableDet*' interface (legacy code should not be needed anymore)
Definition at line 190 of file CompositeAlignmentParameters.cc.
Referenced by selectedDerivativesLegacy().
AlgebraicMatrix CompositeAlignmentParameters::derivativesLegacy | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDet *> & | alidetvec | ||
) | const |
deprecated due to 'AlignableDet*' interface (legacy code should not be needed anymore)
Definition at line 147 of file CompositeAlignmentParameters.cc.
References alignableFromAlignableDet(), Alignable::alignmentParameters(), and AlignmentParameters::selectedDerivatives().
|
private |
Return vector of alignables without multiple occurences.
Definition at line 380 of file CompositeAlignmentParameters.cc.
References spr::find(), and mps_fire::result.
Referenced by covarianceSubset(), and parameterSubset().
|
private |
Extract position and length of parameters for a subset of Alignables.
Definition at line 349 of file CompositeAlignmentParameters.cc.
References spr::find(), theAlilenmap, theAliposmap, and theComponents.
Referenced by covarianceSubset(), and parameterSubset().
|
inline |
Get alignment parameters.
Definition at line 59 of file CompositeAlignmentParameters.h.
References theData.
Referenced by AlignmentParameterStore::updateParameters().
AlgebraicVector CompositeAlignmentParameters::parameterSubset | ( | const align::Alignables & | vec | ) | const |
Extract parameters for subset of alignables.
Definition at line 217 of file CompositeAlignmentParameters.cc.
References extractAlignables(), extractPositionAndLength(), mps_fire::result, EgammaValidation_Wenu_cff::sel, and theData.
AlgebraicMatrix CompositeAlignmentParameters::selectedDerivatives | ( | const TrajectoryStateOnSurface & | tsos, |
const AlignableDetOrUnitPtr & | alidet | ||
) | const |
Get derivatives for selected alignables.
Definition at line 139 of file CompositeAlignmentParameters.cc.
References derivatives().
AlgebraicMatrix CompositeAlignmentParameters::selectedDerivatives | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDet *> & | alidetvec | ||
) | const |
for backward compatibility, use std::vector<AlignableDetOrUnitPtr>
Definition at line 115 of file CompositeAlignmentParameters.cc.
References derivatives().
AlgebraicMatrix CompositeAlignmentParameters::selectedDerivatives | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDetOrUnitPtr > & | alidetvec | ||
) | const |
Definition at line 121 of file CompositeAlignmentParameters.cc.
References derivatives().
AlgebraicMatrix CompositeAlignmentParameters::selectedDerivativesLegacy | ( | const TrajectoryStateOnSurface & | tsos, |
AlignableDet * | alidet | ||
) | const |
deprecated due to 'AlignableDet*' interface (legacy code should not be needed anymore)
Definition at line 201 of file CompositeAlignmentParameters.cc.
References derivativesLegacy().
AlgebraicMatrix CompositeAlignmentParameters::selectedDerivativesLegacy | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDet *> & | alidetvec | ||
) | const |
deprecated due to 'AlignableDet*' interface (legacy code should not be needed anymore)
Definition at line 183 of file CompositeAlignmentParameters.cc.
References derivativesLegacy().
|
private |
Relate Alignable's and AlignableDet's.
Definition at line 145 of file CompositeAlignmentParameters.h.
Referenced by alignableFromAlignableDet().
|
private |
Definition at line 149 of file CompositeAlignmentParameters.h.
Referenced by extractPositionAndLength().
|
private |
Maps to find parameters/covariance elements for given alignable.
Definition at line 148 of file CompositeAlignmentParameters.h.
Referenced by extractPositionAndLength().
|
private |
Vector of alignable components.
Definition at line 142 of file CompositeAlignmentParameters.h.
Referenced by components(), and extractPositionAndLength().
|
protected |
Definition at line 125 of file CompositeAlignmentParameters.h.
Referenced by covariance(), covarianceSubset(), parameters(), and parameterSubset().