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

Concrete class for Lorentz angle conditions data for each detector element. More...

#include <SiLorentzAngleCondData.h>

Collaboration diagram for SiLorentzAngleCondData:

Public Member Functions

 SiLorentzAngleCondData ()
virtual ~SiLorentzAngleCondData ()=default
void resize (const unsigned int size)
 Reszie the data members.
double getLorentzShift (const IdentifierHash &elementHash) const
 Get the Lorentz shift correction in the local x (phiDist) direction Assumes the center of the detector and is generally cached.
double getLorentzShiftEta (const IdentifierHash &elementHash) const
 Get the Lorentz shift correction in the local y (etaDist) direction Assumes the center of the detector and is generally cached.
double getTanLorentzAngle (const IdentifierHash &elementHash) const
 Get tan af the Lorentz angle in the local x (phiDist) direction Assumes the center of the detector and is generally cached.
double getTanLorentzAngleEta (const IdentifierHash &elementHash) const
 Get tan af the Lorentz angle in the local y (etaDist) direction Assumes the center of the detector and is generally cached.
double getBiasVoltage (const IdentifierHash &elementHash) const
 Get bias voltage.
double getTemperature (const IdentifierHash &elementHash) const
 Get temperature.
double getDepletionVoltage (const IdentifierHash &elementHash) const
 Get depletion voltage.
double getCorrectionFactor () const
 Get correction factor.
void setLorentzShift (const IdentifierHash &elementHash, const double lorentzShift)
 Set the Lorentz shift correction in the local x (phiDist) direction Assumes the center of the detector and is generally cached.
void setLorentzShiftEta (const IdentifierHash &elementHash, const double lorentzShiftEta)
 Set the Lorentz shift correction in the local y (etaDist) direction Assumes the center of the detector and is generally cached.
void setTanLorentzAngle (const IdentifierHash &elementHash, const double tanLorentzAngle)
 Set tan af the Lorentz angle in the local x (phiDist) direction Assumes the center of the detector and is generally cached.
void setTanLorentzAngleEta (const IdentifierHash &elementHash, const double tanLorentzAngleEta)
 Set tan af the Lorentz angle in the local y (etaDist) direction Assumes the center of the detector and is generally cached.
void setBiasVoltage (const IdentifierHash &elementHash, const double biasVoltage)
 Set bias voltage.
void setTemperature (const IdentifierHash &elementHash, const double temperature)
 Set temperature.
void setDepletionVoltage (const IdentifierHash &elementHash, const double depletionVoltage)
 Set depletion voltage.
void setCorrectionFactor (const double correctionFactor)
 Set correction factor.

Private Attributes

std::vector< double > m_lorentzShift
std::vector< double > m_lorentzShiftEta
std::vector< double > m_tanLorentzAngle
std::vector< double > m_tanLorentzAngleEta
std::vector< double > m_monitorBiasVoltage
std::vector< double > m_monitorTemperature
std::vector< double > m_monitorDepletionVoltage
double m_correctionFactor

Static Private Attributes

static const double s_invalidValue {std::numeric_limits<double>::quiet_NaN()}

Detailed Description

Concrete class for Lorentz angle conditions data for each detector element.

Definition at line 22 of file SiLorentzAngleCondData.h.

Constructor & Destructor Documentation

◆ SiLorentzAngleCondData()

SiLorentzAngleCondData::SiLorentzAngleCondData ( )

Definition at line 16 of file SiLorentzAngleCondData.cxx.

16 :
25{
26}
std::vector< double > m_monitorDepletionVoltage
std::vector< double > m_tanLorentzAngle
std::vector< double > m_tanLorentzAngleEta
std::vector< double > m_monitorBiasVoltage
std::vector< double > m_monitorTemperature
std::vector< double > m_lorentzShiftEta
std::vector< double > m_lorentzShift

◆ ~SiLorentzAngleCondData()

virtual SiLorentzAngleCondData::~SiLorentzAngleCondData ( )
virtualdefault

Member Function Documentation

◆ getBiasVoltage()

double SiLorentzAngleCondData::getBiasVoltage ( const IdentifierHash & elementHash) const

Get bias voltage.

Definition at line 63 of file SiLorentzAngleCondData.cxx.

64{
65 if (m_monitorBiasVoltage.size()<=elementHash) return s_invalidValue;
66 return m_monitorBiasVoltage[elementHash];
67}
static const double s_invalidValue

◆ getCorrectionFactor()

double SiLorentzAngleCondData::getCorrectionFactor ( ) const

Get correction factor.

Definition at line 81 of file SiLorentzAngleCondData.cxx.

82{
83 return m_correctionFactor;
84}

◆ getDepletionVoltage()

double SiLorentzAngleCondData::getDepletionVoltage ( const IdentifierHash & elementHash) const

Get depletion voltage.

Definition at line 75 of file SiLorentzAngleCondData.cxx.

76{
77 if (m_monitorDepletionVoltage.size()<=elementHash) return s_invalidValue;
78 return m_monitorDepletionVoltage[elementHash];
79}

◆ getLorentzShift()

double SiLorentzAngleCondData::getLorentzShift ( const IdentifierHash & elementHash) const

Get the Lorentz shift correction in the local x (phiDist) direction Assumes the center of the detector and is generally cached.

Definition at line 39 of file SiLorentzAngleCondData.cxx.

40{
41 if (m_lorentzShift.size()<=elementHash) return s_invalidValue;
42 return m_lorentzShift[elementHash];
43}

◆ getLorentzShiftEta()

double SiLorentzAngleCondData::getLorentzShiftEta ( const IdentifierHash & elementHash) const

Get the Lorentz shift correction in the local y (etaDist) direction Assumes the center of the detector and is generally cached.

Definition at line 45 of file SiLorentzAngleCondData.cxx.

46{
47 if (m_lorentzShiftEta.size()<=elementHash) return s_invalidValue;
48 return m_lorentzShiftEta[elementHash];
49}

◆ getTanLorentzAngle()

double SiLorentzAngleCondData::getTanLorentzAngle ( const IdentifierHash & elementHash) const

Get tan af the Lorentz angle in the local x (phiDist) direction Assumes the center of the detector and is generally cached.

Definition at line 51 of file SiLorentzAngleCondData.cxx.

52{
53 if (m_tanLorentzAngle.size()<=elementHash) return s_invalidValue;
54 return m_tanLorentzAngle[elementHash];
55}

◆ getTanLorentzAngleEta()

double SiLorentzAngleCondData::getTanLorentzAngleEta ( const IdentifierHash & elementHash) const

Get tan af the Lorentz angle in the local y (etaDist) direction Assumes the center of the detector and is generally cached.

Definition at line 57 of file SiLorentzAngleCondData.cxx.

58{
59 if (m_tanLorentzAngleEta.size()<=elementHash) return s_invalidValue;
60 return m_tanLorentzAngleEta[elementHash];
61}

◆ getTemperature()

double SiLorentzAngleCondData::getTemperature ( const IdentifierHash & elementHash) const

Get temperature.

Definition at line 69 of file SiLorentzAngleCondData.cxx.

70{
71 if (m_monitorTemperature.size()<=elementHash) return s_invalidValue;
72 return m_monitorTemperature[elementHash];
73}

◆ resize()

void SiLorentzAngleCondData::resize ( const unsigned int size)

Reszie the data members.

Definition at line 28 of file SiLorentzAngleCondData.cxx.

◆ setBiasVoltage()

void SiLorentzAngleCondData::setBiasVoltage ( const IdentifierHash & elementHash,
const double biasVoltage )

Set bias voltage.

Definition at line 110 of file SiLorentzAngleCondData.cxx.

111{
112 if (m_monitorBiasVoltage.size()<=elementHash) m_monitorBiasVoltage.resize(elementHash+1, s_invalidValue);
113 m_monitorBiasVoltage[elementHash] = biasVoltage;
114}

◆ setCorrectionFactor()

void SiLorentzAngleCondData::setCorrectionFactor ( const double correctionFactor)

Set correction factor.

Definition at line 128 of file SiLorentzAngleCondData.cxx.

129{
130 m_correctionFactor = correctionFactor;
131}

◆ setDepletionVoltage()

void SiLorentzAngleCondData::setDepletionVoltage ( const IdentifierHash & elementHash,
const double depletionVoltage )

Set depletion voltage.

Definition at line 122 of file SiLorentzAngleCondData.cxx.

123{
124 if (m_monitorDepletionVoltage.size()<=elementHash) m_monitorDepletionVoltage.resize(elementHash+1, s_invalidValue);
125 m_monitorDepletionVoltage[elementHash] = depletionVoltage;
126}

◆ setLorentzShift()

void SiLorentzAngleCondData::setLorentzShift ( const IdentifierHash & elementHash,
const double lorentzShift )

Set the Lorentz shift correction in the local x (phiDist) direction Assumes the center of the detector and is generally cached.

Definition at line 86 of file SiLorentzAngleCondData.cxx.

87{
88 if (m_lorentzShift.size()<=elementHash) m_lorentzShift.resize(elementHash+1, s_invalidValue);
89 m_lorentzShift[elementHash] = lorentzShift;
90}

◆ setLorentzShiftEta()

void SiLorentzAngleCondData::setLorentzShiftEta ( const IdentifierHash & elementHash,
const double lorentzShiftEta )

Set the Lorentz shift correction in the local y (etaDist) direction Assumes the center of the detector and is generally cached.

Definition at line 92 of file SiLorentzAngleCondData.cxx.

93{
94 if (m_lorentzShiftEta.size()<=elementHash) m_lorentzShiftEta.resize(elementHash+1, s_invalidValue);
95 m_lorentzShiftEta[elementHash] = lorentzShiftEta;
96}

◆ setTanLorentzAngle()

void SiLorentzAngleCondData::setTanLorentzAngle ( const IdentifierHash & elementHash,
const double tanLorentzAngle )

Set tan af the Lorentz angle in the local x (phiDist) direction Assumes the center of the detector and is generally cached.

Definition at line 98 of file SiLorentzAngleCondData.cxx.

99{
100 if (m_tanLorentzAngle.size()<=elementHash) m_tanLorentzAngle.resize(elementHash+1, s_invalidValue);
101 m_tanLorentzAngle[elementHash] = tanLorentzAngle;
102}

◆ setTanLorentzAngleEta()

void SiLorentzAngleCondData::setTanLorentzAngleEta ( const IdentifierHash & elementHash,
const double tanLorentzAngleEta )

Set tan af the Lorentz angle in the local y (etaDist) direction Assumes the center of the detector and is generally cached.

Definition at line 104 of file SiLorentzAngleCondData.cxx.

105{
106 if (m_tanLorentzAngleEta.size()<=elementHash) m_tanLorentzAngleEta.resize(elementHash+1, s_invalidValue);
107 m_tanLorentzAngleEta[elementHash] = tanLorentzAngleEta;
108}

◆ setTemperature()

void SiLorentzAngleCondData::setTemperature ( const IdentifierHash & elementHash,
const double temperature )

Set temperature.

Definition at line 116 of file SiLorentzAngleCondData.cxx.

117{
118 if (m_monitorTemperature.size()<=elementHash) m_monitorTemperature.resize(elementHash+1, s_invalidValue);
119 m_monitorTemperature[elementHash] = temperature;
120}

Member Data Documentation

◆ m_correctionFactor

double SiLorentzAngleCondData::m_correctionFactor
private

Definition at line 96 of file SiLorentzAngleCondData.h.

◆ m_lorentzShift

std::vector<double> SiLorentzAngleCondData::m_lorentzShift
private

Definition at line 89 of file SiLorentzAngleCondData.h.

◆ m_lorentzShiftEta

std::vector<double> SiLorentzAngleCondData::m_lorentzShiftEta
private

Definition at line 90 of file SiLorentzAngleCondData.h.

◆ m_monitorBiasVoltage

std::vector<double> SiLorentzAngleCondData::m_monitorBiasVoltage
private

Definition at line 93 of file SiLorentzAngleCondData.h.

◆ m_monitorDepletionVoltage

std::vector<double> SiLorentzAngleCondData::m_monitorDepletionVoltage
private

Definition at line 95 of file SiLorentzAngleCondData.h.

◆ m_monitorTemperature

std::vector<double> SiLorentzAngleCondData::m_monitorTemperature
private

Definition at line 94 of file SiLorentzAngleCondData.h.

◆ m_tanLorentzAngle

std::vector<double> SiLorentzAngleCondData::m_tanLorentzAngle
private

Definition at line 91 of file SiLorentzAngleCondData.h.

◆ m_tanLorentzAngleEta

std::vector<double> SiLorentzAngleCondData::m_tanLorentzAngleEta
private

Definition at line 92 of file SiLorentzAngleCondData.h.

◆ s_invalidValue

const double SiLorentzAngleCondData::s_invalidValue {std::numeric_limits<double>::quiet_NaN()}
staticprivate

Definition at line 14 of file SiLorentzAngleCondData.h.


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