|
ATLAS Offline Software
|
#include <PixelChargeCalibCondData.h>
|
| PixelChargeCalibCondData ()=default |
|
| PixelChargeCalibCondData (std::size_t max_module_hash) |
|
void | setAllFromBundle (unsigned int moduleHash, const PixelChargeCalib::ChargeCalibrationBundle &b) |
|
void | setAllFromConfigData (unsigned int moduleHash, const PixelModuleData *configData, const std::pair< int, int > &becLayer, unsigned int numFE) |
|
void | setThresholds (InDetDD::PixelDiodeType type, unsigned int moduleHash, const std::vector< PixelChargeCalib::Thresholds > &thresholds) |
|
void | setAnalogThreshold (InDetDD::PixelDiodeType type, unsigned int moduleHash, std::vector< int > &&value) |
|
void | setLegacyFitParameters (InDetDD::PixelDiodeType type, unsigned int moduleHash, const std::vector< PixelChargeCalib::LegacyFitParameters > ¶meters) |
|
void | setLinearFitParameters (InDetDD::PixelDiodeType type, unsigned int moduleHash, const std::vector< PixelChargeCalib::LinearFitParameters > ¶meters) |
|
void | setTotResolutions (unsigned int moduleHash, const std::vector< PixelChargeCalib::Resolutions > &value) |
|
PixelChargeCalib::Thresholds | getThresholds (InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const |
|
PixelChargeCalib::LegacyFitParameters | getLegacyFitParameters (InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const |
|
PixelChargeCalib::LinearFitParameters | getLinearFitParameters (InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const |
|
float | getQ2TotF (InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const |
|
float | getQ2TotG (InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const |
|
float | getTotRes (unsigned int moduleHash, unsigned int FE, float Q) const |
|
float | getToT (InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE, float Q) const |
|
float | getCharge (InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE, float ToT) const |
|
void | setCalibrationStrategy (unsigned int moduleHash, CalibrationStrategy strategy) |
|
void | setTot2Charges (unsigned int moduleHash, IBLModule charges) |
|
const IBLCalibration & | getTot2Charges (unsigned int moduleHash, unsigned int FE) const |
|
CalibrationStrategy | getCalibrationStrategy (unsigned int moduleHash) const |
|
float | getChargeLUTFEI4 (unsigned int moduleHash, unsigned int FE, unsigned int ToT) const |
|
float | getToTLUTFEI4 (unsigned int moduleHash, unsigned int FE, float Q) const |
|
constexpr int | getFEI4OverflowToT () const |
|
Definition at line 23 of file PixelChargeCalibCondData.h.
◆ IBLCalibration
◆ IBLModule
◆ CalibrationStrategy
◆ PixelChargeCalibCondData() [1/2]
PixelChargeCalibCondData::PixelChargeCalibCondData |
( |
| ) |
|
|
default |
◆ PixelChargeCalibCondData() [2/2]
PixelChargeCalibCondData::PixelChargeCalibCondData |
( |
std::size_t |
max_module_hash | ) |
|
◆ getCalibrationStrategy()
◆ getCharge()
float PixelChargeCalibCondData::getCharge |
( |
InDetDD::PixelDiodeType |
type, |
|
|
unsigned int |
moduleHash, |
|
|
unsigned int |
FE, |
|
|
float |
ToT |
|
) |
| const |
Definition at line 192 of file PixelChargeCalibCondData.cxx.
203 const auto analogueThreshold = thresholds.value;
209 if (
float charge1 = lin.
Q(ToT); charge1 != 0.f)
return charge1;
◆ getChargeLUTFEI4()
float PixelChargeCalibCondData::getChargeLUTFEI4 |
( |
unsigned int |
moduleHash, |
|
|
unsigned int |
FE, |
|
|
unsigned int |
ToT |
|
) |
| const |
◆ getFEI4OverflowToT()
constexpr int PixelChargeCalibCondData::getFEI4OverflowToT |
( |
| ) |
const |
|
inlineconstexpr |
◆ getLegacyFitParameters()
◆ getLinearFitParameters()
Definition at line 143 of file PixelChargeCalibCondData.cxx.
148 const auto &linFit = typeMap.at(moduleHash);
149 if (FE < linFit.size()) {
150 return typeMap.at(moduleHash).at(FE);
152 throw generateError(__func__,
type, moduleHash, FE);
◆ getQ2TotF()
float PixelChargeCalibCondData::getQ2TotF |
( |
InDetDD::PixelDiodeType |
type, |
|
|
unsigned int |
moduleHash, |
|
|
unsigned int |
FE |
|
) |
| const |
◆ getQ2TotG()
float PixelChargeCalibCondData::getQ2TotG |
( |
InDetDD::PixelDiodeType |
type, |
|
|
unsigned int |
moduleHash, |
|
|
unsigned int |
FE |
|
) |
| const |
◆ getThresholds()
Definition at line 99 of file PixelChargeCalibCondData.cxx.
102 const auto &feIndexedVector = hashIndexedVector.at(moduleHash);
103 if (FE < feIndexedVector.size()) {
104 return feIndexedVector[FE];
106 throw generateError(__func__,
type, moduleHash, FE);
◆ getToT()
float PixelChargeCalibCondData::getToT |
( |
InDetDD::PixelDiodeType |
type, |
|
|
unsigned int |
moduleHash, |
|
|
unsigned int |
FE, |
|
|
float |
Q |
|
) |
| const |
◆ getTot2Charges()
◆ getToTLUTFEI4()
float PixelChargeCalibCondData::getToTLUTFEI4 |
( |
unsigned int |
moduleHash, |
|
|
unsigned int |
FE, |
|
|
float |
Q |
|
) |
| const |
◆ getTotRes()
float PixelChargeCalibCondData::getTotRes |
( |
unsigned int |
moduleHash, |
|
|
unsigned int |
FE, |
|
|
float |
Q |
|
) |
| const |
◆ setAllFromBundle()
◆ setAllFromConfigData()
void PixelChargeCalibCondData::setAllFromConfigData |
( |
unsigned int |
moduleHash, |
|
|
const PixelModuleData * |
configData, |
|
|
const std::pair< int, int > & |
becLayer, |
|
|
unsigned int |
numFE |
|
) |
| |
◆ setAnalogThreshold()
void PixelChargeCalibCondData::setAnalogThreshold |
( |
InDetDD::PixelDiodeType |
type, |
|
|
unsigned int |
moduleHash, |
|
|
std::vector< int > && |
value |
|
) |
| |
◆ setCalibrationStrategy()
void PixelChargeCalibCondData::setCalibrationStrategy |
( |
unsigned int |
moduleHash, |
|
|
CalibrationStrategy |
strategy |
|
) |
| |
◆ setLegacyFitParameters()
◆ setLinearFitParameters()
◆ setThresholds()
Definition at line 89 of file PixelChargeCalibCondData.cxx.
92 if (hashIndexedVector.size()<=moduleHash){
95 hashIndexedVector[moduleHash] = thresholds;
◆ setTot2Charges()
void PixelChargeCalibCondData::setTot2Charges |
( |
unsigned int |
moduleHash, |
|
|
IBLModule |
charges |
|
) |
| |
◆ setTotResolutions()
◆ IBLCalibrationSize
constexpr size_t PixelChargeCalibCondData::IBLCalibrationSize {16} |
|
staticconstexpr |
◆ m_calibrationStrategy
◆ m_legacyFit
◆ m_linFit
◆ m_sizeOfHashVector
std::size_t PixelChargeCalibCondData::m_sizeOfHashVector = 0 |
|
private |
◆ m_thresholds
◆ m_tot2Charges
std::map<int, IBLModule> PixelChargeCalibCondData::m_tot2Charges |
|
private |
◆ m_totRes
◆ s_NPixelDiodes
The documentation for this class was generated from the following files:
PixelChargeCalib::LegacyFitParameters getLegacyFitParameters(InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const
int getDefaultAnalogThresholdSigma(int barrel_ec, int layer) const
const IBLCalibration & getTot2Charges(unsigned int moduleHash, unsigned int FE) const
std::array< std::vector< std::vector< PixelChargeCalib::Thresholds > >, s_NPixelDiodes > m_thresholds
int getDefaultAnalogThreshold(int barrel_ec, int layer) const
int getDefaultAnalogThresholdNoise(int barrel_ec, int layer) const
int getDefaultInTimeThreshold(int barrel_ec, int layer) const
PixelChargeCalib::Thresholds getThresholds(InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const
constexpr std::size_t enum2uint(T n, const std::string &callingFunctionName="")
Convert an enum class to size_t for use as an array index.
std::array< std::vector< std::vector< PixelChargeCalib::LegacyFitParameters > >, s_NPixelDiodes > m_legacyFit
void setLinearFitParameters(InDetDD::PixelDiodeType type, unsigned int moduleHash, const std::vector< PixelChargeCalib::LinearFitParameters > ¶meters)
float getDefaultQ2TotC() const
std::vector< std::vector< PixelChargeCalib::Resolutions > > m_totRes
void setLegacyFitParameters(InDetDD::PixelDiodeType type, unsigned int moduleHash, const std::vector< PixelChargeCalib::LegacyFitParameters > ¶meters)
constexpr static std::size_t s_NPixelDiodes
float getChargeLUTFEI4(unsigned int moduleHash, unsigned int FE, unsigned int ToT) const
std::size_t m_sizeOfHashVector
std::map< int, CalibrationStrategy > m_calibrationStrategy
void setThresholds(InDetDD::PixelDiodeType type, unsigned int moduleHash, const std::vector< PixelChargeCalib::Thresholds > &thresholds)
std::pair< std::vector< unsigned int >, bool > res
void setCalibrationStrategy(unsigned int moduleHash, CalibrationStrategy strategy)
CalibrationStrategy getCalibrationStrategy(unsigned int moduleHash) const
std::map< int, IBLModule > m_tot2Charges
double charge(const T &p)
float getDefaultQ2TotA() const
PixelChargeCalib::LinearFitParameters getLinearFitParameters(InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const
float getDefaultQ2TotE() const
static constexpr size_t IBLCalibrationSize
float getToTLUTFEI4(unsigned int moduleHash, unsigned int FE, float Q) const
void setTotResolutions(unsigned int moduleHash, const std::vector< PixelChargeCalib::Resolutions > &value)
std::array< std::vector< std::vector< PixelChargeCalib::LinearFitParameters > >, s_NPixelDiodes > m_linFit
std::array< float, IBLCalibrationSize > IBLCalibration