#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 |
deprecated due to 'AlignableDet*' interface (legacy code should not be needed anymore) More... | |
AlgebraicMatrix | derivativesLegacy (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDet * > &alidetvec) const |
deprecated due to 'AlignableDet*' interface (legacy code should not be needed anymore) More... | |
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 |
deprecated due to 'AlignableDet*' interface (legacy code should not be needed anymore) More... | |
AlgebraicMatrix | selectedDerivativesLegacy (const std::vector< TrajectoryStateOnSurface > &tsosvec, const std::vector< AlignableDet * > &alidetvec) const |
deprecated due to 'AlignableDet*' interface (legacy code should not be needed anymore) More... | |
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 28 of file CompositeAlignmentParameters.h.
typedef std::map<AlignableDetOrUnitPtr,Alignable*> CompositeAlignmentParameters::AlignableDetToAlignableMap |
Definition at line 36 of file CompositeAlignmentParameters.h.
typedef std::map<Alignable*,int> CompositeAlignmentParameters::Alilenmap |
Definition at line 38 of file CompositeAlignmentParameters.h.
typedef std::map<Alignable*,int> CompositeAlignmentParameters::Aliposmap |
Definition at line 37 of file CompositeAlignmentParameters.h.
vector of alignable components
Definition at line 34 of file CompositeAlignmentParameters.h.
Definition at line 40 of file CompositeAlignmentParameters.h.
CompositeAlignmentParameters::CompositeAlignmentParameters | ( | const AlgebraicVector & | par, |
const AlgebraicSymMatrix & | cov, | ||
const Components & | comp | ||
) |
constructors
(last update by
)
Definition at line 19 of file CompositeAlignmentParameters.cc.
Referenced by clone(), and CompositeAlignmentParameters().
CompositeAlignmentParameters::CompositeAlignmentParameters | ( | const AlgebraicVector & | par, |
const AlgebraicSymMatrix & | cov, | ||
const Components & | comp, | ||
const AlignableDetToAlignableMap & | alimap, | ||
const Aliposmap & | aliposmap, | ||
const Alilenmap & | alilenmap | ||
) |
Definition at line 28 of file CompositeAlignmentParameters.cc.
References CompositeAlignmentParameters().
CompositeAlignmentParameters::CompositeAlignmentParameters | ( | const DataContainer & | data, |
const Components & | comp, | ||
const AlignableDetToAlignableMap & | alimap, | ||
const Aliposmap & | aliposmap, | ||
const Alilenmap & | alilenmap | ||
) |
Definition at line 41 of file CompositeAlignmentParameters.cc.
|
virtual |
Alignable * CompositeAlignmentParameters::alignableFromAlignableDet | ( | const AlignableDetOrUnitPtr & | adet | ) | const |
Get relevant Alignable from AlignableDet.
Definition at line 261 of file CompositeAlignmentParameters.cc.
References theAlignableDetToAlignableMap.
Referenced by correctionTerm(), covariance(), derivatives(), derivativesLegacy(), MuonMillepedeAlgorithm::run(), and HIPAlignmentAlgorithm::run().
CompositeAlignmentParameters * CompositeAlignmentParameters::clone | ( | const AlgebraicVector & | par, |
const AlgebraicSymMatrix & | cov | ||
) | const |
Clone parameters.
Definition at line 59 of file CompositeAlignmentParameters.cc.
References components(), and CompositeAlignmentParameters().
Referenced by covariance().
CompositeAlignmentParameters * CompositeAlignmentParameters::clone | ( | const AlgebraicVector & | par, |
const AlgebraicSymMatrix & | cov, | ||
const AlignableDetToAlignableMap & | alimap, | ||
const Aliposmap & | aliposmap, | ||
const Alilenmap & | alilenmap | ||
) | const |
Clone parameters.
Definition at line 70 of file CompositeAlignmentParameters.cc.
References components(), and CompositeAlignmentParameters().
CompositeAlignmentParameters::Components CompositeAlignmentParameters::components | ( | ) | const |
Get vector of alignable components.
Definition at line 84 of file CompositeAlignmentParameters.cc.
References theComponents.
Referenced by clone(), covariance(), and AlignmentParameterStore::updateParameters().
|
private |
backward compatibility method to convert vectors from specific AlignableDet to more general AlignableDetOrUnitPtr
Definition at line 465 of file CompositeAlignmentParameters.cc.
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 116 of file CompositeAlignmentParameters.cc.
References convert().
Referenced by covariance().
AlgebraicVector CompositeAlignmentParameters::correctionTerm | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDetOrUnitPtr > & | alidetvec | ||
) | const |
Definition at line 127 of file CompositeAlignmentParameters.cc.
References alignableFromAlignableDet(), and CompositeAlignmentDerivativesExtractor::correctionTerm().
|
inline |
Get parameter covariance matrix.
Definition at line 62 of file CompositeAlignmentParameters.h.
References alignableFromAlignableDet(), clone(), components(), correctionTerm(), covarianceSubset(), derivatives(), derivativesLegacy(), parameterSubset(), selectedDerivatives(), selectedDerivativesLegacy(), and theData.
Referenced by AlignmentParameterStore::updateParameters().
AlgebraicSymMatrix CompositeAlignmentParameters::covarianceSubset | ( | const align::Alignables & | vec | ) | const |
Extract covariance matrix for subset of alignables.
Definition at line 312 of file CompositeAlignmentParameters.cc.
References extractAlignables(), extractPositionAndLength(), mps_fire::result, triggerObjects_cff::sel, and theData.
Referenced by covariance().
AlgebraicMatrix CompositeAlignmentParameters::covarianceSubset | ( | const align::Alignables & | veci, |
const align::Alignables & | vecj | ||
) | const |
Extract covariance matrix elements between two subsets of alignables.
Definition at line 360 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 158 of file CompositeAlignmentParameters.cc.
Referenced by covariance(), 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 93 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 103 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 236 of file CompositeAlignmentParameters.cc.
Referenced by covariance(), and 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 182 of file CompositeAlignmentParameters.cc.
References alignableFromAlignableDet(), Alignable::alignmentParameters(), and AlignmentParameters::selectedDerivatives().
|
private |
Return vector of alignables without multiple occurences.
Definition at line 452 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 416 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 Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties(), and AlignmentParameterStore::updateParameters().
AlgebraicVector CompositeAlignmentParameters::parameterSubset | ( | const align::Alignables & | vec | ) | const |
Extract parameters for subset of alignables.
Definition at line 274 of file CompositeAlignmentParameters.cc.
References extractAlignables(), extractPositionAndLength(), mps_fire::result, triggerObjects_cff::sel, and theData.
Referenced by covariance().
AlgebraicMatrix CompositeAlignmentParameters::selectedDerivatives | ( | const TrajectoryStateOnSurface & | tsos, |
const AlignableDetOrUnitPtr & | alidet | ||
) | const |
Get derivatives for selected alignables.
Definition at line 171 of file CompositeAlignmentParameters.cc.
References derivatives().
Referenced by covariance().
AlgebraicMatrix CompositeAlignmentParameters::selectedDerivatives | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDet * > & | alidetvec | ||
) | const |
for backward compatibility, use std::vector<AlignableDetOrUnitPtr>
Definition at line 141 of file CompositeAlignmentParameters.cc.
References derivatives().
AlgebraicMatrix CompositeAlignmentParameters::selectedDerivatives | ( | const std::vector< TrajectoryStateOnSurface > & | tsosvec, |
const std::vector< AlignableDetOrUnitPtr > & | alidetvec | ||
) | const |
Definition at line 149 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 251 of file CompositeAlignmentParameters.cc.
References derivativesLegacy().
Referenced by covariance().
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 226 of file CompositeAlignmentParameters.cc.
References derivativesLegacy().
|
private |
Relate Alignable's and AlignableDet's.
Definition at line 148 of file CompositeAlignmentParameters.h.
Referenced by alignableFromAlignableDet().
|
private |
Definition at line 152 of file CompositeAlignmentParameters.h.
Referenced by extractPositionAndLength().
|
private |
Maps to find parameters/covariance elements for given alignable.
Definition at line 151 of file CompositeAlignmentParameters.h.
Referenced by extractPositionAndLength().
|
private |
Vector of alignable components.
Definition at line 145 of file CompositeAlignmentParameters.h.
Referenced by components(), and extractPositionAndLength().
|
protected |
Definition at line 126 of file CompositeAlignmentParameters.h.
Referenced by covariance(), covarianceSubset(), parameters(), and parameterSubset().