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 20 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 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

◆ getDirectionData()

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

Definition at line 42 of file AlignmentGeometry.h.

References directionData, and heavyIonCSV_trainingSettings::idx.

Referenced by StraightTrackAlignment::processEvent().

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

◆ setDirection()

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, heavyIonCSV_trainingSettings::idx, 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

◆ directionData

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

Definition at line 30 of file AlignmentGeometry.h.

Referenced by getDirectionData(), and setDirection().

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

◆ sx

double DetGeometry::sx

Definition at line 23 of file AlignmentGeometry.h.

Referenced by setDirection().

◆ sy

double DetGeometry::sy

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

Definition at line 23 of file AlignmentGeometry.h.

Referenced by setDirection().

◆ z

double DetGeometry::z

z postion at detector centre; mm

Definition at line 21 of file AlignmentGeometry.h.

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