|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef PIXELCHARGECALIBCONDDATA_H
6 #define PIXELCHARGECALIBCONDDATA_H
17 struct ChargeCalibrationBundle;
78 getTotRes(
unsigned int moduleHash,
unsigned int FE,
float Q)
const;
100 getChargeLUTFEI4(
unsigned int moduleHash,
unsigned int FE,
unsigned int ToT)
const;
103 getToTLUTFEI4(
unsigned int moduleHash,
unsigned int FE,
float Q)
const;
117 std::vector<std::vector<PixelChargeCalib::Resolutions>>
m_totRes;
127 #include "AthenaKernel/CondCont.h"
PixelChargeCalib::LegacyFitParameters getLegacyFitParameters(InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const
const IBLCalibration & getTot2Charges(unsigned int moduleHash, unsigned int FE) const
void setAnalogThreshold(InDetDD::PixelDiodeType type, unsigned int moduleHash, std::vector< int > &&value)
std::array< std::vector< std::vector< PixelChargeCalib::Thresholds > >, s_NPixelDiodes > m_thresholds
float getToT(InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE, float Q) 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.
Structs for holding charge calibration parameterisation and data.
CONDCONT_DEF(PixelChargeCalibCondData, 578786399)
float getTotRes(unsigned int moduleHash, unsigned int FE, float Q) const
std::array< std::vector< std::vector< PixelChargeCalib::LegacyFitParameters > >, s_NPixelDiodes > m_legacyFit
void setAllFromConfigData(unsigned int moduleHash, const PixelModuleData *configData, const std::pair< int, int > &becLayer, unsigned int numFE)
void setLinearFitParameters(InDetDD::PixelDiodeType type, unsigned int moduleHash, const std::vector< PixelChargeCalib::LinearFitParameters > ¶meters)
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
PixelChargeCalibCondData()=default
std::map< int, CalibrationStrategy > m_calibrationStrategy
void setThresholds(InDetDD::PixelDiodeType type, unsigned int moduleHash, const std::vector< PixelChargeCalib::Thresholds > &thresholds)
void setTot2Charges(unsigned int moduleHash, IBLModule charges)
void setCalibrationStrategy(unsigned int moduleHash, CalibrationStrategy strategy)
CalibrationStrategy getCalibrationStrategy(unsigned int moduleHash) const
float getQ2TotG(InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE) const
std::map< int, IBLModule > m_tot2Charges
void setAllFromBundle(unsigned int moduleHash, const PixelChargeCalib::ChargeCalibrationBundle &b)
std::vector< IBLCalibration > IBLModule
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
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
constexpr int getFEI4OverflowToT() const
float getCharge(InDetDD::PixelDiodeType type, unsigned int moduleHash, unsigned int FE, float ToT) const
static constexpr size_t IBLCalibrationSize
bundles of parameters used together in the PixelChargeCalibCondAlg
float getToTLUTFEI4(unsigned int moduleHash, unsigned int FE, float Q) const
void setTotResolutions(unsigned int moduleHash, const std::vector< PixelChargeCalib::Resolutions > &value)
macros to associate a CLID to a type
std::array< std::vector< std::vector< PixelChargeCalib::LinearFitParameters > >, s_NPixelDiodes > m_linFit
std::array< float, IBLCalibrationSize > IBLCalibration