#include <Alignable.h>
Public Types | |
typedef align::Alignables | Alignables |
enum | CompConstraintType { CompConstraintType::NONE, CompConstraintType::POSITION, CompConstraintType::POSITION_Z } |
typedef align::GlobalVector | GlobalVector |
typedef align::LocalVector | LocalVector |
typedef align::PositionType | PositionType |
typedef align::RotationType | RotationType |
typedef align::Scalar | Scalar |
typedef align::StructureType | StructureType |
Public Member Functions | |
virtual void | addAlignmentPositionError (const AlignmentPositionError &ape, bool propagateDown)=0 |
virtual void | addAlignmentPositionErrorFromLocalRotation (const RotationType &rotation, bool propagateDown)=0 |
virtual void | addAlignmentPositionErrorFromRotation (const RotationType &rotation, bool propagateDown)=0 |
virtual void | addComponent (Alignable *)=0 |
virtual void | addSurfaceDeformation (const SurfaceDeformation *deformation, bool propagateDown)=0 |
Alignable (align::ID, const AlignableSurface &) | |
Alignable (align::ID, const RotationType &) | |
virtual StructureType | alignableObjectId () const =0 |
Return the alignable type identifier. More... | |
virtual AlignmentErrorsExtended * | alignmentErrors () const =0 |
Return vector of alignment errors. More... | |
AlignmentParameters * | alignmentParameters () const |
Get the AlignmentParameters. More... | |
virtual Alignments * | alignments () const =0 |
Return vector of alignment data. More... | |
virtual void | cacheTransformation () |
cache the current position, rotation and other parameters (e.g. surface deformations), also for possible components More... | |
virtual void | cacheTransformation (const align::RunNumber &) |
virtual CompConstraintType | compConstraintType () const |
Return the alignable type of contraints wrt. its components. More... | |
virtual const Alignables & | components () const =0 |
Return vector of all direct components. More... | |
const Alignables & | deepComponents () const |
const GlobalVector & | displacement () const |
Return change of the global position since the creation of the object. More... | |
virtual void | dump () const =0 |
Recursive printout of alignable information. More... | |
bool | firstCompsWithParams (Alignables ¶mComps) const |
const DetId & | geomDetId () const |
const PositionType & | globalPosition () const |
Return the global position of the object. More... | |
const RotationType & | globalRotation () const |
Return the global orientation of the object. More... | |
align::ID | id () const |
Return the ID of Alignable, i.e. DetId of 'first' component GeomDet(Unit). More... | |
bool | lastCompsWithParams (Alignables ¶mComps) const |
Alignable * | mother () const |
Return pointer to container alignable (if any) More... | |
virtual void | move (const GlobalVector &displacement)=0 |
Movement with respect to the global reference frame. More... | |
virtual void | recenterSurface () |
Recenter surface object without moving possible components. More... | |
virtual void | recursiveComponents (Alignables &result) const =0 |
virtual void | restoreCachedTransformation () |
restore the previously cached transformation, also for possible components More... | |
virtual void | restoreCachedTransformation (const align::RunNumber &) |
virtual void | rotateAroundGlobalAxis (const GlobalVector &axis, Scalar radians) |
Rotation around arbitratry global axis. More... | |
virtual void | rotateAroundGlobalX (Scalar radians) |
Rotation around global x-axis. More... | |
virtual void | rotateAroundGlobalY (Scalar radians) |
Rotation around global y-axis. More... | |
virtual void | rotateAroundGlobalZ (Scalar radians) |
Rotation around global z-axis. More... | |
virtual void | rotateAroundLocalAxis (const LocalVector &axis, Scalar radians) |
Rotation around arbitratry local axis. More... | |
virtual void | rotateAroundLocalX (Scalar radians) |
Rotation around local x-axis. More... | |
virtual void | rotateAroundLocalY (Scalar radians) |
Rotation around local y-axis. More... | |
virtual void | rotateAroundLocalZ (Scalar radians) |
Rotation around local z-axis. More... | |
virtual void | rotateInGlobalFrame (const RotationType &rotation)=0 |
virtual void | rotateInLocalFrame (const RotationType &rotation) |
Rotation intepreted in the local reference frame. More... | |
const RotationType & | rotation () const |
Return change of orientation since the creation of the object. More... | |
void | setAlignmentParameters (AlignmentParameters *dap) |
Set the AlignmentParameters. More... | |
virtual void | setAlignmentPositionError (const AlignmentPositionError &ape, bool propagateDown)=0 |
Set the alignment position error - if (!propagateDown) do not affect daughters. More... | |
void | setMother (Alignable *mother) |
Assign mother to alignable. More... | |
virtual void | setSurfaceDeformation (const SurfaceDeformation *deformation, bool propagateDown)=0 |
Set the surface deformation parameters - if (!propagateDown) do not affect daughters. More... | |
void | setSurvey (const SurveyDet *) |
Set survey info. More... | |
int | size () const |
Return number of direct components. More... | |
const AlignableSurface & | surface () const |
Return the Surface (global position and orientation) of the object. More... | |
virtual int | surfaceDeformationIdPairs (std::vector< std::pair< int, SurfaceDeformation * > > &) const =0 |
AlignmentSurfaceDeformations * | surfaceDeformations () const |
Return surface deformations, sorted by DetId. More... | |
const SurveyDet * | survey () const |
Return survey info. More... | |
void | update (align::ID, const AlignableSurface &) |
virtual | ~Alignable () |
Destructor. More... | |
Protected Types | |
template<class T > | |
using | Cache = std::map< align::RunNumber, T > |
Protected Member Functions | |
void | addDisplacement (const GlobalVector &displacement) |
void | addRotation (const RotationType &rotation) |
virtual void | updateMother (const GlobalVector &shift) |
Private Member Functions | |
Alignable () | |
private default ctr. to enforce usage of the specialised ones More... | |
Private Attributes | |
AlignmentParameters * | theAlignmentParameters |
Alignable * | theMother |
const SurveyDet * | theSurvey |
Abstract base class for alignable entities. Any Alignable object can be moved and rotated. Also an alignment uncertainty can be set.
Definition at line 27 of file Alignable.h.
Definition at line 34 of file Alignable.h.
|
protected |
Definition at line 226 of file Alignable.h.
Definition at line 32 of file Alignable.h.
Definition at line 33 of file Alignable.h.
Definition at line 30 of file Alignable.h.
Definition at line 31 of file Alignable.h.
typedef align::Scalar Alignable::Scalar |
Definition at line 29 of file Alignable.h.
Definition at line 35 of file Alignable.h.
|
strong |
Alignable::Alignable | ( | align::ID | id, |
const AlignableSurface & | surf | ||
) |
Constructor from id and surface, setting also geomDetId (AlignableNavigator relies on the fact that only AlignableDet/DetUnit have geomDetId!)
Definition at line 19 of file Alignable.cc.
Alignable::Alignable | ( | align::ID | id, |
const RotationType & | rot | ||
) |
Constructor for a composite with given rotation. Position is found (later) from average of daughters' positions.
Definition at line 29 of file Alignable.cc.
|
virtual |
Destructor.
Definition at line 39 of file Alignable.cc.
References theAlignmentParameters, and theSurvey.
|
inlineprivate |
private default ctr. to enforce usage of the specialised ones
Definition at line 257 of file Alignable.h.
|
pure virtual |
Add (or set if not already present) the AlignmentPositionError, but if (!propagateDown) do not affect daughters
Implemented in AlignableDetUnit, AlignableComposite, AlignableBeamSpot, and AlignableDet.
Referenced by AlignableModifier::addAlignmentPositionError(), AlignableModifier::addAlignmentPositionErrorLocal(), and AlignmentParameterStore::setAlignmentPositionError().
|
pure virtual |
add (or set if not already present) the AlignmentPositionError which would result from a rotation (given in the LOCAL frame of the Alignable) of the alignable object, but if (!propagateDown) do not affect daughters
Implemented in AlignableComposite, AlignableBeamSpot, and AlignableDetUnit.
Referenced by AlignableModifier::addAlignmentPositionErrorFromLocalRotation().
|
pure virtual |
add (or set if not already present) the AlignmentPositionError which would result from a rotation (given in the GLOBAL frame of CMS) of the alignable object, but if (!propagateDown) do not affect daughters
Implemented in AlignableComposite, AlignableDetUnit, AlignableBeamSpot, and AlignableDet.
Referenced by AlignableModifier::addAlignmentPositionErrorFromRotation(), and AlignmentParameterStore::setAlignmentPositionError().
|
pure virtual |
Add a component to alignable (GF: Should be interface in Composite, but needed in AlignableBuilder::build)
Implemented in AlignableBeamSpot, AlignableComposite, and AlignableDetUnit.
Referenced by SurveyInputBase::addComponent().
|
protected |
Definition at line 190 of file Alignable.cc.
References displacement(), and theDisplacement.
Referenced by AlignableSiStripDet::consistifyAlignments(), AlignableDetUnit::move(), AlignableBeamSpot::move(), and AlignableComposite::move().
|
protected |
Definition at line 193 of file Alignable.cc.
References rotation(), and theRotation.
Referenced by AlignableSiStripDet::consistifyAlignments(), AlignableDetUnit::rotateInGlobalFrame(), AlignableBeamSpot::rotateInGlobalFrame(), and AlignableComposite::rotateInGlobalFrame().
|
pure virtual |
Add the surface deformation parameters to the existing ones, if (!propagateDown) do not affect daughters.
Implemented in AlignableDetUnit, AlignableComposite, and AlignableBeamSpot.
Referenced by AlignableModifier::addDeformation(), BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), AlignmentParameterStore::applyAlignableAbsolutePositions(), and AlignmentParameterStore::applyAlignableRelativePositions().
|
pure virtual |
Return the alignable type identifier.
Implemented in AlignableComposite, AlignableDetUnit, and AlignableBeamSpot.
Referenced by AlignmentParameterBuilder::add(), SurveyInputTrackerFromDB::addSurveyInfo(), SurveyMisalignmentInput::addSurveyInfo(), TrackerGeometryCompare::addSurveyInfo(), AlignmentProducerBase::addSurveyInfo(), MuonAlignmentInputSurveyDB::addSurveyInfo_(), MomentumDependentPedeLabeler::alignableLabel(), PedeLabeler::alignableLabel(), RunRangeDependentPedeLabeler::alignableLabel(), MomentumDependentPedeLabeler::alignableLabelFromParamAndInstance(), RunRangeDependentPedeLabeler::alignableLabelFromParamAndInstance(), AlignmentParameterStore::applyAlignableAbsolutePositions(), AlignmentParameterStore::applyAlignableRelativePositions(), TrackerSystematicMisalignments::applySystematicMisalignment(), AlignmentMonitorGeneric::book(), TrackerOfflineValidation::bookDirHists(), TrackerOfflineValidation::bookHists(), TrackerOfflineValidation::bookSummaryHists(), PedeReader::checkAliParams(), PedeSteererWeakModeConstraints::checkMother(), PedeSteererWeakModeConstraints::checkSelectionShiftParameter(), TrackerGeometryCompare::compareGeometries(), PedeSteererWeakModeConstraints::constructConstraints(), align::createPoints(), AlignmentParameterSelector::detUnitDeselected(), align::diffAlignables(), TrackerGeometryCompare::diffCommonTrackerSystem(), MuonGeometryArrange::fillTree(), TrackerGeometryCompare::fillTree(), HIPAlignmentAlgorithm::findAlignableSpecs(), MuonAlignmentInputXML::getCSCnode(), MuonAlignmentInputXML::getDTnode(), PedeSteererWeakModeConstraints::getFile(), MillePedeFileReader::getHLS(), SurveyDBUploader::getSurveyInfo(), PedeSteerer::hierarchyConstraint(), HIPAlignableSpecificParameters::objId(), MomentumDependentPedeLabeler::parameterLabel(), RunRangeDependentPedeLabeler::parameterLabel(), TrackerOfflineValidation::prepareSummaryHists(), AlignableDataIORoot::readAbsRaw(), AlignmentParametersIORoot::readOne(), HIPUserVariablesIORoot::readOne(), MillePedeVariablesIORoot::readOne(), AlignableDataIORoot::readRelRaw(), AlignableNavigator::recursiveGetId(), CreateSurveyRcds::setGeometry(), CreateSurveyRcds::setSurveyErrors(), SurveyResidual::SurveyResidual(), AlignmentCorrelationsIORoot::write(), AlignableDataIO::writeAbsPos(), AlignmentParametersIORoot::writeOne(), HIPUserVariablesIORoot::writeOne(), MillePedeVariablesIORoot::writeOne(), AlignableDataIO::writeOrgPos(), and AlignableDataIO::writeRelPos().
|
pure virtual |
Return vector of alignment errors.
Implemented in AlignableMuon, AlignableTracker, AlignableComposite, AlignableDetUnit, AlignableBeamSpot, AlignableCSCEndcap, AlignableDTBarrel, AlignableDet, and AlignableGEMEndcap.
Referenced by SurveyInputTrackerFromDB::analyze().
|
inline |
Get the AlignmentParameters.
Definition at line 58 of file Alignable.h.
References theAlignmentParameters.
Referenced by AlignmentParameterStore::acquireRelativeParameters(), MillePedeAlignmentAlgorithm::addHitCount(), AlignmentParameterStore::alignableFromAlignableDet(), CSCAlignmentCorrections::applyAlignment(), AlignmentParameterStore::applyParameters(), HIPAlignmentAlgorithm::calcParameters(), PedeReader::checkAliParams(), PedeSteererWeakModeConstraints::checkSelectionShiftParameter(), PedeSteererWeakModeConstraints::constructConstraints(), PedeSteerer::defineCoordinates(), CompositeAlignmentParameters::derivativesLegacy(), AlignmentCorrelationsStore::fillCorrelationsTable(), AlignmentExtendedCorrelationsStore::fillCorrelationsTable(), PedeSteerer::fixParameter(), PedeSteererWeakModeConstraints::getDoubleSensorPosition(), MillePedeAlignmentAlgorithm::globalDerivativesHierarchy(), AlignmentParameterStore::hierarchyConstraints(), ParametersToParametersDerivatives::init2BowedRigid(), ParametersToParametersDerivatives::ParametersToParametersDerivatives(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), CSCChamberFitter::radiusCorrection(), AlignmentParametersIORoot::readOne(), AlignmentParameterStore::resetParameters(), AlignmentParameterStore::selectParameters(), SurveyAlignment::shiftSensors(), HIPAlignmentAlgorithm::terminate(), AlignmentCorrelationsIORoot::write(), AlignableDataIO::writeAbsPos(), AlignmentParametersIORoot::writeOne(), HIPUserVariablesIORoot::writeOne(), MillePedeVariablesIORoot::writeOne(), AlignmentParametersIO::writeOneOrigRigidBody(), AlignableDataIO::writeOrgPos(), and AlignableDataIO::writeRelPos().
|
pure virtual |
Return vector of alignment data.
Implemented in AlignableMuon, AlignableTracker, AlignableComposite, AlignableDetUnit, AlignableBeamSpot, AlignableCSCEndcap, AlignableDTBarrel, AlignableDet, AlignableGEMEndcap, and AlignableSiStripDet.
Referenced by SurveyInputTrackerFromDB::analyze().
|
virtual |
cache the current position, rotation and other parameters (e.g. surface deformations), also for possible components
Reimplemented in AlignableDetUnit.
Definition at line 215 of file Alignable.cc.
References components(), theCachedDisplacement, theCachedRotation, theCachedSurface, theDisplacement, theRotation, and theSurface.
|
virtual |
cache for the given run the current position, rotation and other parameters (e.g. surface deformations), also for possible components
Reimplemented in AlignableDetUnit.
Definition at line 226 of file Alignable.cc.
References components(), displacementsCache_, rotationsCache_, writedatasetfile::run, surfacesCache_, theDisplacement, theRotation, and theSurface.
|
inlinevirtual |
Return the alignable type of contraints wrt. its components.
Definition at line 183 of file Alignable.h.
References compConstraintType_.
Referenced by updateMother().
|
pure virtual |
Return vector of all direct components.
Implemented in AlignableComposite, AlignableBeamSpot, AlignableDetUnit, and AlignableMuon.
Referenced by SurveyInputTrackerFromDB::addSurveyInfo(), SurveyMisalignmentInput::addSurveyInfo(), TrackerGeometryCompare::addSurveyInfo(), AlignmentProducerBase::addSurveyInfo(), MuonAlignmentInputSurveyDB::addSurveyInfo_(), TrackerSystematicMisalignments::applySystematicMisalignment(), TrackerOfflineValidation::bookDirHists(), TrackerOfflineValidation::bookSummaryHists(), cacheTransformation(), MuonGeometryArrange::compare(), MuonGeometryArrange::compareGeometries(), TrackerGeometryCompare::compareGeometries(), align::createPoints(), TrackerGeometryCompare::diffCommonTrackerSystem(), SurveyInputCSCfromPins::fillAllRecords(), SurveyResidual::findSisters(), firstCompsWithParams(), SurveyDBUploader::getSurveyInfo(), MuonGeometryArrange::isMother(), lastCompsWithParams(), MuonGeometryArrange::passChosen(), TrackerOfflineValidation::prepareSummaryHists(), MuonAlignment::recursiveCopySurveyToAlignment(), AlignableNavigator::recursiveGetId(), AlignableMuon::recursiveSetMothers(), restoreCachedTransformation(), CreateSurveyRcds::setGeometry(), CreateSurveyRcds::setSurveyErrors(), and size().
|
inline |
Return the list of lowest daughters (non-composites) of Alignable. Contain itself if Alignable is a unit.
Definition at line 72 of file Alignable.h.
References theDeepComponents.
Referenced by AlignableComposite::addComponent(), TrackerGeometryCompare::createROOTGeometry(), SurveyResidual::findSisters(), HIPAlignableSpecificParameters::matchAlignable(), and updateMother().
|
inline |
Return change of the global position since the creation of the object.
Definition at line 141 of file Alignable.h.
References theDisplacement.
Referenced by AlignmentParameterStore::acquireRelativeParameters(), addDisplacement(), BeamSpotAlignmentParameters::displacementFromAlignable(), RigidBodyAlignmentParameters::displacementFromAlignable(), AlignableDetUnit::dump(), AlignableDetUnit::move(), AlignableBeamSpot::move(), AlignableComposite::move(), SurveyOutput::write(), AlignableDataIO::writeOrgPos(), and AlignableDataIO::writeRelPos().
|
pure virtual |
Recursive printout of alignable information.
Implemented in AlignableCSCRing, AlignableCSCStation, AlignableCSCEndcap, AlignableDTBarrel, AlignableDTStation, AlignableDTWheel, AlignableGEMStation, AlignableGEMEndcap, AlignableGEMRing, AlignableComposite, AlignableDetUnit, and AlignableBeamSpot.
bool Alignable::firstCompsWithParams | ( | Alignables & | paramComps | ) | const |
Steps down hierarchy until components with AlignmentParameters are found and adds them to argument. True either if no such components are found or if all branches of components end with such components (i.e. 'consistent').
Definition at line 62 of file Alignable.cc.
References components(), and first.
Referenced by AlignmentParameters::hierarchyLevel().
|
inline |
Return the DetId of the associated GeomDet (0 by default) This should be removed. Ultimately we need only one ID.
Definition at line 177 of file Alignable.h.
References theDetId.
Referenced by TrackerGeometryCompare::addSurveyInfo(), MuonAlignmentInputSurveyDB::addSurveyInfo_(), AlignableDet::alignmentErrors(), AlignableDetUnit::alignmentErrors(), AlignableDet::alignments(), AlignableDetUnit::alignments(), TrackerSystematicMisalignments::applySystematicMisalignment(), SurveyResidual::calculate(), MuonGeometryArrange::checkChosen(), TrackerGeometryCompare::compareGeometries(), PedeSteererWeakModeConstraints::constructConstraints(), AlignmentParameterSelector::detUnitDeselected(), SurveyInputCSCfromPins::fillAllRecords(), MuonGeometryArrange::fillTree(), TrackerGeometryCompare::fillTree(), MuonAlignmentFromReference::processMuonResidualsFromTrack(), AlignableNavigator::recursiveGetId(), AlignableDetUnit::surfaceDeformationIdPairs(), and SurveyResidual::SurveyResidual().
|
inline |
Return the global position of the object.
Definition at line 135 of file Alignable.h.
References GloballyPositioned< T >::position(), and surface().
Referenced by AlignableComposite::addAlignmentPositionErrorFromRotation(), AlignableComposite::addComponent(), AlignableDet::alignments(), AlignableBeamSpot::alignments(), AlignableDetUnit::alignments(), AlignmentParameterStore::applyAlignableAbsolutePositions(), TrackerSystematicMisalignments::applySystematicMisalignment(), SurveyResidual::calculate(), PedeSteererWeakModeConstraints::checkSelectionShiftParameter(), AlignableSiStripDet::consistifyAlignments(), PedeSteererWeakModeConstraints::constructConstraints(), align::diffAlignables(), TrackerGeometryCompare::diffCommonTrackerSystem(), MuonAlignmentInputXML::do_setposition(), AlignableBeamSpot::dump(), AlignableDetUnit::dump(), AlignableComposite::dump(), MillePedeMonitor::fillFrameToFrame(), MuonGeometryArrange::fillTree(), TrackerGeometryCompare::fillTree(), MuonResiduals6DOFrphiFitter::fit(), PedeSteerer::fixParameter(), FrameToFrameDerivative::frameToFrameDerivative(), PedeSteerer::hierarchyConstraint(), ParametersToParametersDerivatives::init2BowedRigid(), AlignmentParameterSelector::outsideGeometricalRanges(), recenterSurface(), MuonAlignment::recursiveCopySurveyToAlignment(), AlignableComposite::rotateInGlobalFrame(), MuonAlignmentInputXML::set_one_position(), TrackerGeometryCompare::setCommonTrackerSystem(), AlignableComposite::update(), AlignableDataIO::writeOrgPos(), and TwoBowedSurfacesAlignmentParameters::ySplitFromAlignable().
|
inline |
Return the global orientation of the object.
Definition at line 138 of file Alignable.h.
References GloballyPositioned< T >::rotation(), and surface().
Referenced by AlignableDetUnit::addAlignmentPositionErrorFromLocalRotation(), AlignableComposite::addAlignmentPositionErrorFromLocalRotation(), AlignableModifier::addAlignmentPositionErrorLocal(), AlignableDet::alignments(), AlignableBeamSpot::alignments(), AlignableDetUnit::alignments(), AlignmentParameterStore::applyAlignableAbsolutePositions(), SurveyResidual::calculate(), AlignableSiStripDet::consistifyAlignments(), RigidBodyAlignmentParameters::displacementFromAlignable(), BeamSpotAlignmentParameters::displacementFromAlignable(), MuonAlignmentInputXML::do_setposition(), AlignableBeamSpot::dump(), AlignableDetUnit::dump(), AlignableComposite::dump(), MuonGeometryArrange::fillTree(), TrackerGeometryCompare::fillTree(), FrameToFrameDerivative::frameToFrameDerivative(), ParametersToParametersDerivatives::init2BowedRigid(), MuonAlignment::recursiveCopySurveyToAlignment(), MuonAlignmentInputXML::set_one_position(), and AlignableDataIO::writeOrgPos().
|
inline |
Return the ID of Alignable, i.e. DetId of 'first' component GeomDet(Unit).
Definition at line 180 of file Alignable.h.
References theId.
Referenced by SurveyInputTrackerFromDB::addSurveyInfo(), SurveyMisalignmentInput::addSurveyInfo(), AlignmentProducerBase::addSurveyInfo(), MomentumDependentPedeLabeler::alignableLabel(), PedeLabeler::alignableLabel(), RunRangeDependentPedeLabeler::alignableLabel(), MomentumDependentPedeLabeler::alignableLabelFromParamAndInstance(), RunRangeDependentPedeLabeler::alignableLabelFromParamAndInstance(), AlignmentParameterStore::applyAlignableAbsolutePositions(), AlignmentParameterStore::applyAlignableRelativePositions(), AlignmentMonitorSurvey::book(), AlignmentMonitorGeneric::book(), TrackerOfflineValidation::bookHists(), TrackerOfflineValidation::bookSummaryHists(), HIPAlignmentAlgorithm::calcParameters(), MuonGeometryArrange::checkChosen(), PedeSteererWeakModeConstraints::checkMother(), TrackerGeometryCompare::compareGeometries(), align::createPoints(), align::diffAlignables(), MuonGeometryArrange::fillTree(), TrackerGeometryCompare::fillTree(), HIPAlignmentAlgorithm::findAlignableSpecs(), PedeSteerer::fixParameter(), PedeSteererWeakModeConstraints::getFile(), MillePedeFileReader::getHLS(), SurveyDBUploader::getSurveyInfo(), HIPAlignableSpecificParameters::id(), AlignmentParameterSelector::layerDeselected(), AlignmentParameterSelector::outsideDetIdRanges(), MomentumDependentPedeLabeler::parameterLabel(), RunRangeDependentPedeLabeler::parameterLabel(), AlignableDataIORoot::readAbsRaw(), AlignmentParametersIORoot::readOne(), HIPUserVariablesIORoot::readOne(), MillePedeVariablesIORoot::readOne(), AlignableDataIORoot::readRelRaw(), HIPAlignmentAlgorithm::run(), CreateSurveyRcds::setGeometry(), CreateSurveyRcds::setSurveyErrors(), HIPAlignmentAlgorithm::terminate(), AlignmentParameterStore::typeAndLayer(), AlignmentCorrelationsIORoot::write(), AlignableDataIO::writeAbsPos(), AlignmentParametersIORoot::writeOne(), HIPUserVariablesIORoot::writeOne(), MillePedeVariablesIORoot::writeOne(), AlignableDataIO::writeOrgPos(), and AlignableDataIO::writeRelPos().
bool Alignable::lastCompsWithParams | ( | Alignables & | paramComps | ) | const |
Steps down hierarchy to the lowest level of components with AlignmentParameters and adds them to argument. True either if no such components are found or if all branches of components end with such components (i.e. 'consistent').
Definition at line 93 of file Alignable.cc.
References components(), and first.
|
inline |
Return pointer to container alignable (if any)
Definition at line 91 of file Alignable.h.
References theMother.
Referenced by MillePedeAlignmentAlgorithm::addHitCount(), AlignableCSCEndcap::AlignableCSCEndcap(), AlignableCSCRing::AlignableCSCRing(), AlignableCSCStation::AlignableCSCStation(), AlignableDTBarrel::AlignableDTBarrel(), AlignableDTStation::AlignableDTStation(), AlignableDTWheel::AlignableDTWheel(), AlignmentParameterStore::alignableFromAlignableDet(), AlignableGEMEndcap::AlignableGEMEndcap(), AlignableGEMRing::AlignableGEMRing(), AlignableGEMStation::AlignableGEMStation(), SurveyInputCSCfromPins::analyze(), SurveyResidual::calculate(), PedeSteererWeakModeConstraints::checkMother(), MuonGeometryArrange::compareGeometries(), align::createPoints(), MuonAlignmentInputXML::do_setposition(), AlignmentMonitorTemplate::event(), AlignmentMonitorGeneric::event(), MuonGeometryArrange::fillTree(), TrackerGeometryCompare::fillTree(), SurveyResidual::findSisters(), MuonAlignmentInputXML::getCSCnode(), MuonAlignmentInputXML::getDTnode(), MillePedeAlignmentAlgorithm::globalDerivativesHierarchy(), CreateSurveyRcds::setGeometry(), setMother(), and SurveyResidual::SurveyResidual().
|
pure virtual |
Movement with respect to the global reference frame.
Implemented in AlignableComposite, AlignableBeamSpot, and AlignableDetUnit.
Referenced by SurveyInputTrackerFromDB::addSurveyInfo(), SurveyInputCSCfromPins::analyze(), BeamSpotAlignmentParameters::apply(), RigidBodyAlignmentParameters::apply(), BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), AlignmentParameterStore::applyAlignableAbsolutePositions(), AlignmentParameterStore::applyAlignableRelativePositions(), TrackerSystematicMisalignments::applySystematicMisalignment(), PedeSteerer::correctToReferenceSystem(), MuonAlignmentInputXML::do_moveglobal(), MuonAlignmentInputXML::do_movelocal(), MuonAlignmentInputXML::do_rotatebeamline(), MuonAlignmentInputXML::do_rotateglobalaxis(), align::moveAlignable(), AlignableModifier::moveAlignable(), MuonAlignment::moveAlignableGlobalCoord(), AlignableModifier::moveAlignableLocal(), MuonAlignment::moveAlignableLocalCoord(), MuonAlignment::recursiveCopySurveyToAlignment(), MuonAlignmentInputXML::set_one_position(), CreateSurveyRcds::setGeometry(), and SurveyAlignment::shiftSensors().
|
virtual |
Recenter surface object without moving possible components.
Definition at line 295 of file Alignable.cc.
References globalPosition(), GloballyPositioned< T >::move(), theSurface, and PV3DBase< T, PVType, FrameType >::x().
|
pure virtual |
Provide all components, subcomponents, subsub... etc. of Alignable down to AlignableDetUnit, except for 'single childs' like e.g. AlignableDetUnits of AlignableDets representing single sided SiStrip modules. (for performance reason by adding to argument)
Implemented in AlignableComposite, and AlignableDetUnit.
|
virtual |
restore the previously cached transformation, also for possible components
Reimplemented in AlignableDetUnit.
Definition at line 237 of file Alignable.cc.
References components(), theCachedDisplacement, theCachedRotation, theCachedSurface, theDisplacement, theRotation, and theSurface.
|
virtual |
restore for the given run the previously cached transformation, also for possible components
Reimplemented in AlignableDetUnit.
Definition at line 248 of file Alignable.cc.
References components(), displacementsCache_, Exception, rotationsCache_, writedatasetfile::run, surfacesCache_, theDisplacement, theRotation, and theSurface.
|
virtual |
Rotation around arbitratry global axis.
Definition at line 138 of file Alignable.cc.
References PV3DBase< T, PVType, FrameType >::basicVector(), and rotateInGlobalFrame().
Referenced by MuonAlignmentInputXML::do_rotateglobalaxis().
|
virtual |
Rotation around global x-axis.
Definition at line 148 of file Alignable.cc.
References funct::cos(), makeMuonMisalignmentScenario::rot, rotateInGlobalFrame(), and funct::sin().
Referenced by MuonAlignment::moveAlignableGlobalCoord(), and AlignableModifier::rotateAlignable().
|
virtual |
Rotation around global y-axis.
Definition at line 162 of file Alignable.cc.
References funct::cos(), makeMuonMisalignmentScenario::rot, rotateInGlobalFrame(), and funct::sin().
Referenced by MuonAlignment::moveAlignableGlobalCoord(), and AlignableModifier::rotateAlignable().
|
virtual |
Rotation around global z-axis.
Definition at line 176 of file Alignable.cc.
References funct::cos(), makeMuonMisalignmentScenario::rot, rotateInGlobalFrame(), and funct::sin().
Referenced by MuonAlignmentInputXML::do_rotatebeamline(), MuonAlignment::moveAlignableGlobalCoord(), and AlignableModifier::rotateAlignable().
|
virtual |
Rotation around arbitratry local axis.
Definition at line 143 of file Alignable.cc.
References PV3DBase< T, PVType, FrameType >::basicVector(), and rotateInLocalFrame().
Referenced by MuonAlignmentInputXML::do_rotatelocal().
|
virtual |
Rotation around local x-axis.
Definition at line 155 of file Alignable.cc.
References funct::cos(), makeMuonMisalignmentScenario::rot, rotateInLocalFrame(), and funct::sin().
Referenced by SurveyInputCSCfromPins::analyze(), MuonAlignment::moveAlignableLocalCoord(), AlignableModifier::rotateAlignableLocal(), and CreateSurveyRcds::setGeometry().
|
virtual |
Rotation around local y-axis.
Definition at line 169 of file Alignable.cc.
References funct::cos(), makeMuonMisalignmentScenario::rot, rotateInLocalFrame(), and funct::sin().
Referenced by MuonAlignment::moveAlignableLocalCoord(), AlignableModifier::rotateAlignableLocal(), and CreateSurveyRcds::setGeometry().
|
virtual |
Rotation around local z-axis.
Definition at line 183 of file Alignable.cc.
References funct::cos(), makeMuonMisalignmentScenario::rot, rotateInLocalFrame(), and funct::sin().
Referenced by SurveyInputCSCfromPins::analyze(), MuonAlignment::moveAlignableLocalCoord(), AlignableModifier::rotateAlignableLocal(), and CreateSurveyRcds::setGeometry().
|
pure virtual |
Rotation intepreted such that the orientation of the rotation axis is w.r.t. to the global coordinate system. Rotation is relative to current orientation
Implemented in AlignableComposite, AlignableBeamSpot, and AlignableDetUnit.
Referenced by BeamSpotAlignmentParameters::apply(), RigidBodyAlignmentParameters::apply(), BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), AlignmentParameterStore::applyAlignableAbsolutePositions(), AlignmentParameterStore::applyAlignableRelativePositions(), PedeSteerer::correctToReferenceSystem(), align::moveAlignable(), MuonAlignment::recursiveCopySurveyToAlignment(), rotateAroundGlobalAxis(), rotateAroundGlobalX(), rotateAroundGlobalY(), rotateAroundGlobalZ(), rotateInLocalFrame(), MuonAlignmentInputXML::set_one_position(), and SurveyAlignment::shiftSensors().
|
virtual |
Rotation intepreted in the local reference frame.
Definition at line 129 of file Alignable.cc.
References rotateInGlobalFrame(), rotation(), and surface().
Referenced by SurveyInputTrackerFromDB::addSurveyInfo(), rotateAroundLocalAxis(), rotateAroundLocalX(), rotateAroundLocalY(), and rotateAroundLocalZ().
|
inline |
Return change of orientation since the creation of the object.
Definition at line 144 of file Alignable.h.
References theRotation.
Referenced by AlignmentParameterStore::acquireRelativeParameters(), AlignableComposite::addAlignmentPositionErrorFromRotation(), addRotation(), AlignableSiStripDet::consistifyAlignments(), BeamSpotAlignmentParameters::displacementFromAlignable(), RigidBodyAlignmentParameters::displacementFromAlignable(), AlignableDetUnit::dump(), AlignableDetUnit::rotateInGlobalFrame(), AlignableBeamSpot::rotateInGlobalFrame(), AlignableComposite::rotateInGlobalFrame(), rotateInLocalFrame(), SurveyOutput::write(), AlignableDataIO::writeOrgPos(), and AlignableDataIO::writeRelPos().
void Alignable::setAlignmentParameters | ( | AlignmentParameters * | dap | ) |
Set the AlignmentParameters.
Definition at line 123 of file Alignable.cc.
References theAlignmentParameters.
Referenced by AlignmentParameterStore::acquireRelativeParameters(), AlignmentParameterBuilder::add(), CSCAlignmentCorrections::applyAlignment(), HIPAlignmentAlgorithm::calcParameters(), PedeSteerer::defineCoordinates(), SurveyAlignmentSensor::findAlignPars(), SurveyAlignmentPoints::findAlignPars(), CSCChamberFitter::radiusCorrection(), AlignmentParameterStore::resetParameters(), PedeReader::setParameter(), and AlignmentParametersIO::writeOneOrigRigidBody().
|
pure virtual |
Set the alignment position error - if (!propagateDown) do not affect daughters.
Implemented in AlignableDetUnit, AlignableComposite, AlignableBeamSpot, and AlignableDet.
Referenced by MuonAlignment::recursiveCopySurveyToAlignment(), and AlignmentParameterStore::setAlignmentPositionError().
|
inline |
Assign mother to alignable.
Definition at line 94 of file Alignable.h.
References mother(), and theMother.
Referenced by AlignableComposite::addComponent(), AlignableCSCEndcap::AlignableCSCEndcap(), AlignableCSCRing::AlignableCSCRing(), AlignableCSCStation::AlignableCSCStation(), AlignableDTBarrel::AlignableDTBarrel(), AlignableDTStation::AlignableDTStation(), AlignableDTWheel::AlignableDTWheel(), AlignableGEMEndcap::AlignableGEMEndcap(), and AlignableGEMStation::AlignableGEMStation().
|
pure virtual |
Set the surface deformation parameters - if (!propagateDown) do not affect daughters.
Implemented in AlignableDetUnit, AlignableComposite, and AlignableBeamSpot.
void Alignable::setSurvey | ( | const SurveyDet * | survey | ) |
Set survey info.
Definition at line 266 of file Alignable.cc.
References survey(), and theSurvey.
Referenced by SurveyInputTrackerFromDB::addSurveyInfo(), SurveyMisalignmentInput::addSurveyInfo(), TrackerGeometryCompare::addSurveyInfo(), AlignmentProducerBase::addSurveyInfo(), MuonAlignmentInputSurveyDB::addSurveyInfo_(), SurveyInputCSCfromPins::analyze(), MuonAlignment::copyAlignmentToSurvey(), align::createPoints(), MuonAlignmentInputXML::do_moveglobal(), MuonAlignmentInputXML::do_movelocal(), MuonAlignmentInputXML::do_rotatebeamline(), MuonAlignmentInputXML::do_rotateglobalaxis(), MuonAlignmentInputXML::do_rotatelocal(), MuonAlignmentInputXML::do_setsurveyerr(), SurveyInputCSCfromPins::fillAllRecords(), MuonAlignmentInputXML::set_one_position(), and CreateSurveyRcds::setSurveyErrors().
|
inline |
Return number of direct components.
Definition at line 68 of file Alignable.h.
References components().
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), AlignableDTStation::chamber(), AlignableCSCRing::chamber(), AlignableComposite::moveComponentLocal(), AlignableGEMStation::ring(), AlignableCSCStation::ring(), AlignableGEMEndcap::station(), AlignableCSCEndcap::station(), AlignableDTWheel::station(), AlignableGEMRing::superChamber(), and AlignableDTBarrel::wheel().
|
inline |
Return the Surface (global position and orientation) of the object.
Definition at line 132 of file Alignable.h.
References theSurface.
Referenced by AlignmentParameterStore::acquireRelativeParameters(), AlignableDet::addAlignmentPositionErrorFromRotation(), AlignableDetUnit::addAlignmentPositionErrorFromRotation(), MillePedeAlignmentAlgorithm::addPxbSurvey(), MuonDT2ChamberResidual::addResidual(), MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), SurveyInputTrackerFromDB::addSurveyInfo(), SurveyMisalignmentInput::addSurveyInfo(), TrackerGeometryCompare::addSurveyInfo(), AlignmentProducerBase::addSurveyInfo(), MuonAlignmentInputSurveyDB::addSurveyInfo_(), SurveyInputCSCfromPins::analyze(), BeamSpotAlignmentParameters::apply(), RigidBodyAlignmentParameters::apply(), BowedSurfaceAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), CSCAlignmentCorrections::applyAlignment(), SurveyResidual::calculate(), PedeSteererWeakModeConstraints::constructConstraints(), MuonAlignment::copyAlignmentToSurvey(), align::createPoints(), BowedSurfaceAlignmentParameters::derivatives(), TwoBowedSurfacesAlignmentParameters::derivatives(), align::diffAlignables(), RigidBodyAlignmentParameters::displacementFromAlignable(), MuonAlignmentInputXML::do_moveglobal(), MuonAlignmentInputXML::do_movelocal(), MuonAlignmentInputXML::do_rotatebeamline(), MuonAlignmentInputXML::do_rotateglobalaxis(), MuonAlignmentInputXML::do_rotatelocal(), MuonAlignmentInputXML::do_setsurveyerr(), SurveyInputCSCfromPins::fillAllRecords(), MuonGeometryArrange::fillTree(), TrackerGeometryCompare::fillTree(), PedeSteererWeakModeConstraints::getDoubleSensorPosition(), MuonChamberResidual::global_stubpos(), MuonChamberResidual::global_trackpos(), BeamSpotAlignmentParameters::globalParameters(), RigidBodyAlignmentParameters::globalParameters(), globalPosition(), globalRotation(), ParametersToParametersDerivatives::init2BowedRigid(), ParametersToParametersDerivatives::initBowedRigid(), AlignableModifier::moveAlignableLocal(), MuonAlignment::moveAlignableLocalCoord(), AlignableComposite::moveComponentLocal(), AlignableComposite::moveComponentsLocal(), MuonResiduals6DOFrphiFitter::plot(), MuonResiduals5DOFFitter::plot(), MuonResiduals6DOFFitter::plot(), AlignmentMonitorSegmentDifferences::processMuonResidualsFromTrack(), rotateInLocalFrame(), BowedSurfaceAlignmentParameters::rotation(), MuonAlignmentInputXML::set_one_position(), CreateSurveyRcds::setGeometry(), CreateSurveyRcds::setSurveyErrors(), SurveyAlignment::shiftSensors(), HIPAlignmentAlgorithm::terminate(), AlignableDataIO::writeAbsPos(), and AlignableDetUnit::~AlignableDetUnit().
|
pure virtual |
Return surface deformations as a vector of pairs of raw DetId and pointers to surface deformations
Implemented in AlignableComposite, AlignableBeamSpot, and AlignableDetUnit.
Referenced by AlignmentParameterStore::applyAlignableAbsolutePositions(), AlignmentParameterStore::applyAlignableRelativePositions(), surfaceDeformations(), and AlignableDataIO::writeAbsPos().
AlignmentSurfaceDeformations * Alignable::surfaceDeformations | ( | void | ) | const |
Return surface deformations, sorted by DetId.
Definition at line 196 of file Alignable.cc.
References a, b, mps_fire::result, jetUpdater_cfi::sort, and surfaceDeformationIdPairs().
|
inline |
Return survey info.
Definition at line 216 of file Alignable.h.
References theSurvey.
Referenced by SurveyInputCSCfromPins::analyze(), SurveyResidual::calculate(), align::createPoints(), MuonAlignmentInputXML::do_moveglobal(), MuonAlignmentInputXML::do_movelocal(), MuonAlignmentInputXML::do_rotatebeamline(), MuonAlignmentInputXML::do_rotateglobalaxis(), MuonAlignmentInputXML::do_rotatelocal(), SurveyInputCSCfromPins::fillAllRecords(), SurveyAlignmentPoints::findAlignPars(), SurveyDBUploader::getSurveyInfo(), MuonAlignment::recursiveCopySurveyToAlignment(), MuonAlignmentInputXML::set_one_position(), and setSurvey().
void Alignable::update | ( | align::ID | id, |
const AlignableSurface & | surf | ||
) |
Updater using id and surface. The given id has to match the current id.
Definition at line 45 of file Alignable.cc.
References Exception, GloballyPositioned< T >::position(), edm::shift, theDisplacement, theId, theRotation, theSurface, and updateMother().
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), dqm-mbProfile.Profile::finish(), progressbar.ProgressBar::finish(), MatrixUtil.Steps::overwrite(), AlignableBeamSpot::reset(), AlignableDetUnit::update(), and AlignableComposite::update().
|
protectedvirtual |
Definition at line 272 of file Alignable.cc.
References compConstraintType(), deepComponents(), GloballyPositioned< T >::move(), NONE, POSITION, POSITION_Z, edm::shift, theMother, theSurface, and updateMother().
Referenced by update(), and updateMother().
|
protected |
Definition at line 246 of file Alignable.h.
Referenced by AlignableComposite::AlignableComposite(), AlignableCSCChamber::AlignableCSCChamber(), AlignableCSCEndcap::AlignableCSCEndcap(), AlignableCSCRing::AlignableCSCRing(), AlignableCSCStation::AlignableCSCStation(), AlignableDet::AlignableDet(), AlignableDTBarrel::AlignableDTBarrel(), AlignableDTStation::AlignableDTStation(), AlignableDTWheel::AlignableDTWheel(), AlignableGEMEndcap::AlignableGEMEndcap(), AlignableGEMRing::AlignableGEMRing(), AlignableGEMStation::AlignableGEMStation(), and compConstraintType().
|
protected |
Definition at line 252 of file Alignable.h.
Referenced by AlignableDetUnit::cacheTransformation(), cacheTransformation(), AlignableDetUnit::restoreCachedTransformation(), and restoreCachedTransformation().
|
protected |
Definition at line 253 of file Alignable.h.
Referenced by AlignableDetUnit::cacheTransformation(), cacheTransformation(), AlignableDetUnit::restoreCachedTransformation(), and restoreCachedTransformation().
|
protected |
Definition at line 251 of file Alignable.h.
Referenced by AlignableDetUnit::cacheTransformation(), cacheTransformation(), AlignableDetUnit::restoreCachedTransformation(), and restoreCachedTransformation().
|
private |
Definition at line 257 of file Alignable.h.
Referenced by alignmentParameters(), setAlignmentParameters(), and ~Alignable().
|
protected |
Definition at line 243 of file Alignable.h.
Referenced by AlignableDetUnit::cacheTransformation(), cacheTransformation(), AlignableDetUnit::restoreCachedTransformation(), and restoreCachedTransformation().
|
protected |
Definition at line 244 of file Alignable.h.
Referenced by AlignableDetUnit::cacheTransformation(), cacheTransformation(), AlignableDetUnit::restoreCachedTransformation(), and restoreCachedTransformation().
|
protected |
Definition at line 242 of file Alignable.h.
Referenced by AlignableDetUnit::cacheTransformation(), cacheTransformation(), AlignableDetUnit::restoreCachedTransformation(), and restoreCachedTransformation().
|
protected |
Definition at line 248 of file Alignable.h.
Referenced by AlignableComposite::addComponent(), AlignableDetUnit::AlignableDetUnit(), and deepComponents().
|
protected |
Definition at line 232 of file Alignable.h.
Referenced by geomDetId().
|
protected |
Definition at line 239 of file Alignable.h.
Referenced by addDisplacement(), AlignableDetUnit::cacheTransformation(), cacheTransformation(), displacement(), AlignableDetUnit::restoreCachedTransformation(), restoreCachedTransformation(), and update().
|
protected |
Definition at line 235 of file Alignable.h.
Referenced by AlignableMuon::AlignableMuon(), AlignableBeamSpot::alignmentErrors(), AlignableBeamSpot::alignments(), AlignableTrackerBuilder::buildAlignables(), id(), and update().
|
private |
Definition at line 261 of file Alignable.h.
Referenced by mother(), setMother(), and updateMother().
|
protected |
Definition at line 240 of file Alignable.h.
Referenced by addRotation(), AlignableDetUnit::cacheTransformation(), cacheTransformation(), AlignableDetUnit::restoreCachedTransformation(), restoreCachedTransformation(), rotation(), and update().
|
protected |
Definition at line 237 of file Alignable.h.
Referenced by AlignableComposite::addComponent(), AlignableCSCChamber::AlignableCSCChamber(), AlignableDet::AlignableDet(), AlignableDTChamber::AlignableDTChamber(), AlignableDTSuperLayer::AlignableDTSuperLayer(), AlignableGEMChamber::AlignableGEMChamber(), AlignableGEMSuperChamber::AlignableGEMSuperChamber(), AlignableDetUnit::cacheTransformation(), cacheTransformation(), AlignableSiStripDet::consistifyAlignments(), AlignableBeamSpot::dump(), AlignableBeamSpot::initialize(), AlignableDetUnit::move(), AlignableBeamSpot::move(), AlignableComposite::move(), recenterSurface(), AlignableDetUnit::restoreCachedTransformation(), restoreCachedTransformation(), AlignableDetUnit::rotateInGlobalFrame(), AlignableBeamSpot::rotateInGlobalFrame(), AlignableComposite::rotateInGlobalFrame(), AlignableComposite::setSurface(), surface(), AlignableDet::update(), AlignableGEMChamber::update(), AlignableGEMSuperChamber::update(), AlignableCSCChamber::update(), update(), and updateMother().
|
private |
Definition at line 263 of file Alignable.h.
Referenced by setSurvey(), survey(), and ~Alignable().