ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_SensorCondData Class Reference

Class for data object used in SCT_SensorsCondAlg and SCT_SensorsTool. More...

#include <SCT_SensorCondData.h>

Collaboration diagram for SCT_SensorCondData:

Public Types

enum  {
  OFFSET =1 , SENSOR1 =1 , SENSOR2 =2 , SENSOR3 =3 ,
  SENSOR4 =4 , NUM_SENSORS =4
}

Public Member Functions

 SCT_SensorCondData ()
 Constructor.
virtual ~SCT_SensorCondData ()=default
 Destructor.
bool setTruncatedSerialNumber (const CondAttrListCollection::ChanNum truncatedSerialNumber)
 Set truncated serial number.
CondAttrListCollection::ChanNum getTruncatedSerialNumber () const
 Get truncated serial number.
bool setManufacturer (const std::string &manufacturer)
 Set manufacturer.
const std::string & getManufacturer () const
 Get manufacturer.
bool setDepletionVoltage (const unsigned int sensor, const float depletionVoltage)
 Set depletion voltage.
float getDepletionVoltage (const unsigned int sensor) const
 Get depletion voltage.
bool setCrystalOrientation (const unsigned int sensor, const int crystalOrientation)
 Set depletion voltage.
int getCrystalOrientation (const unsigned int sensor) const
 Get depletion voltage.

Private Attributes

CondAttrListCollection::ChanNum m_truncatedSerialNumber
std::string m_manufacturer
float m_depletionVoltage [NUM_SENSORS]
int m_crystalOrientation [NUM_SENSORS]

Detailed Description

Class for data object used in SCT_SensorsCondAlg and SCT_SensorsTool.

Definition at line 25 of file SCT_SensorCondData.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
OFFSET 
SENSOR1 
SENSOR2 
SENSOR3 
SENSOR4 
NUM_SENSORS 

Definition at line 52 of file SCT_SensorCondData.h.

Constructor & Destructor Documentation

◆ SCT_SensorCondData()

SCT_SensorCondData::SCT_SensorCondData ( )

Constructor.

Definition at line 13 of file SCT_SensorCondData.cxx.

13 :
16 m_depletionVoltage{0., 0., 0., 0.},
17 m_crystalOrientation{0, 0, 0, 0}
18{}
int m_crystalOrientation[NUM_SENSORS]
CondAttrListCollection::ChanNum m_truncatedSerialNumber
float m_depletionVoltage[NUM_SENSORS]

◆ ~SCT_SensorCondData()

virtual SCT_SensorCondData::~SCT_SensorCondData ( )
virtualdefault

Destructor.

Member Function Documentation

◆ getCrystalOrientation()

int SCT_SensorCondData::getCrystalOrientation ( const unsigned int sensor) const

Get depletion voltage.

Definition at line 114 of file SCT_SensorCondData.cxx.

115{
116 switch (sensor) {
117 case SENSOR1:
119 case SENSOR2:
121 case SENSOR3:
123 case SENSOR4:
125 default:
126 return -999;
127 }
128}

◆ getDepletionVoltage()

float SCT_SensorCondData::getDepletionVoltage ( const unsigned int sensor) const

Get depletion voltage.

Definition at line 74 of file SCT_SensorCondData.cxx.

75{
76 switch (sensor) {
77 case SENSOR1:
79 case SENSOR2:
81 case SENSOR3:
83 case SENSOR4:
85 default:
86 return -999.;
87 }
88}

◆ getManufacturer()

const std::string & SCT_SensorCondData::getManufacturer ( ) const

Get manufacturer.

Definition at line 45 of file SCT_SensorCondData.cxx.

46{
47 return m_manufacturer;
48}

◆ getTruncatedSerialNumber()

CondAttrListCollection::ChanNum SCT_SensorCondData::getTruncatedSerialNumber ( ) const

Get truncated serial number.

Definition at line 30 of file SCT_SensorCondData.cxx.

31{
33}

◆ setCrystalOrientation()

bool SCT_SensorCondData::setCrystalOrientation ( const unsigned int sensor,
const int crystalOrientation )

Set depletion voltage.

Definition at line 92 of file SCT_SensorCondData.cxx.

93{
94 switch (sensor) {
95 case SENSOR1:
96 m_crystalOrientation[SENSOR1-OFFSET] = crystalOrientation;
97 return true;
98 case SENSOR2:
99 m_crystalOrientation[SENSOR2-OFFSET] = crystalOrientation;
100 return true;
101 case SENSOR3:
102 m_crystalOrientation[SENSOR3-OFFSET] = crystalOrientation;
103 return true;
104 case SENSOR4:
105 m_crystalOrientation[SENSOR4-OFFSET] = crystalOrientation;
106 return true;
107 default:
108 return false;
109 }
110}

◆ setDepletionVoltage()

bool SCT_SensorCondData::setDepletionVoltage ( const unsigned int sensor,
const float depletionVoltage )

Set depletion voltage.

Definition at line 52 of file SCT_SensorCondData.cxx.

53{
54 switch (sensor) {
55 case SENSOR1:
56 m_depletionVoltage[SENSOR1-OFFSET] = depletionVoltage;
57 return true;
58 case SENSOR2:
59 m_depletionVoltage[SENSOR2-OFFSET] = depletionVoltage;
60 return true;
61 case SENSOR3:
62 m_depletionVoltage[SENSOR3-OFFSET] = depletionVoltage;
63 return true;
64 case SENSOR4:
65 m_depletionVoltage[SENSOR4-OFFSET] = depletionVoltage;
66 return true;
67 default:
68 return false;
69 }
70}

◆ setManufacturer()

bool SCT_SensorCondData::setManufacturer ( const std::string & manufacturer)

Set manufacturer.

Definition at line 37 of file SCT_SensorCondData.cxx.

38{
39 m_manufacturer = manufacturer;
40 return true;
41}

◆ setTruncatedSerialNumber()

bool SCT_SensorCondData::setTruncatedSerialNumber ( const CondAttrListCollection::ChanNum truncatedSerialNumber)

Set truncated serial number.

Definition at line 22 of file SCT_SensorCondData.cxx.

23{
24 m_truncatedSerialNumber = truncatedSerialNumber;
25 return true;
26}

Member Data Documentation

◆ m_crystalOrientation

int SCT_SensorCondData::m_crystalOrientation[NUM_SENSORS]
private

Definition at line 58 of file SCT_SensorCondData.h.

◆ m_depletionVoltage

float SCT_SensorCondData::m_depletionVoltage[NUM_SENSORS]
private

Definition at line 57 of file SCT_SensorCondData.h.

◆ m_manufacturer

std::string SCT_SensorCondData::m_manufacturer
private

Definition at line 56 of file SCT_SensorCondData.h.

◆ m_truncatedSerialNumber

CondAttrListCollection::ChanNum SCT_SensorCondData::m_truncatedSerialNumber
private

Definition at line 55 of file SCT_SensorCondData.h.


The documentation for this class was generated from the following files: