#include <AlignmentParameters.h>
Public Types | |
typedef AlignmentParametersData::DataContainer | DataContainer |
Public Member Functions | |
Alignable * | alignable (void) const |
Get pointer to corresponding alignable. More... | |
AlignmentParameters () | |
Default constructor. More... | |
AlignmentParameters (Alignable *object, const AlgebraicVector &par, const AlgebraicSymMatrix &cov) | |
Constructor from given input. More... | |
AlignmentParameters (Alignable *object, const AlgebraicVector &par, const AlgebraicSymMatrix &cov, const std::vector< bool > &sel) | |
Constructor including selection of active parameters. More... | |
AlignmentParameters (Alignable *object, const DataContainer &data) | |
Constructor. More... | |
virtual void | apply ()=0 |
apply parameters to alignable More... | |
virtual AlignmentParameters * | clone (const AlgebraicVector &par, const AlgebraicSymMatrix &cov) const =0 |
Enforce clone methods in derived classes. More... | |
virtual AlignmentParameters * | cloneFromSelected (const AlgebraicVector &par, const AlgebraicSymMatrix &cov) const =0 |
const AlgebraicSymMatrix & | covariance (void) const |
Get parameter covariance matrix. More... | |
virtual AlgebraicMatrix | derivatives (const TrajectoryStateOnSurface &tsos, const AlignableDetOrUnitPtr &alidet) const =0 |
Get derivatives of selected parameters. More... | |
virtual unsigned int | hierarchyLevel () const |
bool | isValid (void) const |
Get validity flag. More... | |
int | numSelected (void) const |
Get number of selected parameters. More... | |
const AlgebraicVector & | parameters (void) const |
Get alignment parameters. More... | |
AlgebraicSymMatrix | selectedCovariance (void) const |
Get covariance matrix of selected parameters. More... | |
virtual AlgebraicMatrix | selectedDerivatives (const TrajectoryStateOnSurface &tsos, const AlignableDetOrUnitPtr &alidet) const |
AlgebraicVector | selectedParameters (void) const |
Get selected parameters. More... | |
const std::vector< bool > & | selector (void) const |
Get alignment parameter selector vector. More... | |
void | setUserVariables (AlignmentUserVariables *auv) |
Set pointer to user variables. More... | |
void | setValid (bool v) |
Set validity flag. More... | |
int | size (void) const |
Get number of parameters. More... | |
virtual int | type () const =0 |
tell type (AlignmentParametersFactory::ParametersType - but no circular dependency) More... | |
AlignmentUserVariables * | userVariables (void) const |
Get pointer to user variables. More... | |
virtual | ~AlignmentParameters () |
Destructor. More... | |
Protected Member Functions | |
AlgebraicSymMatrix | collapseSymMatrix (const AlgebraicSymMatrix &m, const std::vector< bool > &sel) const |
AlgebraicVector | collapseVector (const AlgebraicVector &m, const std::vector< bool > &sel) const |
AlgebraicSymMatrix | expandSymMatrix (const AlgebraicSymMatrix &m, const std::vector< bool > &sel) const |
AlgebraicVector | expandVector (const AlgebraicVector &m, const std::vector< bool > &sel) const |
Protected Attributes | |
bool | bValid |
True if parameters are valid. More... | |
Alignable * | theAlignable |
DataContainer | theData |
AlignmentUserVariables * | theUserVariables |
Base class for alignment parameters
It contains a parameter vector of size N and a covariance matrix of size NxN. There is a pointer to the Alignable to which the parameters belong. There is also a pointer to UserVariables. Parameters can be enabled/disabled using theSelector. bValid declares if the parameters are 'valid'. The methods selected set/return only the active parameters/derivatives/covariance as subvector/submatrix of reduced size.
(last update by
)
Definition at line 35 of file AlignmentParameters.h.
Definition at line 40 of file AlignmentParameters.h.
AlignmentParameters::AlignmentParameters | ( | ) |
Default constructor.
Definition at line 10 of file AlignmentParameters.cc.
AlignmentParameters::AlignmentParameters | ( | Alignable * | object, |
const AlgebraicVector & | par, | ||
const AlgebraicSymMatrix & | cov | ||
) |
Constructor from given input.
Definition at line 18 of file AlignmentParameters.cc.
AlignmentParameters::AlignmentParameters | ( | Alignable * | object, |
const AlgebraicVector & | par, | ||
const AlgebraicSymMatrix & | cov, | ||
const std::vector< bool > & | sel | ||
) |
Constructor including selection of active parameters.
Definition at line 31 of file AlignmentParameters.cc.
AlignmentParameters::AlignmentParameters | ( | Alignable * | object, |
const DataContainer & | data | ||
) |
Constructor.
Definition at line 45 of file AlignmentParameters.cc.
|
virtual |
Destructor.
Definition at line 58 of file AlignmentParameters.cc.
Alignable * AlignmentParameters::alignable | ( | void | ) | const |
Get pointer to corresponding alignable.
Definition at line 146 of file AlignmentParameters.cc.
Referenced by RigidBodyAlignmentParameters4D::clone(), RigidBodyAlignmentParameters4D::cloneFromSelected(), and RigidBodyAlignmentParameters4D::derivatives().
|
pure virtual |
apply parameters to alignable
Implemented in TwoBowedSurfacesAlignmentParameters, BowedSurfaceAlignmentParameters, BeamSpotAlignmentParameters, RigidBodyAlignmentParameters, and SurveyParameters.
Referenced by editorTools.UserCodeTool::__call__(), metTools.AddMETCollection::__call__(), and editorTools.ChangeSource::__call__().
|
pure virtual |
Enforce clone methods in derived classes.
Implemented in TwoBowedSurfacesAlignmentParameters, BowedSurfaceAlignmentParameters, RigidBodyAlignmentParameters4D, BeamSpotAlignmentParameters, RigidBodyAlignmentParameters, and SurveyParameters.
Referenced by AlignmentParametersIORoot::readOne(), and AlignmentParametersIO::writeOneOrigRigidBody().
|
pure virtual |
|
protected |
Definition at line 199 of file AlignmentParameters.cc.
|
protected |
Definition at line 227 of file AlignmentParameters.cc.
const AlgebraicSymMatrix & AlignmentParameters::covariance | ( | void | ) | const |
Get parameter covariance matrix.
Definition at line 99 of file AlignmentParameters.cc.
Referenced by SurveyAlignment::iterate(), AlignmentParametersIORoot::writeOne(), and AlignmentParametersIO::writeOneOrigRigidBody().
|
pure virtual |
Get derivatives of selected parameters.
Implemented in TwoBowedSurfacesAlignmentParameters, BowedSurfaceAlignmentParameters, BeamSpotAlignmentParameters, RigidBodyAlignmentParameters, RigidBodyAlignmentParameters4D, and SurveyParameters.
|
protected |
Definition at line 254 of file AlignmentParameters.cc.
Referenced by RigidBodyAlignmentParameters4D::cloneFromSelected().
|
protected |
Definition at line 280 of file AlignmentParameters.cc.
Referenced by RigidBodyAlignmentParameters4D::cloneFromSelected().
|
virtual |
How many levels of Alignables with parameters can be found in the substructures of the Alignable of these parameters? E.g. 0: lowest level, i.e. no components of hte Alignable have parameters, n: up to n generations of components have parameters (some 'branches' may have less)
Definition at line 152 of file AlignmentParameters.cc.
Referenced by AlignmentParametersIORoot::writeOne().
bool AlignmentParameters::isValid | ( | void | ) | const |
Get validity flag.
Definition at line 184 of file AlignmentParameters.cc.
Referenced by RigidBodyAlignmentParameters4D::clone(), RigidBodyAlignmentParameters4D::cloneFromSelected(), core.AutoHandle.AutoHandle::ReallyLoad(), and AlignmentCorrelationsIORoot::write().
int AlignmentParameters::numSelected | ( | void | ) | const |
Get number of selected parameters.
Definition at line 71 of file AlignmentParameters.cc.
const AlgebraicVector & AlignmentParameters::parameters | ( | void | ) | const |
Get alignment parameters.
Definition at line 92 of file AlignmentParameters.cc.
Referenced by SurveyAlignment::iterate(), SurveyAlignment::shiftSensors(), AlignmentParametersIORoot::writeOne(), and AlignmentParametersIO::writeOneOrigRigidBody().
AlgebraicSymMatrix AlignmentParameters::selectedCovariance | ( | void | ) | const |
Get covariance matrix of selected parameters.
Definition at line 85 of file AlignmentParameters.cc.
|
virtual |
Reimplemented in BeamSpotAlignmentParameters, RigidBodyAlignmentParameters, and SurveyParameters.
Definition at line 106 of file AlignmentParameters.cc.
AlgebraicVector AlignmentParameters::selectedParameters | ( | void | ) | const |
Get selected parameters.
Definition at line 78 of file AlignmentParameters.cc.
const std::vector< bool > & AlignmentParameters::selector | ( | void | ) | const |
Get alignment parameter selector vector.
Definition at line 65 of file AlignmentParameters.cc.
Referenced by RigidBodyAlignmentParameters4D::clone(), RigidBodyAlignmentParameters4D::cloneFromSelected(), and AlignmentParametersIORoot::readOne().
void AlignmentParameters::setUserVariables | ( | AlignmentUserVariables * | auv | ) |
Set pointer to user variables.
Definition at line 131 of file AlignmentParameters.cc.
Referenced by RigidBodyAlignmentParameters4D::clone(), and RigidBodyAlignmentParameters4D::cloneFromSelected().
void AlignmentParameters::setValid | ( | bool | v | ) |
Set validity flag.
Definition at line 191 of file AlignmentParameters.cc.
Referenced by CSCAlignmentCorrections::applyAlignment(), RigidBodyAlignmentParameters4D::clone(), RigidBodyAlignmentParameters4D::cloneFromSelected(), and AlignmentParametersIORoot::readOne().
int AlignmentParameters::size | ( | void | ) | const |
Get number of parameters.
Definition at line 177 of file AlignmentParameters.cc.
|
pure virtual |
tell type (AlignmentParametersFactory::ParametersType - but no circular dependency)
Implemented in TwoBowedSurfacesAlignmentParameters, BowedSurfaceAlignmentParameters, BeamSpotAlignmentParameters, RigidBodyAlignmentParameters, RigidBodyAlignmentParameters4D, and SurveyParameters.
Referenced by AlignmentParametersIORoot::writeOne().
AlignmentUserVariables * AlignmentParameters::userVariables | ( | void | ) | const |
Get pointer to user variables.
Definition at line 139 of file AlignmentParameters.cc.
Referenced by RigidBodyAlignmentParameters4D::clone(), and RigidBodyAlignmentParameters4D::cloneFromSelected().
|
protected |
True if parameters are valid.
Definition at line 136 of file AlignmentParameters.h.
|
protected |
Definition at line 130 of file AlignmentParameters.h.
|
protected |
Definition at line 132 of file AlignmentParameters.h.
|
protected |
Definition at line 134 of file AlignmentParameters.h.