#include <KalmanAlignmentUserVariables.h>
Public Member Functions | |
virtual KalmanAlignmentUserVariables * | clone (void) const |
void | fixAlignable (void) |
void | histogramParameters (std::string histoNamePrefix) |
Histogram current estimate of the alignment parameters wrt. the true values. More... | |
void | hit (void) |
Call this function in case the associated Alignable was hit by a particle. More... | |
const std::string | identifier (void) const |
bool | isAligned (void) const |
KalmanAlignmentUserVariables (Alignable *parent, const TrackerTopology *tTopo, int frequency=100) | |
KalmanAlignmentUserVariables (void) | |
int | numberOfHits (void) const |
Return the number of hits. More... | |
int | numberOfUpdates (void) const |
Return the number of updates. More... | |
void | setAlignmentFlag (bool flag) |
void | unfixAlignable (void) |
void | update (bool enforceUpdate=false) |
Call this function in case the associated Alignable was updated by the alignment algorithm. More... | |
void | update (const AlignmentParameters *param) |
Update user variables with given alignment parameters. More... | |
virtual | ~KalmanAlignmentUserVariables (void) |
Public Member Functions inherited from AlignmentUserVariables | |
virtual | ~AlignmentUserVariables () |
Protected Member Functions | |
const AlgebraicVector | extractTrueParameters (void) const |
const std::string | selectedParameter (const int &selected) const |
float | selectedScaling (const int &selected) const |
const std::string | toString (const int &i) const |
Protected Attributes | |
bool | theAlignmentFlag |
bool | theFirstUpdate |
std::string | theIdentifier |
int | theNumberOfHits |
int | theNumberOfUpdates |
Alignable * | theParentAlignable |
std::string | theTypeAndLayer |
int | theUpdateFrequency |
Static Protected Attributes | |
static const TrackerAlignableId * | theAlignableId = new TrackerAlignableId |
static const AlignableObjectId * | theObjectId |
Definition at line 17 of file KalmanAlignmentUserVariables.h.
KalmanAlignmentUserVariables::KalmanAlignmentUserVariables | ( | Alignable * | parent, |
const TrackerTopology * | tTopo, | ||
int | frequency = 100 |
||
) |
Create new user variables by specifying the associated Alignable, the Alignable's Id and how often the evolution of the estimated parameters should be updated.
Definition at line 19 of file KalmanAlignmentUserVariables.cc.
References Alignable::alignableObjectId(), Alignable::geomDetId(), Alignable::id(), AlignableObjectId::idToString(), AlCaHLTBitMon_QueryRunRegistry::string, theAlignableId, theIdentifier, theTypeAndLayer, toString(), and TrackerAlignableId::typeAndLayerFromDetId().
|
inline |
Definition at line 28 of file KalmanAlignmentUserVariables.h.
Referenced by clone().
|
inlinevirtual |
Definition at line 37 of file KalmanAlignmentUserVariables.h.
|
inlinevirtual |
Implements AlignmentUserVariables.
Definition at line 39 of file KalmanAlignmentUserVariables.h.
References KalmanAlignmentUserVariables().
|
protected |
Definition at line 298 of file KalmanAlignmentUserVariables.cc.
References PV3DBase< T, PVType, FrameType >::basicVector(), Alignable::displacement(), TkRotation< T >::multiplyInverse(), Alignable::rotation(), Alignable::surface(), theParentAlignable, align::toAngles(), AlignableSurface::toLocal(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by histogramParameters(), and update().
void KalmanAlignmentUserVariables::fixAlignable | ( | void | ) |
Definition at line 280 of file KalmanAlignmentUserVariables.cc.
References Alignable::alignmentParameters(), AlignmentParameters::clone(), AlignmentParameters::covariance(), alignCSCRings::e, AlignmentParameters::parameters(), Alignable::setAlignmentParameters(), and theParentAlignable.
void KalmanAlignmentUserVariables::histogramParameters | ( | std::string | histoNamePrefix | ) |
Histogram current estimate of the alignment parameters wrt. the true values.
Definition at line 178 of file KalmanAlignmentUserVariables.cc.
References Alignable::alignmentParameters(), extractTrueParameters(), KalmanAlignmentDataCollector::fillGraph(), KalmanAlignmentDataCollector::fillHistogram(), Alignable::globalPosition(), i, Parameters::parameters, AlignmentParameters::parameters(), PV3DBase< T, PVType, FrameType >::perp(), AlignmentParameters::selectedCovariance(), selectedParameter(), AlignmentParameters::selectedParameters(), selectedScaling(), AlignmentParameters::selector(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, Alignable::surface(), theParentAlignable, theTypeAndLayer, align::toAngles(), AlignableSurface::toGlobal(), align::toMatrix(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by KalmanAlignmentAlgorithm::terminate().
|
inline |
Call this function in case the associated Alignable was hit by a particle.
Definition at line 44 of file KalmanAlignmentUserVariables.h.
References theNumberOfHits.
|
inline |
Definition at line 55 of file KalmanAlignmentUserVariables.h.
References theIdentifier.
|
inline |
Definition at line 58 of file KalmanAlignmentUserVariables.h.
References theAlignmentFlag.
|
inline |
Return the number of hits.
Definition at line 42 of file KalmanAlignmentUserVariables.h.
References theNumberOfHits.
|
inline |
Return the number of updates.
Definition at line 47 of file KalmanAlignmentUserVariables.h.
References theNumberOfUpdates.
Referenced by KalmanAlignmentAlgorithm::terminate().
|
protected |
Definition at line 350 of file KalmanAlignmentUserVariables.cc.
References edm::hlt::Exception, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by histogramParameters(), and update().
|
protected |
Definition at line 379 of file KalmanAlignmentUserVariables.cc.
References alignCSCRings::e, and edm::hlt::Exception.
Referenced by histogramParameters(), and update().
|
inline |
Definition at line 57 of file KalmanAlignmentUserVariables.h.
References archive::flag, and theAlignmentFlag.
Referenced by KalmanAlignmentAlgorithm::initializeAlignmentParameters().
|
protected |
Definition at line 405 of file KalmanAlignmentUserVariables.cc.
References AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.
Referenced by KalmanAlignmentUserVariables().
void KalmanAlignmentUserVariables::unfixAlignable | ( | void | ) |
Definition at line 289 of file KalmanAlignmentUserVariables.cc.
References Alignable::alignmentParameters(), AlignmentParameters::clone(), AlignmentParameters::covariance(), AlignmentParameters::parameters(), Alignable::setAlignmentParameters(), and theParentAlignable.
void KalmanAlignmentUserVariables::update | ( | bool | enforceUpdate = false | ) |
Call this function in case the associated Alignable was updated by the alignment algorithm.
Definition at line 53 of file KalmanAlignmentUserVariables.cc.
References Alignable::alignmentParameters(), AlignmentParameters::covariance(), extractTrueParameters(), KalmanAlignmentDataCollector::fillGraph(), i, Parameters::parameters, AlignmentParameters::parameters(), AlignmentParameters::selectedCovariance(), selectedParameter(), AlignmentParameters::selectedParameters(), selectedScaling(), AlignmentParameters::selector(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, Alignable::surface(), theFirstUpdate, theIdentifier, theNumberOfUpdates, theParentAlignable, theUpdateFrequency, align::toAngles(), AlignableSurface::toGlobal(), and align::toMatrix().
Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), python.seqvaluedict.seqdict::__setslice__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.seqvaluedict.seqdict::extend(), progressbar.ProgressBar::finish(), KalmanAlignmentAlgorithm::initializeAlignmentParameters(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), KalmanAlignmentAlgorithm::terminate(), Vispa.Gui.PortConnection.PointToPointConnection::updateConnection(), and KalmanAlignmentUpdator::updateUserVariables().
void KalmanAlignmentUserVariables::update | ( | const AlignmentParameters * | param | ) |
Update user variables with given alignment parameters.
Definition at line 145 of file KalmanAlignmentUserVariables.cc.
References extractTrueParameters(), KalmanAlignmentDataCollector::fillGraph(), i, Parameters::parameters, AlignmentParameters::selectedCovariance(), selectedParameter(), AlignmentParameters::selectedParameters(), selectedScaling(), AlignmentParameters::selector(), mathSSE::sqrt(), AlCaHLTBitMon_QueryRunRegistry::string, theFirstUpdate, theIdentifier, theNumberOfUpdates, theParentAlignable, and theUpdateFrequency.
Referenced by progressbar.ProgressBar::__next__(), relval_steps.Matrix::__setitem__(), relval_steps.Steps::__setitem__(), python.seqvaluedict.seqdict::__setslice__(), Vispa.Gui.VispaWidget.VispaWidget::autosize(), Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Views.LineDecayView.LineDecayContainer::deselectAllObjects(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::deselectAllWidgets(), Vispa.Gui.VispaWidget.VispaWidget::enableAutosizing(), python.seqvaluedict.seqdict::extend(), progressbar.ProgressBar::finish(), Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseMoveEvent(), Vispa.Gui.MenuWidget.MenuWidget::mouseMoveEvent(), Vispa.Views.LineDecayView.LineDecayContainer::mouseMoveEvent(), Vispa.Gui.VispaWidgetOwner.VispaWidgetOwner::mouseReleaseEvent(), Vispa.Views.LineDecayView.LineDecayContainer::objectMoved(), relval_steps.Steps::overwrite(), Vispa.Views.LineDecayView.LineDecayContainer::removeObject(), Vispa.Gui.ConnectableWidget.ConnectableWidget::removePorts(), Vispa.Gui.FindDialog.FindDialog::reset(), Vispa.Gui.PortConnection.PointToPointConnection::select(), Vispa.Gui.VispaWidget.VispaWidget::select(), Vispa.Views.LineDecayView.LineDecayContainer::select(), Vispa.Gui.VispaWidget.VispaWidget::setText(), Vispa.Gui.VispaWidget.VispaWidget::setTitle(), Vispa.Gui.ZoomableWidget.ZoomableWidget::setZoom(), Vispa.Views.LineDecayView.LineDecayContainer::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
staticprotected |
Definition at line 84 of file KalmanAlignmentUserVariables.h.
Referenced by KalmanAlignmentUserVariables().
|
protected |
Definition at line 79 of file KalmanAlignmentUserVariables.h.
Referenced by isAligned(), and setAlignmentFlag().
|
protected |
Definition at line 78 of file KalmanAlignmentUserVariables.h.
Referenced by update().
|
protected |
Definition at line 81 of file KalmanAlignmentUserVariables.h.
Referenced by identifier(), KalmanAlignmentUserVariables(), and update().
|
protected |
Definition at line 74 of file KalmanAlignmentUserVariables.h.
Referenced by hit(), and numberOfHits().
|
protected |
Definition at line 75 of file KalmanAlignmentUserVariables.h.
Referenced by numberOfUpdates(), and update().
|
staticprotected |
Definition at line 85 of file KalmanAlignmentUserVariables.h.
|
protected |
Definition at line 72 of file KalmanAlignmentUserVariables.h.
Referenced by extractTrueParameters(), fixAlignable(), histogramParameters(), unfixAlignable(), and update().
|
protected |
Definition at line 82 of file KalmanAlignmentUserVariables.h.
Referenced by histogramParameters(), and KalmanAlignmentUserVariables().
|
protected |
Definition at line 76 of file KalmanAlignmentUserVariables.h.
Referenced by update().