#include <AlignableBeamSpot.h>
Public Member Functions | |
virtual void | addAlignmentPositionError (const AlignmentPositionError &ape, bool propagateDown) |
virtual void | addAlignmentPositionErrorFromLocalRotation (const RotationType &rotation, bool propagateDown) |
virtual void | addAlignmentPositionErrorFromRotation (const RotationType &rot, bool propagateDown) |
virtual void | addComponent (Alignable *component) |
virtual void | addSurfaceDeformation (const SurfaceDeformation *, bool) |
do no use, for compatibility only More... | |
AlignableBeamSpot () | |
virtual StructureType | alignableObjectId () const |
Return the alignable type identifier. More... | |
virtual AlignmentErrorsExtended * | alignmentErrors () const |
Return vector of alignment errors. More... | |
const AlignmentPositionError * | alignmentPositionError () const |
alignment position error - for checking only, otherwise use alignmentErrors() above! More... | |
virtual Alignments * | alignments () const |
Return vector of alignment data. More... | |
virtual Alignables | components () const |
Return vector of direct components. More... | |
virtual void | dump () const |
Recursive printout of alignable structure. More... | |
void | initialize (double x, double y, double z, double dxdz, double dydz) |
initialize the alignable with the passed beam spot parameters More... | |
virtual void | move (const GlobalVector &displacement) |
Move with respect to the global reference frame. More... | |
virtual void | recursiveComponents (Alignables &result) const |
Provide all components, subcomponents etc. (cf. description in base class) More... | |
void | reset () |
reset beam spot to the uninitialized state More... | |
virtual void | rotateInGlobalFrame (const RotationType &rotation) |
Rotation interpreted in global reference frame. More... | |
virtual void | setAlignmentPositionError (const AlignmentPositionError &ape, bool propagateDown) |
Set the AlignmentPositionError and, if (propagateDown), to all components. More... | |
virtual void | setSurfaceDeformation (const SurfaceDeformation *, bool) |
do no use, for compatibility only More... | |
virtual int | surfaceDeformationIdPairs (std::vector< std::pair< int, SurfaceDeformation * > > &) const |
Return surface deformations. More... | |
virtual | ~AlignableBeamSpot () |
Destructor. More... | |
Public Member Functions inherited from Alignable | |
Alignable (align::ID, const AlignableSurface &) | |
Alignable (align::ID, const RotationType &) | |
AlignmentParameters * | alignmentParameters () const |
Get the AlignmentParameters. 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... | |
const Alignables & | deepComponents () const |
const GlobalVector & | displacement () const |
Return change of the global position since the creation of the object. 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 | 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 | 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... | |
void | setMother (Alignable *mother) |
Assign mother to alignable. 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... | |
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... | |
Static Public Member Functions | |
static const DetId | detId () |
Private Attributes | |
AlignmentPositionError * | theAlignmentPositionError |
bool | theInitializedFlag |
An Alignable for the beam spot
Original author: Andreas Mussgiller, August 2010
(last update by
)
Definition at line 19 of file AlignableBeamSpot.h.
AlignableBeamSpot::AlignableBeamSpot | ( | ) |
Definition at line 21 of file AlignableBeamSpot.cc.
|
virtual |
Destructor.
Definition at line 30 of file AlignableBeamSpot.cc.
References theAlignmentPositionError.
|
virtual |
Add (or set if it does not exist yet) the AlignmentPositionError, if (propagateDown), add also to all components
Implements Alignable.
Definition at line 59 of file AlignableBeamSpot.cc.
References theAlignmentPositionError.
Referenced by recursiveComponents().
|
virtual |
Add the AlignmentPositionError resulting from local rotation (if this Alignable is a Det) and, if (propagateDown), add to all the components of the composite
Adds the AlignmentPositionError (in x,y,z coordinates) that would result on the various components from a possible Rotation of a composite the rotation matrix is in interpreted in LOCAL coordinates of the composite
Implements Alignable.
Definition at line 79 of file AlignableBeamSpot.cc.
Referenced by recursiveComponents().
|
virtual |
Add (or set if it does not exist yet) the AlignmentPositionError resulting from a rotation in the global reference frame, if (propagateDown), add also to all components
Implements Alignable.
Definition at line 69 of file AlignableBeamSpot.cc.
Referenced by recursiveComponents().
|
inlinevirtual |
Add a component and set its mother to this alignable. (Note: The component will be adopted, e.g. later deleted.) Also find average position of this composite from its modules' positions.
Implements Alignable.
Definition at line 32 of file AlignableBeamSpot.h.
|
virtual |
do no use, for compatibility only
Implements Alignable.
Definition at line 93 of file AlignableBeamSpot.cc.
Referenced by surfaceDeformationIdPairs().
|
inlinevirtual |
Return the alignable type identifier.
Implements Alignable.
Definition at line 64 of file AlignableBeamSpot.h.
References alignmentErrors(), alignments(), align::BeamSpot, and dump().
Referenced by dump().
|
virtual |
Return vector of alignment errors.
Implements Alignable.
Definition at line 137 of file AlignableBeamSpot.cc.
References asHepMatrix(), detId(), AlignmentPositionError::globalError(), AlignmentErrorsExtended::m_alignError, GlobalErrorBaseExtended< T, ErrorWeightType >::matrix(), theAlignmentPositionError, and Alignable::theId.
Referenced by alignableObjectId().
|
inline |
alignment position error - for checking only, otherwise use alignmentErrors() above!
Definition at line 76 of file AlignableBeamSpot.h.
References theAlignmentPositionError.
Referenced by AlignableDetOrUnitPtr::alignmentPositionError().
|
virtual |
Return vector of alignment data.
Implements Alignable.
Definition at line 116 of file AlignableBeamSpot.cc.
References detId(), Alignable::globalPosition(), Alignable::globalRotation(), Alignments::m_align, makeMuonMisalignmentScenario::rot, Alignable::theId, create_public_lumi_plots::transform, x, TkRotation< T >::xx(), TkRotation< T >::xy(), TkRotation< T >::xz(), y, TkRotation< T >::yx(), TkRotation< T >::yy(), TkRotation< T >::yz(), z, TkRotation< T >::zx(), TkRotation< T >::zy(), and TkRotation< T >::zz().
Referenced by alignableObjectId().
|
inlinevirtual |
Return vector of direct components.
Implements Alignable.
Definition at line 35 of file AlignableBeamSpot.h.
|
inlinestatic |
returns the DetId corresponding to the alignable beam spot. Also used by BeamSpotGeomDet and BeamSpotTransientTrackingRecHit
Definition at line 95 of file AlignableBeamSpot.h.
References DetId::kDetOffset, and DetId::Tracker.
Referenced by alignmentErrors(), alignments(), BeamSpotGeomDet::BeamSpotGeomDet(), MillePedeMonitor::fillCorrelations2D(), and MillePedeMonitor::fillResiduals().
|
virtual |
Recursive printout of alignable structure.
Implements Alignable.
Definition at line 100 of file AlignableBeamSpot.cc.
References alignableObjectId(), Alignable::globalPosition(), Alignable::globalRotation(), Alignable::theSurface, AlignableSurface::toGlobal(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by alignableObjectId(), and initialize().
void AlignableBeamSpot::initialize | ( | double | x, |
double | y, | ||
double | z, | ||
double | dxdz, | ||
double | dydz | ||
) |
initialize the alignable with the passed beam spot parameters
Definition at line 153 of file AlignableBeamSpot.cc.
References funct::cos(), dump(), GloballyPositioned< T >::move(), GloballyPositioned< T >::rotate(), funct::sin(), theInitializedFlag, and Alignable::theSurface.
Referenced by AlignableExtras::initializeBeamSpot(), and surfaceDeformationIdPairs().
|
virtual |
Move with respect to the global reference frame.
Implements Alignable.
Definition at line 36 of file AlignableBeamSpot.cc.
References Alignable::addDisplacement(), GloballyPositioned< T >::move(), and Alignable::theSurface.
Referenced by Vispa.Gui.WidgetContainer.WidgetContainer::autosize(), Vispa.Gui.VispaWidget.VispaWidget::dragWidget(), recursiveComponents(), Vispa.Gui.VispaWidget.VispaWidget::setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().
|
inlinevirtual |
Provide all components, subcomponents etc. (cf. description in base class)
Implements Alignable.
Definition at line 38 of file AlignableBeamSpot.h.
References addAlignmentPositionError(), addAlignmentPositionErrorFromLocalRotation(), addAlignmentPositionErrorFromRotation(), Alignable::displacement(), move(), makeMuonMisalignmentScenario::rot, rotateInGlobalFrame(), Alignable::rotation(), and setAlignmentPositionError().
void AlignableBeamSpot::reset | ( | ) |
reset beam spot to the uninitialized state
Definition at line 180 of file AlignableBeamSpot.cc.
References theAlignmentPositionError, theInitializedFlag, and Alignable::update().
Referenced by MatrixReader.MatrixReader::__init__(), data_sources.json_list::next(), AlignableExtras::resetBeamSpot(), MatrixReader.MatrixReader::showRaw(), and surfaceDeformationIdPairs().
|
virtual |
Rotation interpreted in global reference frame.
Implements Alignable.
Definition at line 43 of file AlignableBeamSpot.cc.
References Alignable::addRotation(), GloballyPositioned< T >::rotate(), and Alignable::theSurface.
Referenced by recursiveComponents().
|
virtual |
Set the AlignmentPositionError and, if (propagateDown), to all components.
Implements Alignable.
Definition at line 50 of file AlignableBeamSpot.cc.
References theAlignmentPositionError.
Referenced by recursiveComponents().
|
virtual |
do no use, for compatibility only
Implements Alignable.
Definition at line 86 of file AlignableBeamSpot.cc.
Referenced by surfaceDeformationIdPairs().
|
inlinevirtual |
Return surface deformations.
Implements Alignable.
Definition at line 79 of file AlignableBeamSpot.h.
References addSurfaceDeformation(), BeamSpotFakeParameters_cfi::dxdz, BeamSpotFakeParameters_cfi::dydz, initialize(), reset(), setSurfaceDeformation(), x, y, and z.
|
private |
Definition at line 99 of file AlignableBeamSpot.h.
Referenced by addAlignmentPositionError(), alignmentErrors(), alignmentPositionError(), reset(), setAlignmentPositionError(), and ~AlignableBeamSpot().
|
private |
Definition at line 101 of file AlignableBeamSpot.h.
Referenced by initialize(), and reset().