CMS 3D CMS Logo

AlignableSurface.cc
Go to the documentation of this file.
2 
4 
5 using namespace align;
6 
8  : GloballyPositioned<Scalar>(surface.position(), surface.rotation()),
9  theWidth(surface.bounds().width()),
10  theLength(surface.bounds().length()) {}
11 
13  : GloballyPositioned<Scalar>(pos, rot), theWidth(Scalar()), theLength(Scalar()) {}
14 
16  GlobalPoints globalPoints;
17 
18  unsigned int nPoint = localPoints.size();
19 
20  globalPoints.reserve(nPoint);
21 
22  for (unsigned int j = 0; j < nPoint; ++j) {
23  globalPoints.push_back(toGlobal(localPoints[j]));
24  }
25 
26  return globalPoints;
27 }
28 
30  return rotation().multiplyInverse(rot * rotation());
31 }
32 
34 
36  return rotation() * rot * rotation().transposed();
37 }
38 
GloballyPositioned
Definition: GloballyPositioned.h:18
align::toAngles
EulerAngles toAngles(const RotationType &)
Convert rotation matrix to angles about x-, y-, z-axes (frame rotation).
Definition: Utilities.cc:8
TkRotation< Scalar >
ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
align
Definition: AlignableIndexer.h:30
pos
Definition: PixelAliasList.h:18
TkRotation::multiplyInverse
Basic3DVector< T > multiplyInverse(const Basic3DVector< T > &v) const
Definition: extTkRotation.h:178
AlignableSurface::toLocal
align::RotationType toLocal(const align::RotationType &) const
Return in local frame a rotation given in global frame.
Definition: AlignableSurface.cc:35
align::Scalar
double Scalar
Definition: Definitions.h:25
AlignableSurface::toGlobal
align::GlobalPoints toGlobal(const align::LocalPoints &) const
Return in global coord given a set of local points.
Definition: AlignableSurface.cc:15
Point3DBase< Scalar, GlobalTag >
AlignableSurface.h
idealTransformation.rotation
dictionary rotation
Definition: idealTransformation.py:1
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
align::EulerAngles
AlgebraicVector EulerAngles
Definition: Definitions.h:34
AlignableSurface::AlignableSurface
AlignableSurface(const Plane &surface)
Constructor to set surface from geometry.
particleFlowDisplacedVertex_cfi.angles
angles
Definition: particleFlowDisplacedVertex_cfi.py:84
BoundPlane
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
align::toMatrix
RotationType toMatrix(const EulerAngles &)
Convert rotation angles about x-, y-, z-axes to matrix.
Definition: Utilities.cc:34
TkRotation::transposed
TkRotation transposed() const
Definition: extTkRotation.h:161
BoundPlane.h
align::GlobalPoints
std::vector< GlobalPoint > GlobalPoints
Definition: Utilities.h:27
align::LocalPoints
std::vector< LocalPoint > LocalPoints
Definition: Utilities.h:29
GloballyPositioned< align::Scalar >::rotation
const RotationType & rotation() const
Definition: GloballyPositioned.h:38
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
GloballyPositioned< align::Scalar >::Scalar
align::Scalar Scalar
Definition: GloballyPositioned.h:20