Go to the documentation of this file.
13 #include "CLHEP/Vector/RotationInterfaces.h"
23 theAlignmentPositionError(nullptr),
24 theInitializedFlag(
false) {}
69 edm::LogInfo(
"Alignment") <<
"@SUB=AlignableBeamSpot::setSurfaceDeformation"
70 <<
"Useless method for beam spot, do nothing.";
75 edm::LogInfo(
"Alignment") <<
"@SUB=AlignableBeamSpot::addSurfaceDeformation"
76 <<
"Useless method for beam spot, do nothing.";
88 <<
" position = " << this->
globalPosition() <<
", orientation:" << std::endl
90 << std::flush <<
" dxdz = " << gv.
x() / gv.
z() <<
" dydz = " << gv.
y() / gv.
z()
101 CLHEP::HepRotation clhepRotation(
119 CLHEP::HepSymMatrix clhepSymMatrix(6, 0);
123 m_alignmentErrors->
m_alignError.push_back(transformError);
125 return m_alignmentErrors;
136 double angleY = std::atan(
dxdz);
137 double angleX = -std::atan(
dydz);
void rotate(const RotationType &rotation)
void reset()
reset beam spot to the uninitialized state
Log< level::Info, false > LogInfo
~AlignableBeamSpot() override
Destructor.
void move(const GlobalVector &displacement) override
Move with respect to the global reference frame.
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
const GlobalErrorExtended & globalError() const
void update(align::ID, const AlignableSurface &)
void addAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown) override
void setAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown) override
Set the AlignmentPositionError and, if (propagateDown), to all components.
align::GlobalPoints toGlobal(const align::LocalPoints &) const
Return in global coord given a set of local points.
void addRotation(const RotationType &rotation)
void addAlignmentPositionErrorFromLocalRotation(const RotationType &rotation, bool propagateDown) override
const GlobalVector & displacement() const
Return change of the global position since the creation of the object.
void rotateInGlobalFrame(const RotationType &rotation) override
Rotation interpreted in global reference frame.
AlignmentErrorsExtended * alignmentErrors() const override
Return vector of alignment errors.
StructureType alignableObjectId() const override
Return the alignable type identifier.
static const DetId detId()
const RotationType & rotation() const
Return change of orientation since the creation of the object.
void setSurfaceDeformation(const SurfaceDeformation *, bool) override
do no use, for compatibility only
void dump() const override
Recursive printout of alignable structure.
void move(const GlobalVector &displacement)
AlignableSurface theSurface
void addSurfaceDeformation(const SurfaceDeformation *, bool) override
do no use, for compatibility only
Alignments * alignments() const override
Return vector of alignment data.
std::vector< Alignable * > Alignables
void addDisplacement(const GlobalVector &displacement)
void addAlignmentPositionErrorFromRotation(const RotationType &rot, bool propagateDown) override
const AlgebraicSymMatrix66 & matrix() const
void initialize(double x, double y, double z, double dxdz, double dydz)
initialize the alignable with the passed beam spot parameters
std::vector< AlignTransform > m_align
std::vector< AlignTransformErrorExtended > m_alignError
static const Alignables emptyComponents_
AlignmentPositionError * theAlignmentPositionError
const PositionType & globalPosition() const
Return the global position of the object.
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
const RotationType & globalRotation() const
Return the global orientation of the object.