#include <CompositeAlignmentParameters.h>
Public Types | |
typedef std::map < AlignableDetOrUnitPtr, Alignable * > | AlignableDetToAlignableMap |
typedef std::map< Alignable *, int > | Alilenmap |
typedef std::map< Alignable *, int > | Aliposmap |
typedef std::vector< Alignable * > | 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 std::vector< Alignable * > &vec) const |
Extract covariance matrix for subset of alignables. More... | |
AlgebraicMatrix | covarianceSubset (const std::vector< Alignable * > &veci, const std::vector< Alignable * > &vecj) 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 std::vector< Alignable * > &vec) 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 |
std::vector< Alignable * > | extractAlignables (const std::vector< Alignable * > &alignables) const |
Return vector of alignables without multiple occurences. More... | |
bool | extractPositionAndLength (const std::vector< Alignable * > &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 35 of file CompositeAlignmentParameters.h.
typedef std::map<Alignable*,int> CompositeAlignmentParameters::Alilenmap |
Definition at line 37 of file CompositeAlignmentParameters.h.
typedef std::map<Alignable*,int> CompositeAlignmentParameters::Aliposmap |
Definition at line 36 of file CompositeAlignmentParameters.h.
typedef std::vector<Alignable*> CompositeAlignmentParameters::Components |
vector of alignable components
Definition at line 33 of file CompositeAlignmentParameters.h.
Definition at line 39 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().
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.
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(), 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 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 70 of file CompositeAlignmentParameters.cc.
References cap, 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(), and AlignmentParameterStore::updateParameters().
|
private |
backward compatibility method to convert vectors from specific AlignableDet to more general AlignableDetOrUnitPtr
Definition at line 468 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().
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 61 of file CompositeAlignmentParameters.h.
References theData.
Referenced by AlignmentParameterStore::updateParameters().
AlgebraicSymMatrix CompositeAlignmentParameters::covarianceSubset | ( | const std::vector< Alignable * > & | vec | ) | const |
Extract covariance matrix for subset of alignables.
Definition at line 312 of file CompositeAlignmentParameters.cc.
References extractAlignables(), extractPositionAndLength(), query::result, EgammaValidation_Wenu_cff::sel, and theData.
AlgebraicMatrix CompositeAlignmentParameters::covarianceSubset | ( | const std::vector< Alignable * > & | veci, |
const std::vector< Alignable * > & | vecj | ||
) | const |
Extract covariance matrix elements between two subsets of alignables.
Definition at line 360 of file CompositeAlignmentParameters.cc.
References extractAlignables(), extractPositionAndLength(), query::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 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 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 453 of file CompositeAlignmentParameters.cc.
References spr::find(), and query::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 58 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 std::vector< Alignable * > & | vec | ) | const |
Extract parameters for subset of alignables.
Definition at line 274 of file CompositeAlignmentParameters.cc.
References extractAlignables(), extractPositionAndLength(), query::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 171 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 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().
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 147 of file CompositeAlignmentParameters.h.
Referenced by alignableFromAlignableDet().
|
private |
Definition at line 151 of file CompositeAlignmentParameters.h.
Referenced by extractPositionAndLength().
|
private |
Maps to find parameters/covariance elements for given alignable.
Definition at line 150 of file CompositeAlignmentParameters.h.
Referenced by extractPositionAndLength().
|
private |
Vector of alignable components.
Definition at line 144 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().