#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 37 of file AlignmentParameters.h.
AlignmentParameters::AlignmentParameters | ( | ) |
AlignmentParameters::AlignmentParameters | ( | Alignable * | object, |
const AlgebraicVector & | par, | ||
const AlgebraicSymMatrix & | cov | ||
) |
Constructor from given input.
Definition at line 12 of file AlignmentParameters.cc.
References theData.
AlignmentParameters::AlignmentParameters | ( | Alignable * | object, |
const AlgebraicVector & | par, | ||
const AlgebraicSymMatrix & | cov, | ||
const std::vector< bool > & | sel | ||
) |
Constructor including selection of active parameters.
Definition at line 22 of file AlignmentParameters.cc.
References theData.
AlignmentParameters::AlignmentParameters | ( | Alignable * | object, |
const DataContainer & | data | ||
) |
|
virtual |
Alignable * AlignmentParameters::alignable | ( | void | ) | const |
Get pointer to corresponding alignable.
Definition at line 104 of file AlignmentParameters.cc.
References theAlignable.
Referenced by BeamSpotAlignmentParameters::apply(), RigidBodyAlignmentParameters::apply(), BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), AlignmentParameterStore::attachAlignmentParameters(), BeamSpotAlignmentParameters::clone(), RigidBodyAlignmentParameters::clone(), RigidBodyAlignmentParameters4D::clone(), BowedSurfaceAlignmentParameters::clone(), TwoBowedSurfacesAlignmentParameters::clone(), RigidBodyAlignmentParameters::cloneFromSelected(), BeamSpotAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters4D::cloneFromSelected(), RigidBodyAlignmentParameters4D::derivatives(), BeamSpotAlignmentParameters::derivatives(), RigidBodyAlignmentParameters::derivatives(), BowedSurfaceAlignmentParameters::derivatives(), TwoBowedSurfacesAlignmentParameters::derivatives(), and BowedSurfaceAlignmentParameters::rotation().
|
pure virtual |
apply parameters to alignable
Implemented in TwoBowedSurfacesAlignmentParameters, BowedSurfaceAlignmentParameters, BeamSpotAlignmentParameters, RigidBodyAlignmentParameters, and SurveyParameters.
Referenced by heavyIonTools.ConfigureHeavyIons::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), heavyIonTools.ProductionDefaults::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__call__(), heavyIonTools.SelectionDefaults::__call__(), heavyIonTools.DisbaleMonteCarloDeps::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), tauTools.AddTauCollection::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.AddJetCollection::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), and AlignmentParameterStore::applyParameters().
|
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 |
Implemented in TwoBowedSurfacesAlignmentParameters, BowedSurfaceAlignmentParameters, RigidBodyAlignmentParameters4D, BeamSpotAlignmentParameters, RigidBodyAlignmentParameters, and SurveyParameters.
Referenced by CSCAlignmentCorrections::applyAlignment(), HIPAlignmentAlgorithm::calcParameters(), MuonAlignmentFromReference::fitAndAlign(), CSCChamberFitter::radiusCorrection(), AlignmentParameterStore::resetParameters(), and AlignmentParameterStore::updateParameters().
|
protected |
Definition at line 140 of file AlignmentParameters.cc.
References Exception, mps_fire::i, dqmiolumiharvest::j, visualization-live-secondInstance_cfg::m, mps_fire::result, EgammaValidation_Wenu_cff::sel, and size().
Referenced by selectedCovariance().
|
protected |
Definition at line 166 of file AlignmentParameters.cc.
References Exception, mps_fire::i, visualization-live-secondInstance_cfg::m, mps_fire::result, EgammaValidation_Wenu_cff::sel, and size().
Referenced by selectedParameters().
const AlgebraicSymMatrix & AlignmentParameters::covariance | ( | void | ) | const |
Get parameter covariance matrix.
Definition at line 67 of file AlignmentParameters.cc.
References theData.
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.
Referenced by selectedDerivatives().
|
protected |
Definition at line 190 of file AlignmentParameters.cc.
References Exception, mps_fire::i, dqmiolumiharvest::j, visualization-live-secondInstance_cfg::m, mps_fire::result, EgammaValidation_Wenu_cff::sel, and size().
Referenced by BeamSpotAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters4D::cloneFromSelected(), BowedSurfaceAlignmentParameters::cloneFromSelected(), and TwoBowedSurfacesAlignmentParameters::cloneFromSelected().
|
protected |
Definition at line 215 of file AlignmentParameters.cc.
References Exception, mps_fire::i, visualization-live-secondInstance_cfg::m, mps_fire::result, EgammaValidation_Wenu_cff::sel, and size().
Referenced by BeamSpotAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters4D::cloneFromSelected(), BowedSurfaceAlignmentParameters::cloneFromSelected(), and TwoBowedSurfacesAlignmentParameters::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 107 of file AlignmentParameters.cc.
References Alignable::firstCompsWithParams(), and theAlignable.
Referenced by AlignmentParametersIORoot::writeOne().
bool AlignmentParameters::isValid | ( | void | ) | const |
Get validity flag.
Definition at line 134 of file AlignmentParameters.cc.
References bValid.
Referenced by ntupleDataFormat._Object::_checkIsValid(), RigidBodyAlignmentParameters::clone(), BeamSpotAlignmentParameters::clone(), RigidBodyAlignmentParameters4D::clone(), BowedSurfaceAlignmentParameters::clone(), TwoBowedSurfacesAlignmentParameters::clone(), RigidBodyAlignmentParameters::cloneFromSelected(), BeamSpotAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters4D::cloneFromSelected(), HIPAlignmentAlgorithm::fillAlignablesMonitor(), core.AutoHandle.AutoHandle::ReallyLoad(), AlignmentCorrelationsIORoot::write(), AlignableDataIO::writeAbsPos(), AlignableDataIO::writeOrgPos(), and AlignableDataIO::writeRelPos().
int AlignmentParameters::numSelected | ( | void | ) | const |
Get number of selected parameters.
Definition at line 51 of file AlignmentParameters.cc.
References theData.
Referenced by AlignmentCorrelationsStore::fillCorrelationsTable(), AlignmentExtendedCorrelationsStore::fillCorrelationsTable(), AlignmentParameterStore::resetParameters(), RigidBodyAlignmentParameters::selectedDerivatives(), BeamSpotAlignmentParameters::selectedDerivatives(), selectedDerivatives(), AlignmentParameterStore::selectParameters(), HIPAlignmentAlgorithm::startNewLoop(), and AlignmentParameterStore::updateParameters().
const AlgebraicVector & AlignmentParameters::parameters | ( | void | ) | const |
Get alignment parameters.
Definition at line 64 of file AlignmentParameters.cc.
References theData.
Referenced by HIPAlignmentAlgorithm::fillAlignablesMonitor(), PedeSteerer::fixParameter(), SurveyAlignment::iterate(), SurveyAlignment::shiftSensors(), AlignmentParametersIORoot::writeOne(), and AlignmentParametersIO::writeOneOrigRigidBody().
AlgebraicSymMatrix AlignmentParameters::selectedCovariance | ( | void | ) | const |
Get covariance matrix of selected parameters.
Definition at line 59 of file AlignmentParameters.cc.
References collapseSymMatrix(), and theData.
Referenced by AlignmentParameterStore::selectParameters().
|
virtual |
Reimplemented in BeamSpotAlignmentParameters, RigidBodyAlignmentParameters, and SurveyParameters.
Definition at line 70 of file AlignmentParameters.cc.
References derivatives(), hgcalPlots::ncols, numSelected(), and selector().
Referenced by CompositeAlignmentParameters::derivativesLegacy().
AlgebraicVector AlignmentParameters::selectedParameters | ( | void | ) | const |
Get selected parameters.
Definition at line 54 of file AlignmentParameters.cc.
References collapseVector(), and theData.
Referenced by AlignmentParameterStore::selectParameters().
const std::vector< bool > & AlignmentParameters::selector | ( | void | ) | const |
Get alignment parameter selector vector.
Definition at line 48 of file AlignmentParameters.cc.
References theData.
Referenced by BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), PedeSteererWeakModeConstraints::checkSelectionShiftParameter(), BeamSpotAlignmentParameters::clone(), RigidBodyAlignmentParameters::clone(), RigidBodyAlignmentParameters4D::clone(), BowedSurfaceAlignmentParameters::clone(), TwoBowedSurfacesAlignmentParameters::clone(), BeamSpotAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters4D::cloneFromSelected(), BowedSurfaceAlignmentParameters::cloneFromSelected(), TwoBowedSurfacesAlignmentParameters::cloneFromSelected(), AlignmentParameterStore::hierarchyConstraints(), AlignmentParametersIORoot::readOne(), RigidBodyAlignmentParameters::selectedDerivatives(), BeamSpotAlignmentParameters::selectedDerivatives(), and selectedDerivatives().
void AlignmentParameters::setUserVariables | ( | AlignmentUserVariables * | auv | ) |
Set pointer to user variables.
Definition at line 94 of file AlignmentParameters.cc.
References theUserVariables.
Referenced by AlignmentParameterBuilder::addFullParamSel(), AlignmentParameterStore::attachUserVariables(), BeamSpotAlignmentParameters::clone(), RigidBodyAlignmentParameters::clone(), RigidBodyAlignmentParameters4D::clone(), BowedSurfaceAlignmentParameters::clone(), TwoBowedSurfacesAlignmentParameters::clone(), RigidBodyAlignmentParameters::cloneFromSelected(), BeamSpotAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters4D::cloneFromSelected(), and HIPAlignmentAlgorithm::startNewLoop().
void AlignmentParameters::setValid | ( | bool | v | ) |
Set validity flag.
Definition at line 137 of file AlignmentParameters.cc.
References bValid, and findQualityFiles::v.
Referenced by CSCAlignmentCorrections::applyAlignment(), HIPAlignmentAlgorithm::calcParameters(), BeamSpotAlignmentParameters::clone(), RigidBodyAlignmentParameters::clone(), RigidBodyAlignmentParameters4D::clone(), BowedSurfaceAlignmentParameters::clone(), TwoBowedSurfacesAlignmentParameters::clone(), BeamSpotAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters4D::cloneFromSelected(), CSCChamberFitter::radiusCorrection(), AlignmentParametersIORoot::readOne(), AlignmentParameterStore::resetParameters(), and HIPAlignmentAlgorithm::terminate().
int AlignmentParameters::size | ( | void | ) | const |
Get number of parameters.
Definition at line 131 of file AlignmentParameters.cc.
References theData.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), AlignmentParameterStore::acquireRelativeParameters(), MomentumDependentPedeLabeler::buildMomentumDependencyMap(), RunRangeDependentPedeLabeler::buildRunRangeDependencyMap(), PedeSteerer::checkParameterChoices(), collapseSymMatrix(), collapseVector(), PedeSteererWeakModeConstraints::constructConstraints(), expandSymMatrix(), and expandVector().
|
pure virtual |
tell type (AlignmentParametersFactory::ParametersType - but no circular dependency)
Implemented in TwoBowedSurfacesAlignmentParameters, BowedSurfaceAlignmentParameters, RigidBodyAlignmentParameters4D, BeamSpotAlignmentParameters, RigidBodyAlignmentParameters, and SurveyParameters.
Referenced by PedeSteererWeakModeConstraints::constructConstraints(), PedeSteerer::fixParameter(), ParametersToParametersDerivatives::ParametersToParametersDerivatives(), and AlignmentParametersIORoot::writeOne().
AlignmentUserVariables * AlignmentParameters::userVariables | ( | void | ) | const |
Get pointer to user variables.
Definition at line 101 of file AlignmentParameters.cc.
References theUserVariables.
Referenced by MillePedeAlignmentAlgorithm::addHitCount(), MillePedeAlignmentAlgorithm::addHits(), HIPAlignmentAlgorithm::calcParameters(), PedeSteerer::checkParameterChoices(), BeamSpotAlignmentParameters::clone(), RigidBodyAlignmentParameters::clone(), RigidBodyAlignmentParameters4D::clone(), BowedSurfaceAlignmentParameters::clone(), TwoBowedSurfacesAlignmentParameters::clone(), RigidBodyAlignmentParameters::cloneFromSelected(), BeamSpotAlignmentParameters::cloneFromSelected(), RigidBodyAlignmentParameters4D::cloneFromSelected(), HIPAlignmentAlgorithm::collector(), HIPAlignmentAlgorithm::fillAlignablesMonitor(), HIPAlignmentAlgorithm::terminate(), HIPUserVariablesIORoot::writeOne(), and MillePedeVariablesIORoot::writeOne().
|
protected |
True if parameters are valid.
Definition at line 127 of file AlignmentParameters.h.
Referenced by isValid(), and setValid().
|
protected |
Definition at line 121 of file AlignmentParameters.h.
Referenced by alignable(), RigidBodyAlignmentParameters::globalParameters(), BeamSpotAlignmentParameters::globalParameters(), and hierarchyLevel().
|
protected |
Definition at line 123 of file AlignmentParameters.h.
Referenced by AlignmentParameters(), BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), covariance(), numSelected(), parameters(), BeamSpotAlignmentParameters::print(), RigidBodyAlignmentParameters::print(), BowedSurfaceAlignmentParameters::print(), TwoBowedSurfacesAlignmentParameters::print(), RigidBodyAlignmentParameters::rotation(), BeamSpotAlignmentParameters::rotation(), BowedSurfaceAlignmentParameters::rotation(), selectedCovariance(), selectedParameters(), selector(), size(), BeamSpotAlignmentParameters::translation(), RigidBodyAlignmentParameters::translation(), and BowedSurfaceAlignmentParameters::translation().
|
protected |
Definition at line 125 of file AlignmentParameters.h.
Referenced by setUserVariables(), userVariables(), and ~AlignmentParameters().