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

#include <SCT_GeneralParameters.h>

Collaboration diagram for SCT_GeneralParameters:

Public Member Functions

 SCT_GeneralParameters (SCT_DataBase *rdb)
 
 ~SCT_GeneralParameters ()
 
 SCT_GeneralParameters (const SCT_GeneralParameters &)=delete
 
SCT_GeneralParametersoperator= (const SCT_GeneralParameters &)=delete
 
double safety () const
 
double temperature () const
 
double biasVoltage () const
 
double depletionVoltage () const
 
const GeoTrf::Transform3D & partTransform (const std::string &partName) const
 
bool partPresent (const std::string &partName) const
 

Private Attributes

SCT_DataBasem_rdb
 
std::unique_ptr< TopLevelPlacementsm_placements
 

Detailed Description

Definition at line 16 of file SCT_GeneralParameters.h.

Constructor & Destructor Documentation

◆ SCT_GeneralParameters() [1/2]

SCT_GeneralParameters::SCT_GeneralParameters ( SCT_DataBase rdb)

Definition at line 17 of file SCT_GeneralParameters.cxx.

18 {
19  m_rdb = rdb;
20  m_placements = std::make_unique<TopLevelPlacements>(m_rdb->topLevelTable());
21 }

◆ ~SCT_GeneralParameters()

SCT_GeneralParameters::~SCT_GeneralParameters ( )

Definition at line 24 of file SCT_GeneralParameters.cxx.

25 {
26 }

◆ SCT_GeneralParameters() [2/2]

SCT_GeneralParameters::SCT_GeneralParameters ( const SCT_GeneralParameters )
delete

Member Function Documentation

◆ biasVoltage()

double SCT_GeneralParameters::biasVoltage ( ) const

Definition at line 68 of file SCT_GeneralParameters.cxx.

69 {
70  if (m_rdb->conditionsTable()->size() == 0) {
71  return 100 * Gaudi::Units::volt;
72  }
73  return m_rdb->conditions()->getDouble("BIASVOLT") * Gaudi::Units::volt;
74 }

◆ depletionVoltage()

double SCT_GeneralParameters::depletionVoltage ( ) const

Definition at line 77 of file SCT_GeneralParameters.cxx.

78 {
79  if (m_rdb->conditionsTable()->size() == 0) {
80  return 20 * Gaudi::Units::volt;
81  }
82  return m_rdb->conditions()->getDouble("DEPLETIONVOLT") * Gaudi::Units::volt;
83 }

◆ operator=()

SCT_GeneralParameters& SCT_GeneralParameters::operator= ( const SCT_GeneralParameters )
delete

◆ partPresent()

bool SCT_GeneralParameters::partPresent ( const std::string &  partName) const

Definition at line 37 of file SCT_GeneralParameters.cxx.

38 {
39  return m_placements->present(partName);
40 }

◆ partTransform()

const GeoTrf::Transform3D & SCT_GeneralParameters::partTransform ( const std::string &  partName) const

Definition at line 30 of file SCT_GeneralParameters.cxx.

31 {
32  return m_placements->transform(partName);
33 }

◆ safety()

double SCT_GeneralParameters::safety ( ) const

Definition at line 48 of file SCT_GeneralParameters.cxx.

49 {
50  return SCT_SAFETY;
51 }

◆ temperature()

double SCT_GeneralParameters::temperature ( ) const

Definition at line 58 of file SCT_GeneralParameters.cxx.

59 {
60  if (m_rdb->conditionsTable()->size() == 0) {
61  return 266.15 * Gaudi::Units::kelvin; // -7 C
62  }
63  return (m_rdb->conditions()->getDouble("TEMPERATURE") + 273.15) * Gaudi::Units::kelvin;
64 }

Member Data Documentation

◆ m_placements

std::unique_ptr<TopLevelPlacements> SCT_GeneralParameters::m_placements
private

Definition at line 40 of file SCT_GeneralParameters.h.

◆ m_rdb

SCT_DataBase* SCT_GeneralParameters::m_rdb
private

Definition at line 39 of file SCT_GeneralParameters.h.


The documentation for this class was generated from the following files:
SCT_SAFETY
const double SCT_SAFETY
Definition: SCT_GeneralParameters.cxx:13
SCT_DataBase::conditionsTable
IRDBRecordset_ptr conditionsTable() const
Definition: SCT_DataBase.cxx:200
python.SystemOfUnits.kelvin
int kelvin
Definition: SystemOfUnits.py:241
SCT_GeneralParameters::m_rdb
SCT_DataBase * m_rdb
Definition: SCT_GeneralParameters.h:39
SCT_DataBase::topLevelTable
IRDBRecordset_ptr topLevelTable() const
Definition: SCT_DataBase.cxx:198
SCT_GeneralParameters::m_placements
std::unique_ptr< TopLevelPlacements > m_placements
Definition: SCT_GeneralParameters.h:40
python.SystemOfUnits.volt
int volt
Definition: SystemOfUnits.py:204
IRDBRecord::getDouble
virtual double getDouble(const std::string &fieldName) const =0
Get double field value.
SCT_DataBase::conditions
const IRDBRecord * conditions() const
Definition: SCT_DataBase.cxx:201