CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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,
DirectionData
directionData
 
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 20 of file AlignmentGeometry.h.

Constructor & Destructor Documentation

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

Definition at line 35 of file AlignmentGeometry.h.

36  : z(_z), sx(_sx), sy(_sy), isU(_isU) {}
double sy
detector nominal shift = detector center in global coordinates; in mm
double z
z postion at detector centre; mm

Member Function Documentation

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

Definition at line 42 of file AlignmentGeometry.h.

References directionData.

Referenced by factorRPFromSensorCorrections(), JanAlignmentAlgorithm::feed(), StraightTrackAlignment::finish(), LocalTrackFitter::fitAndRemoveOutliers(), StraightTrackAlignment::processEvent(), and StraightTrackAlignment::updateDiagnosticHistograms().

42  {
43  auto it = directionData.find(idx);
44  if (it == directionData.end())
45  throw cms::Exception("PPS") << "direction index " << idx << " not in the mapping.";
46 
47  return it->second;
48  }
std::map< unsigned int, DirectionData > directionData
void DetGeometry::setDirection ( unsigned int  idx,
double  dx,
double  dy,
double  dz 
)
inline

Definition at line 38 of file AlignmentGeometry.h.

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

Referenced by AlignmentTask::buildGeometry().

38  {
39  directionData[idx] = {dx, dy, dz, dx * sx + dy * sy};
40  }
double sy
detector nominal shift = detector center in global coordinates; in mm
std::map< unsigned int, DirectionData > directionData

Member Data Documentation

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

Definition at line 30 of file AlignmentGeometry.h.

Referenced by getDirectionData(), and setDirection().

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 32 of file AlignmentGeometry.h.

double DetGeometry::sx

Definition at line 23 of file AlignmentGeometry.h.

Referenced by JanAlignmentAlgorithm::feed(), and setDirection().

double DetGeometry::sy

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

Definition at line 23 of file AlignmentGeometry.h.

Referenced by JanAlignmentAlgorithm::feed(), and setDirection().

double DetGeometry::z