13 #include "CLHEP/Vector/RotationInterfaces.h" 23 theAlignmentPositionError(0),
24 theInitializedFlag(
false)
88 edm::LogInfo(
"Alignment") <<
"@SUB=AlignableBeamSpot::setSurfaceDeformation" 89 <<
"Useless method for beam spot, do nothing.";
95 edm::LogInfo(
"Alignment") <<
"@SUB=AlignableBeamSpot::addSurfaceDeformation" 96 <<
"Useless method for beam spot, do nothing.";
109 <<
" has 0 components" << std::endl
110 <<
" position = " << this->
globalPosition() <<
", orientation:" << std::endl << std::flush
112 <<
" dxdz = " << gv.
x()/gv.
z() <<
" dydz = " << gv.
y()/gv.
z() << std::endl;
123 CLHEP::HepRotation clhepRotation( CLHEP::HepRep3x3( rot.
xx(), rot.
xy(), rot.
xz(),
124 rot.
yx(), rot.
yy(), rot.
yz(),
125 rot.
zx(), rot.
zy(), rot.
zz() ) );
131 m_alignments->
m_align.push_back( transform );
143 CLHEP::HepSymMatrix clhepSymMatrix(6,0);
147 m_alignmentErrors->
m_alignError.push_back( transformError );
149 return m_alignmentErrors;
161 double angleY = std::atan(dxdz);
162 double angleX = -std::atan(dydz);
void initialize(double x, double y, double z, double dxdz, double dydz)
initialize the alignable with the passed beam spot parameters
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
virtual Alignments * alignments() const
Return vector of alignment data.
void update(align::ID, const AlignableSurface &)
virtual ~AlignableBeamSpot()
Destructor.
virtual void addSurfaceDeformation(const SurfaceDeformation *, bool)
do no use, for compatibility only
Sin< T >::type sin(const T &t)
virtual void addAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown)
const GlobalVector & displacement() const
Return change of the global position since the creation of the object.
void move(const GlobalVector &displacement)
const RotationType & globalRotation() const
Return the global orientation of the object.
virtual StructureType alignableObjectId() const
Return the alignable type identifier.
std::vector< AlignTransform > m_align
const GlobalErrorExtended & globalError() const
virtual void addAlignmentPositionErrorFromLocalRotation(const RotationType &rotation, bool propagateDown)
const RotationType & rotation() const
Return change of orientation since the creation of the object.
Cos< T >::type cos(const T &t)
virtual void addAlignmentPositionErrorFromRotation(const RotationType &rot, bool propagateDown)
const AlgebraicSymMatrix66 & matrix() const
static const DetId detId()
std::vector< AlignTransformErrorExtended > m_alignError
void addRotation(const RotationType &rotation)
AlignmentPositionError * theAlignmentPositionError
void addDisplacement(const GlobalVector &displacement)
void rotate(const RotationType &rotation)
virtual AlignmentErrorsExtended * alignmentErrors() const
Return vector of alignment errors.
void reset()
reset beam spot to the uninitialized state
align::GlobalPoints toGlobal(const align::LocalPoints &) const
Return in global coord given a set of local points.
virtual void rotateInGlobalFrame(const RotationType &rotation)
Rotation interpreted in global reference frame.
virtual void setSurfaceDeformation(const SurfaceDeformation *, bool)
do no use, for compatibility only
const PositionType & globalPosition() const
Return the global position of the object.
virtual void move(const GlobalVector &displacement)
Move with respect to the global reference frame.
virtual void dump() const
Recursive printout of alignable structure.
AlignableSurface theSurface
virtual void setAlignmentPositionError(const AlignmentPositionError &ape, bool propagateDown)
Set the AlignmentPositionError and, if (propagateDown), to all components.