ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SCT_BarrelModuleParameters Class Reference

#include <SCT_BarrelModuleParameters.h>

Collaboration diagram for SCT_BarrelModuleParameters:

Public Member Functions

 SCT_BarrelModuleParameters (SCT_DataBase *rdb)
 
double sensorThickness () const
 
double sensorWidth () const
 
double sensorLength () const
 
int sensorNumWafers () const
 
std::string sensorMaterial () const
 
double sensorDistCenterToCenter () const
 
double sensorStripLength () const
 
double sensorStripPitch () const
 
int sensorNumStrips () const
 
int sensorNumReadoutStrips () const
 
int sensorStripShift () const
 
double baseBoardThickness () const
 
double baseBoardWidth () const
 
double baseBoardLength () const
 
std::string baseBoardMaterial () const
 
double baseBoardOffsetY () const
 
double baseBoardOffsetZ () const
 
double hybridThickness () const
 
double hybridWidth () const
 
double hybridLength () const
 
std::string hybridMaterial () const
 
double hybridOffsetX () const
 
double hybridOffsetZ () const
 
double pigtailThickness () const
 
double pigtailWidth () const
 
double pigtailLength () const
 
std::string pigtailMaterial () const
 
int moduleStereoUpperSign () const
 
int moduleUpperSideNumber () const
 
double moduleStereoAngle () const
 
double moduleSensorToSensorGap () const
 

Private Attributes

SCT_DataBasem_rdb
 

Detailed Description

Definition at line 12 of file SCT_BarrelModuleParameters.h.

Constructor & Destructor Documentation

◆ SCT_BarrelModuleParameters()

SCT_BarrelModuleParameters::SCT_BarrelModuleParameters ( SCT_DataBase rdb)

Definition at line 18 of file SCT_BarrelModuleParameters.cxx.

19 {
20  m_rdb = rdb;
21 }

Member Function Documentation

◆ baseBoardLength()

double SCT_BarrelModuleParameters::baseBoardLength ( ) const

Definition at line 112 of file SCT_BarrelModuleParameters.cxx.

113 {
114  return m_rdb->brlModule()->getDouble("BASEBOARDLENGTH") * Gaudi::Units::mm;
115 }

◆ baseBoardMaterial()

std::string SCT_BarrelModuleParameters::baseBoardMaterial ( ) const

Definition at line 118 of file SCT_BarrelModuleParameters.cxx.

119 {
120  return m_rdb->brlModule()->getString("BASEBOARDMATERIAL");
121 }

◆ baseBoardOffsetY()

double SCT_BarrelModuleParameters::baseBoardOffsetY ( ) const

Definition at line 124 of file SCT_BarrelModuleParameters.cxx.

125 {
126  return m_rdb->brlModule()->getDouble("BASEBOARDOFFSETY") * Gaudi::Units::mm;
127 }

◆ baseBoardOffsetZ()

double SCT_BarrelModuleParameters::baseBoardOffsetZ ( ) const

Definition at line 130 of file SCT_BarrelModuleParameters.cxx.

131 {
132  return m_rdb->brlModule()->getDouble("BASEBOARDOFFSETZ") * Gaudi::Units::mm;
133 }

◆ baseBoardThickness()

double SCT_BarrelModuleParameters::baseBoardThickness ( ) const

Definition at line 100 of file SCT_BarrelModuleParameters.cxx.

101 {
102  return m_rdb->brlModule()->getDouble("BASEBOARDTHICKNESS") * Gaudi::Units::mm;
103 }

◆ baseBoardWidth()

double SCT_BarrelModuleParameters::baseBoardWidth ( ) const

Definition at line 106 of file SCT_BarrelModuleParameters.cxx.

107 {
108  return m_rdb->brlModule()->getDouble("BASEBOARDWIDTH") * Gaudi::Units::mm;
109 }

◆ hybridLength()

double SCT_BarrelModuleParameters::hybridLength ( ) const

Definition at line 151 of file SCT_BarrelModuleParameters.cxx.

152 {
153  return m_rdb->brlModule()->getDouble("HYBRIDLENGTH") * Gaudi::Units::mm;
154 }

◆ hybridMaterial()

std::string SCT_BarrelModuleParameters::hybridMaterial ( ) const

Definition at line 157 of file SCT_BarrelModuleParameters.cxx.

158 {
159  return m_rdb->brlModule()->getString("HYBRIDMATERIAL");
160 }

◆ hybridOffsetX()

double SCT_BarrelModuleParameters::hybridOffsetX ( ) const

Definition at line 163 of file SCT_BarrelModuleParameters.cxx.

164 {
165  return m_rdb->brlModule()->getDouble("HYBRIDOFFSETX") * Gaudi::Units::mm;
166 }

◆ hybridOffsetZ()

double SCT_BarrelModuleParameters::hybridOffsetZ ( ) const

Definition at line 169 of file SCT_BarrelModuleParameters.cxx.

170 {
171  return m_rdb->brlModule()->getDouble("HYBRIDOFFSETZ") * Gaudi::Units::mm;
172 }

◆ hybridThickness()

double SCT_BarrelModuleParameters::hybridThickness ( ) const

Definition at line 139 of file SCT_BarrelModuleParameters.cxx.

140 {
141  return m_rdb->brlModule()->getDouble("HYBRIDTHICKNESS") * Gaudi::Units::mm;
142 }

◆ hybridWidth()

double SCT_BarrelModuleParameters::hybridWidth ( ) const

Definition at line 145 of file SCT_BarrelModuleParameters.cxx.

146 {
147  return m_rdb->brlModule()->getDouble("HYBRIDWIDTH") * Gaudi::Units::mm;
148 }

◆ moduleSensorToSensorGap()

double SCT_BarrelModuleParameters::moduleSensorToSensorGap ( ) const

Definition at line 231 of file SCT_BarrelModuleParameters.cxx.

232 {
233  return m_rdb->brlModule()->getDouble("SENSORTOSENSORGAP") * Gaudi::Units::mm;
234 }

◆ moduleStereoAngle()

double SCT_BarrelModuleParameters::moduleStereoAngle ( ) const

Definition at line 224 of file SCT_BarrelModuleParameters.cxx.

225 {
226  return m_rdb->brlModule()->getDouble("STEREOANGLE") * Gaudi::Units::milliradian;
227 }

◆ moduleStereoUpperSign()

int SCT_BarrelModuleParameters::moduleStereoUpperSign ( ) const

Definition at line 207 of file SCT_BarrelModuleParameters.cxx.

208 {
209  return m_rdb->brlModule()->getInt("STEREOUPPERSIGN");
210 }

◆ moduleUpperSideNumber()

int SCT_BarrelModuleParameters::moduleUpperSideNumber ( ) const

Definition at line 213 of file SCT_BarrelModuleParameters.cxx.

214 {
215  // Old geometries have lower module side = 0 and upper = 1
216  if (m_rdb->brlModule()->isFieldNull("SIDEUPPER")) {
217  return 1;
218  }
219  return m_rdb->brlModule()->getInt("SIDEUPPER");
220 }

◆ pigtailLength()

double SCT_BarrelModuleParameters::pigtailLength ( ) const

Definition at line 190 of file SCT_BarrelModuleParameters.cxx.

191 {
192  return m_rdb->brlModule()->getDouble("PIGTAILLENGTH") * Gaudi::Units::mm;
193 }

◆ pigtailMaterial()

std::string SCT_BarrelModuleParameters::pigtailMaterial ( ) const

Definition at line 196 of file SCT_BarrelModuleParameters.cxx.

197 {
198  return m_rdb->brlModule()->getString("PIGTAILMATERIAL");
199 }

◆ pigtailThickness()

double SCT_BarrelModuleParameters::pigtailThickness ( ) const

Definition at line 178 of file SCT_BarrelModuleParameters.cxx.

179 {
180  return m_rdb->brlModule()->getDouble("PIGTAILTHICKNESS") * Gaudi::Units::mm;
181 }

◆ pigtailWidth()

double SCT_BarrelModuleParameters::pigtailWidth ( ) const

Definition at line 184 of file SCT_BarrelModuleParameters.cxx.

185 {
186  return m_rdb->brlModule()->getDouble("PIGTAILWIDTH") * Gaudi::Units::mm;
187 }

◆ sensorDistCenterToCenter()

double SCT_BarrelModuleParameters::sensorDistCenterToCenter ( ) const

Definition at line 57 of file SCT_BarrelModuleParameters.cxx.

58 {
59  return 2 * m_rdb->brlSensor()->getDouble("CENTERTOFIDUCIAL") * Gaudi::Units::mm
60  + m_rdb->brlSensor()->getDouble("FIDUCIALSEP") * Gaudi::Units::mm;
61 }

◆ sensorLength()

double SCT_BarrelModuleParameters::sensorLength ( ) const

Definition at line 39 of file SCT_BarrelModuleParameters.cxx.

40 {
41  return m_rdb->brlSensor()->getDouble("WAFERLENGTH") * Gaudi::Units::mm;
42 }

◆ sensorMaterial()

std::string SCT_BarrelModuleParameters::sensorMaterial ( ) const

Definition at line 51 of file SCT_BarrelModuleParameters.cxx.

52 {
53  return m_rdb->brlSensor()->getString("MATERIAL");
54 }

◆ sensorNumReadoutStrips()

int SCT_BarrelModuleParameters::sensorNumReadoutStrips ( ) const

Definition at line 83 of file SCT_BarrelModuleParameters.cxx.

84 {
85  return m_rdb->brlSensor()->getInt("NUMREADOUTSTRIPS");
86 }

◆ sensorNumStrips()

int SCT_BarrelModuleParameters::sensorNumStrips ( ) const

Definition at line 76 of file SCT_BarrelModuleParameters.cxx.

77 {
78  return m_rdb->brlSensor()->getInt("NUMSTRIPS");
79 }

◆ sensorNumWafers()

int SCT_BarrelModuleParameters::sensorNumWafers ( ) const

Definition at line 45 of file SCT_BarrelModuleParameters.cxx.

46 {
47  return m_rdb->brlSensor()->getInt("NUMWAFERS");
48 }

◆ sensorStripLength()

double SCT_BarrelModuleParameters::sensorStripLength ( ) const

Definition at line 64 of file SCT_BarrelModuleParameters.cxx.

65 {
66  return 2 * m_rdb->brlSensor()->getDouble("ACTIVEHALFLENGTH") * Gaudi::Units::mm;
67 }

◆ sensorStripPitch()

double SCT_BarrelModuleParameters::sensorStripPitch ( ) const

Definition at line 70 of file SCT_BarrelModuleParameters.cxx.

71 {
72  return m_rdb->brlSensor()->getDouble("STRIPPITCH") * Gaudi::Units::mm;
73 }

◆ sensorStripShift()

int SCT_BarrelModuleParameters::sensorStripShift ( ) const

Definition at line 89 of file SCT_BarrelModuleParameters.cxx.

90 {
91  return m_rdb->brlSensor()->getInt("STRIPSHIFT");
92 }

◆ sensorThickness()

double SCT_BarrelModuleParameters::sensorThickness ( ) const

Definition at line 27 of file SCT_BarrelModuleParameters.cxx.

28 {
29  return m_rdb->brlSensor()->getDouble("THICKNESS") * Gaudi::Units::mm;
30 }

◆ sensorWidth()

double SCT_BarrelModuleParameters::sensorWidth ( ) const

Definition at line 33 of file SCT_BarrelModuleParameters.cxx.

34 {
35  return m_rdb->brlSensor()->getDouble("WIDTH") * Gaudi::Units::mm;
36 }

Member Data Documentation

◆ m_rdb

SCT_DataBase* SCT_BarrelModuleParameters::m_rdb
private

Definition at line 63 of file SCT_BarrelModuleParameters.h.


The documentation for this class was generated from the following files:
IRDBRecord::getInt
virtual int getInt(const std::string &fieldName) const =0
Get int field value.
IRDBRecord::getString
virtual const std::string & getString(const std::string &fieldName) const =0
Get string field value.
python.SystemOfUnits.milliradian
int milliradian
Definition: SystemOfUnits.py:105
SCT_DataBase::brlSensor
const IRDBRecord * brlSensor() const
Definition: SCT_DataBase.cxx:203
SCT_DataBase::brlModule
const IRDBRecord * brlModule() const
Definition: SCT_DataBase.cxx:204
SCT_BarrelModuleParameters::m_rdb
SCT_DataBase * m_rdb
Definition: SCT_BarrelModuleParameters.h:63
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
IRDBRecord::isFieldNull
virtual bool isFieldNull(const std::string &fieldName) const =0
Check if the field value is NULL.
IRDBRecord::getDouble
virtual double getDouble(const std::string &fieldName) const =0
Get double field value.