ATLAS Offline Software
Loading...
Searching...
No Matches
SiLorentzAngleCondData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
9
11
12#include <limits>
13
14const double SiLorentzAngleCondData::s_invalidValue{std::numeric_limits<double>::quiet_NaN()};
15
27
28void SiLorentzAngleCondData::resize(const unsigned int size)
29{
30 m_lorentzShift.resize(size, s_invalidValue);
37}
38
40{
41 if (m_lorentzShift.size()<=elementHash) return s_invalidValue;
42 return m_lorentzShift[elementHash];
43}
44
46{
47 if (m_lorentzShiftEta.size()<=elementHash) return s_invalidValue;
48 return m_lorentzShiftEta[elementHash];
49}
50
52{
53 if (m_tanLorentzAngle.size()<=elementHash) return s_invalidValue;
54 return m_tanLorentzAngle[elementHash];
55}
56
58{
59 if (m_tanLorentzAngleEta.size()<=elementHash) return s_invalidValue;
60 return m_tanLorentzAngleEta[elementHash];
61}
62
64{
65 if (m_monitorBiasVoltage.size()<=elementHash) return s_invalidValue;
66 return m_monitorBiasVoltage[elementHash];
67}
68
70{
71 if (m_monitorTemperature.size()<=elementHash) return s_invalidValue;
72 return m_monitorTemperature[elementHash];
73}
74
76{
77 if (m_monitorDepletionVoltage.size()<=elementHash) return s_invalidValue;
78 return m_monitorDepletionVoltage[elementHash];
79}
80
85
86void SiLorentzAngleCondData::setLorentzShift(const IdentifierHash& elementHash, const double lorentzShift)
87{
88 if (m_lorentzShift.size()<=elementHash) m_lorentzShift.resize(elementHash+1, s_invalidValue);
89 m_lorentzShift[elementHash] = lorentzShift;
90}
91
92void SiLorentzAngleCondData::setLorentzShiftEta(const IdentifierHash& elementHash, const double lorentzShiftEta)
93{
94 if (m_lorentzShiftEta.size()<=elementHash) m_lorentzShiftEta.resize(elementHash+1, s_invalidValue);
95 m_lorentzShiftEta[elementHash] = lorentzShiftEta;
96}
97
98void SiLorentzAngleCondData::setTanLorentzAngle(const IdentifierHash& elementHash, const double tanLorentzAngle)
99{
100 if (m_tanLorentzAngle.size()<=elementHash) m_tanLorentzAngle.resize(elementHash+1, s_invalidValue);
101 m_tanLorentzAngle[elementHash] = tanLorentzAngle;
102}
103
104void SiLorentzAngleCondData::setTanLorentzAngleEta(const IdentifierHash& elementHash, const double tanLorentzAngleEta)
105{
106 if (m_tanLorentzAngleEta.size()<=elementHash) m_tanLorentzAngleEta.resize(elementHash+1, s_invalidValue);
107 m_tanLorentzAngleEta[elementHash] = tanLorentzAngleEta;
108}
109
110void SiLorentzAngleCondData::setBiasVoltage(const IdentifierHash& elementHash, const double biasVoltage)
111{
112 if (m_monitorBiasVoltage.size()<=elementHash) m_monitorBiasVoltage.resize(elementHash+1, s_invalidValue);
113 m_monitorBiasVoltage[elementHash] = biasVoltage;
114}
115
116void SiLorentzAngleCondData::setTemperature(const IdentifierHash& elementHash, const double temperature)
117{
118 if (m_monitorTemperature.size()<=elementHash) m_monitorTemperature.resize(elementHash+1, s_invalidValue);
119 m_monitorTemperature[elementHash] = temperature;
120}
121
122void SiLorentzAngleCondData::setDepletionVoltage(const IdentifierHash& elementHash, const double depletionVoltage)
123{
124 if (m_monitorDepletionVoltage.size()<=elementHash) m_monitorDepletionVoltage.resize(elementHash+1, s_invalidValue);
125 m_monitorDepletionVoltage[elementHash] = depletionVoltage;
126}
127
128void SiLorentzAngleCondData::setCorrectionFactor(const double correctionFactor)
129{
130 m_correctionFactor = correctionFactor;
131}
This is a "hash" representation of an Identifier.
void setTemperature(const IdentifierHash &elementHash, const double temperature)
Set temperature.
std::vector< double > m_monitorDepletionVoltage
void setCorrectionFactor(const double correctionFactor)
Set correction factor.
std::vector< double > m_tanLorentzAngle
std::vector< double > m_tanLorentzAngleEta
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 detecto...
double getTemperature(const IdentifierHash &elementHash) const
Get temperature.
double getTanLorentzAngleEta(const IdentifierHash &elementHash) const
Get tan af the Lorentz angle in the local y (etaDist) direction Assumes the center of the detector an...
double getDepletionVoltage(const IdentifierHash &elementHash) const
Get depletion voltage.
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 an...
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 an...
std::vector< double > m_monitorBiasVoltage
void setBiasVoltage(const IdentifierHash &elementHash, const double biasVoltage)
Set bias voltage.
double getBiasVoltage(const IdentifierHash &elementHash) const
Get bias voltage.
void setLorentzShift(const IdentifierHash &elementHash, const double lorentzShift)
Set the Lorentz shift correction in the local x (phiDist) direction Assumes the center of the detecto...
double getCorrectionFactor() const
Get correction factor.
void setDepletionVoltage(const IdentifierHash &elementHash, const double depletionVoltage)
Set depletion voltage.
std::vector< double > m_monitorTemperature
double getTanLorentzAngle(const IdentifierHash &elementHash) const
Get tan af the Lorentz angle in the local x (phiDist) direction Assumes the center of the detector an...
std::vector< double > m_lorentzShiftEta
void setLorentzShiftEta(const IdentifierHash &elementHash, const double lorentzShiftEta)
Set the Lorentz shift correction in the local y (etaDist) direction Assumes the center of the detecto...
static const double s_invalidValue
double getLorentzShiftEta(const IdentifierHash &elementHash) const
Get the Lorentz shift correction in the local y (etaDist) direction Assumes the center of the detecto...
std::vector< double > m_lorentzShift