13 #include "CLHEP/Vector/RotationInterfaces.h"
26 theAlignmentPositionError(0),
27 theInitializedFlag(
false)
91 edm::LogInfo(
"Alignment") <<
"@SUB=AlignableBeamSpot::setSurfaceDeformation"
92 <<
"Useless method for beam spot, do nothing.";
98 edm::LogInfo(
"Alignment") <<
"@SUB=AlignableBeamSpot::addSurfaceDeformation"
99 <<
"Useless method for beam spot, do nothing.";
112 <<
" has 0 components" << std::endl
113 <<
" position = " << this->
globalPosition() <<
", orientation:" << std::endl << std::flush
115 <<
" dxdz = " << gv.
x()/gv.
z() <<
" dydz = " << gv.
y()/gv.
z() << std::endl;
126 CLHEP::HepRotation clhepRotation( CLHEP::HepRep3x3( rot.
xx(), rot.
xy(), rot.
xz(),
127 rot.
yx(), rot.
yy(), rot.
yz(),
128 rot.
zx(), rot.
zy(), rot.
zz() ) );
134 m_alignments->
m_align.push_back( transform );
146 CLHEP::HepSymMatrix clhepSymMatrix(3,0);
150 m_alignmentErrors->
m_alignError.push_back( transformError );
152 return m_alignmentErrors;
156 double dxdz,
double dydz)
163 double angleY = std::atan(dxdz);
164 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.
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)
std::vector< AlignTransformError > m_alignError
const AlgebraicSymMatrix33 & matrix() const
virtual AlignmentErrors * alignmentErrors() const
Return vector of alignment errors.
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
virtual void addAlignmentPositionErrorFromLocalRotation(const RotationType &rotation, bool propagateDown)
Cos< T >::type cos(const T &t)
virtual void addAlignmentPositionErrorFromRotation(const RotationType &rot, bool propagateDown)
static const DetId detId()
void addRotation(const RotationType &rotation)
AlignmentPositionError * theAlignmentPositionError
const GlobalError & globalError() const
void addDisplacement(const GlobalVector &displacement)
void rotate(const RotationType &rotation)
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.