CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Public Attributes
DetGeometry Struct Reference

A structure to hold relevant geometrical information about one detector/sensor. More...

#include <AlignmentGeometry.h>

Classes

struct  DirectionData
 

Public Member Functions

 DetGeometry (double _z=0., double _sx=0., double _sy=0., bool _isU=false)
 
const DirectionDatagetDirectionData (unsigned int idx) const
 
void setDirection (unsigned int idx, double dx, double dy, double dz)
 

Public Attributes

std::map< unsigned int, DirectionDatadirectionData
 
bool isU
 
double sx
 
double sy
 detector nominal shift = detector center in global coordinates; in mm More...
 
double z
 z postion at detector centre; mm More...
 

Detailed Description

A structure to hold relevant geometrical information about one detector/sensor.

Definition at line 19 of file AlignmentGeometry.h.

Constructor & Destructor Documentation

◆ DetGeometry()

DetGeometry::DetGeometry ( double  _z = 0.,
double  _sx = 0.,
double  _sy = 0.,
bool  _isU = false 
)
inline

Definition at line 36 of file AlignmentGeometry.h.

36  : z(_z), sx(_sx), sy(_sy), isU(_isU) {}
37 

Member Function Documentation

◆ getDirectionData()

const DirectionData& DetGeometry::getDirectionData ( unsigned int  idx) const
inline

Definition at line 43 of file AlignmentGeometry.h.

56  {

Referenced by StraightTrackAlignment::processEvent().

◆ setDirection()

void DetGeometry::setDirection ( unsigned int  idx,
double  dx,
double  dy,
double  dz 
)
inline

Definition at line 39 of file AlignmentGeometry.h.

39  {dx, dy, dz, dx * sx + dy * sy};
40  }
41 

References PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, sx, and sy.

Referenced by AlignmentTask::buildGeometry().

Member Data Documentation

◆ directionData

std::map<unsigned int, DirectionData> DetGeometry::directionData

Definition at line 31 of file AlignmentGeometry.h.

◆ isU

bool DetGeometry::isU

only relevant for strips: true for U detectors, false for V detectors global U, V frame is used - that matches with u, v frame of the 1200 detector

Definition at line 33 of file AlignmentGeometry.h.

◆ sx

double DetGeometry::sx

Definition at line 24 of file AlignmentGeometry.h.

Referenced by setDirection().

◆ sy

double DetGeometry::sy

detector nominal shift = detector center in global coordinates; in mm

Definition at line 24 of file AlignmentGeometry.h.

Referenced by setDirection().

◆ z

double DetGeometry::z

z postion at detector centre; mm

Definition at line 22 of file AlignmentGeometry.h.

Referenced by geometryXMLparser.Alignable::pos(), and ntupleDataFormat._HitObject::r3D().

DetGeometry::isU
bool isU
Definition: AlignmentGeometry.h:33
DetGeometry::sx
double sx
Definition: AlignmentGeometry.h:24
PVValHelper::dy
Definition: PVValidationHelpers.h:50
DetGeometry::sy
double sy
detector nominal shift = detector center in global coordinates; in mm
Definition: AlignmentGeometry.h:24
DetGeometry::z
double z
z postion at detector centre; mm
Definition: AlignmentGeometry.h:22
PVValHelper::dz
Definition: PVValidationHelpers.h:51
PVValHelper::dx
Definition: PVValidationHelpers.h:49