CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SurveyDet Class Reference

#include <SurveyDet.h>

Public Member Functions

AlgebraicMatrix derivatives (unsigned int index) const
 
const align::ErrorMatrixerrors () const
 
align::GlobalPoints globalPoints () const
 
const align::LocalPointslocalPoints () const
 
const align::PositionTypeposition () const
 
const align::RotationTyperotation () const
 
 SurveyDet (const AlignableSurface &, const align::ErrorMatrix &)
 

Private Attributes

align::ErrorMatrix theErrors
 
std::vector< align::LocalPointthePoints
 
AlignableSurface theSurface
 

Detailed Description

Class to hold survey info.

Date
2007/04/07 03:29:38
Revision
1.4
Author
Chung Khim Lae

Definition at line 15 of file SurveyDet.h.

Constructor & Destructor Documentation

◆ SurveyDet()

SurveyDet::SurveyDet ( const AlignableSurface surface,
const align::ErrorMatrix errors 
)

Set the surface and 9 survey points to find its position and rotation.

--------— ^ --------— | . | . | . | | | 4 | 3 | 2 | --------— | --------— | . | . | . | L | 5 | 0 | 1 | --------— | --------— | . | . | . | | | 6 | 7 | 8 | --------— v --------— <-— W -—>

The left sensor shows how the 9 points are chosen (W = width, L = length) The right sensor shows how the points are indexed. Also set the survey errors.

Definition at line 3 of file SurveyDet.cc.

4  : theSurface(surface), theErrors(errors) {
5  const align::Scalar W3 = surface.width() / 3.;
6  const align::Scalar L3 = surface.length() / 3.;
7 
8  thePoints.reserve(4); // 4 survey points
9 
10  // thePoints.push_back( align::LocalPoint( 0., 0., 0.) );
11  thePoints.push_back(align::LocalPoint(W3, 0., 0.));
12  // thePoints.push_back( align::LocalPoint( W3, L3, 0.) );
13  thePoints.push_back(align::LocalPoint(0., L3, 0.));
14  // thePoints.push_back( align::LocalPoint(-W3, L3, 0.) );
15  thePoints.push_back(align::LocalPoint(-W3, 0., 0.));
16  // thePoints.push_back( align::LocalPoint(-W3, -L3, 0.) );
17  thePoints.push_back(align::LocalPoint(0., -L3, 0.));
18  // thePoints.push_back( align::LocalPoint( W3, -L3, 0.) );
19 }

References PixelRegions::L3, AlignableSurface::length(), thePoints, and AlignableSurface::width().

Member Function Documentation

◆ derivatives()

AlgebraicMatrix SurveyDet::derivatives ( unsigned int  index) const

Find the Jacobian for a local point to be used in HIP algo. Does not check the range of index of local point.

Definition at line 21 of file SurveyDet.cc.

21  {
22  AlgebraicMatrix jac(6, 3, 0); // 6 by 3 Jacobian init to 0
23 
24  // jac(1, 1) = S11; jac(1, 2) = S12; jac(1, 3) = S13;
25  // jac(2, 1) = S21; jac(2, 2) = S22; jac(2, 3) = S23;
26  // jac(3, 1) = S31; jac(3, 2) = S32; jac(3, 3) = S33;
27 
28  // jac(4, 1) = u2 * S31;
29  // jac(4, 2) = u2 * S32;
30  // jac(4, 3) = u2 * S33;
31 
32  // jac(5, 1) = -u1 * S31;
33  // jac(5, 2) = -u1 * S32;
34  // jac(5, 3) = -u1 * S33;
35 
36  // jac(6, 1) = u1 * S21 - u2 * S11;
37  // jac(6, 2) = u1 * S22 - u2 * S12;
38  // jac(6, 3) = u1 * S23 - u2 * S13;
39 
40  jac(1, 1) = 1.;
41  jac(2, 2) = 1.;
42  jac(3, 3) = 1.;
43 
44  jac(5, 3) -= jac(6, 2) = thePoints[index].x();
45  jac(6, 1) -= jac(4, 3) = thePoints[index].y();
46 
47  return jac;
48 }

References thePoints.

Referenced by SurveyAlignmentPoints::findAlignPars().

◆ errors()

const align::ErrorMatrix & SurveyDet::errors ( ) const
inline

◆ globalPoints()

align::GlobalPoints SurveyDet::globalPoints ( ) const
inline

Definition at line 66 of file SurveyDet.h.

66 { return theSurface.toGlobal(thePoints); }

References thePoints, theSurface, and AlignableSurface::toGlobal().

Referenced by SurveyResidual::calculate().

◆ localPoints()

const align::LocalPoints & SurveyDet::localPoints ( ) const
inline

Definition at line 64 of file SurveyDet.h.

64 { return thePoints; }

References thePoints.

Referenced by SurveyResidual::calculate(), and align::createPoints().

◆ position()

const align::PositionType & SurveyDet::position ( ) const
inline

◆ rotation()

const align::RotationType & SurveyDet::rotation ( ) const
inline

Member Data Documentation

◆ theErrors

align::ErrorMatrix SurveyDet::theErrors
private

Definition at line 53 of file SurveyDet.h.

Referenced by errors().

◆ thePoints

std::vector<align::LocalPoint> SurveyDet::thePoints
private

Definition at line 55 of file SurveyDet.h.

Referenced by derivatives(), globalPoints(), localPoints(), and SurveyDet().

◆ theSurface

AlignableSurface SurveyDet::theSurface
private

Definition at line 51 of file SurveyDet.h.

Referenced by globalPoints(), position(), and rotation().

PixelRegions::L3
Definition: PixelRegionContainers.h:32
AlignableSurface::length
align::Scalar length() const
Definition: AlignableSurface.h:32
align::Scalar
double Scalar
Definition: Definitions.h:25
errors
Definition: errors.py:1
SurveyDet::theErrors
align::ErrorMatrix theErrors
Definition: SurveyDet.h:53
SurveyDet::theSurface
AlignableSurface theSurface
Definition: SurveyDet.h:51
AlignableSurface::toGlobal
align::GlobalPoints toGlobal(const align::LocalPoints &) const
Return in global coord given a set of local points.
Definition: AlignableSurface.cc:15
Point3DBase
Definition: Point3DBase.h:10
SurveyDet::thePoints
std::vector< align::LocalPoint > thePoints
Definition: SurveyDet.h:55
GloballyPositioned::position
const PositionType & position() const
Definition: GloballyPositioned.h:36
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
AlignableSurface::width
align::Scalar width() const
Definition: AlignableSurface.h:30
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
GloballyPositioned::rotation
const RotationType & rotation() const
Definition: GloballyPositioned.h:38