CMS 3D CMS Logo

Public Member Functions | Private Attributes

AlignableSurface Class Reference

#include <AlignableSurface.h>

Inheritance diagram for AlignableSurface:
GloballyPositioned< align::Scalar >

List of all members.

Public Member Functions

 AlignableSurface (const BoundPlane &surface)
 Constructor to set surface from geometry.
 AlignableSurface (const align::PositionType &=PositionType(), const align::RotationType &=RotationType())
 Constructor to set position and rotation; width and length default to 0.
align::Scalar length () const
void setLength (align::Scalar length)
void setWidth (align::Scalar width)
align::GlobalPoints toGlobal (const align::LocalPoints &) const
 Return in global coord given a set of local points.
align::RotationType toGlobal (const align::RotationType &) const
 Return in global frame a rotation given in local frame.
align::EulerAngles toGlobal (const align::EulerAngles &) const
 Return in global coord given Euler angles in local coord.
align::EulerAngles toLocal (const align::EulerAngles &) const
 Return in local coord given Euler angles in global coord.
align::RotationType toLocal (const align::RotationType &) const
 Return in local frame a rotation given in global frame.
align::Scalar width () const

Private Attributes

align::Scalar theLength
align::Scalar theWidth

Detailed Description

A class to hold a surface with width and length for alignment purposes.

Date:
2007/04/25 18:37:59
Revision:
1.8
Author:
Chung Khim Lae

Definition at line 20 of file AlignableSurface.h.


Constructor & Destructor Documentation

AlignableSurface::AlignableSurface ( const BoundPlane surface)

Constructor to set surface from geometry.

Definition at line 7 of file AlignableSurface.cc.

                                                           :
  GloballyPositioned<Scalar>( surface.position(), surface.rotation() ),
  theWidth( surface.bounds().width() ),
  theLength( surface.bounds().length() )
{
}
AlignableSurface::AlignableSurface ( const align::PositionType = PositionType(),
const align::RotationType = RotationType() 
)

Constructor to set position and rotation; width and length default to 0.


Member Function Documentation

align::Scalar AlignableSurface::length ( ) const [inline]
void AlignableSurface::setLength ( align::Scalar  length) [inline]
void AlignableSurface::setWidth ( align::Scalar  width) [inline]
EulerAngles AlignableSurface::toGlobal ( const align::EulerAngles angles) const

Return in global coord given Euler angles in local coord.

Definition at line 43 of file AlignableSurface.cc.

References align::toAngles(), toGlobal(), and align::toMatrix().

{
  return toAngles( toGlobal( toMatrix(angles) ) );
}
GlobalPoints AlignableSurface::toGlobal ( const align::LocalPoints localPoints) const

Return in global coord given a set of local points.

Definition at line 22 of file AlignableSurface.cc.

References j.

Referenced by AlignableDetUnit::addAlignmentPositionErrorFromRotation(), AlignableDet::addAlignmentPositionErrorFromRotation(), MillePedeAlignmentAlgorithm::addPxbSurvey(), SurveyInputTrackerFromDB::addSurveyInfo(), SurveyInputCSCfromPins::analyze(), MuonGeometrySVGTemplate::analyze(), BeamSpotAlignmentParameters::apply(), RigidBodyAlignmentParameters::apply(), TwoBowedSurfacesAlignmentParameters::apply(), BowedSurfaceAlignmentParameters::apply(), CSCAlignmentCorrections::applyAlignment(), KalmanAlignmentAlgorithm::applyAlignmentParameters(), SurveyResidual::calculate(), align::createPoints(), MuonAlignmentInputXML::do_movelocal(), MuonAlignmentInputXML::do_rotatebeamline(), MuonAlignmentInputXML::do_rotateglobalaxis(), AlignableBeamSpot::dump(), RigidBodyAlignmentParameters::globalParameters(), BeamSpotAlignmentParameters::globalParameters(), SurveyDet::globalPoints(), KalmanAlignmentUserVariables::histogramParameters(), ParametersToParametersDerivatives::init2BowedRigid(), AlignableModifier::moveAlignableLocal(), CreateSurveyRcds::setGeometry(), SurveyAlignment::shiftSensors(), AlignmentProducer::simpleMisalignment_(), toGlobal(), and KalmanAlignmentUserVariables::update().

{
  GlobalPoints globalPoints;

  unsigned int nPoint = localPoints.size();

  globalPoints.reserve(nPoint);

  for (unsigned int j = 0; j < nPoint; ++j)
  {
    globalPoints.push_back( toGlobal(localPoints[j]) );
  }

  return globalPoints;
}
align::RotationType AlignableSurface::toGlobal ( const align::RotationType ) const

Return in global frame a rotation given in local frame.

align::RotationType AlignableSurface::toLocal ( const align::RotationType ) const
EulerAngles AlignableSurface::toLocal ( const align::EulerAngles angles) const

Return in local coord given Euler angles in global coord.

Definition at line 53 of file AlignableSurface.cc.

References align::toAngles(), toLocal(), and align::toMatrix().

{
  return toAngles( toLocal( toMatrix(angles) ) );
}
align::Scalar AlignableSurface::width ( ) const [inline]

Member Data Documentation

Definition at line 75 of file AlignableSurface.h.

Referenced by length(), and setLength().

Definition at line 74 of file AlignableSurface.h.

Referenced by setWidth(), and width().