#include <IChargeCalibrationParser.h>
|
| template<typename T, typename b = std::is_integral<T>> |
| std::function< T(size_t)> | getFunc (const std::vector< std::string > &data) |
| | Return function converting a string to number type T at index i of data vector.
|
| template<typename T> |
| std::function< T(size_t)> | getFunc (const nlohmann::json &data) |
| | Return function converting an item to number type T at index i of json data.
|
|
| static constexpr float | m_chargeLimit = 1e5 |
| | If the calculated charge exceeds this limit, a linear extrapolation is used at this point.
|
Definition at line 31 of file IChargeCalibrationParser.h.
◆ IChargeCalibrationParser()
Definition at line 33 of file IChargeCalibrationParser.h.
36
37 }
const PixelID * m_pixelID
const PixelModuleData * m_configData
const InDetDD::SiDetectorElementCollection * m_elements
◆ ~IChargeCalibrationParser()
| virtual PixelChargeCalib::IChargeCalibrationParser::~IChargeCalibrationParser |
( |
| ) |
|
|
virtualdefault |
◆ getFunc() [1/2]
template<typename T>
| std::function< T(size_t)> PixelChargeCalib::IChargeCalibrationParser::getFunc |
( |
const nlohmann::json & | data | ) |
|
|
inlineprotected |
Return function converting an item to number type T at index i of json data.
Definition at line 69 of file IChargeCalibrationParser.h.
69 {
70 auto f = [&
data](
size_t i)->T {
72 };
74 }
char data[hepevt_bytes_allocation_ATLAS]
◆ getFunc() [2/2]
template<typename T, typename b = std::is_integral<T>>
| std::function< T(size_t)> PixelChargeCalib::IChargeCalibrationParser::getFunc |
( |
const std::vector< std::string > & | data | ) |
|
|
inlineprotected |
Return function converting a string to number type T at index i of data vector.
Definition at line 59 of file IChargeCalibrationParser.h.
59 {
60 auto f = [&
data](
size_t i)->T {
61 return b::value ? std::stoi(
data[i]) : std::stof(
data[
i]);
62 };
64 }
◆ parse() [1/2]
Definition at line 41 of file IChargeCalibrationParser.h.
41 {
43 }
virtual ChargeCalibrationBundle parseImpl(unsigned int, const nlohmann::json &, int)=0
◆ parse() [2/2]
template<class T>
| ChargeCalibrationBundle PixelChargeCalib::IChargeCalibrationParser::parse |
( |
unsigned int | hash, |
|
|
const T & | data, |
|
|
int | inputSource ) |
|
inline |
◆ parseImpl() [1/3]
| virtual ChargeCalibrationBundle PixelChargeCalib::IChargeCalibrationParser::parseImpl |
( |
unsigned int | , |
|
|
const nlohmann::json & | ) |
|
privatepure virtual |
◆ parseImpl() [2/3]
| virtual ChargeCalibrationBundle PixelChargeCalib::IChargeCalibrationParser::parseImpl |
( |
unsigned int | , |
|
|
const nlohmann::json & | , |
|
|
int | ) |
|
privatepure virtual |
◆ parseImpl() [3/3]
| virtual ChargeCalibrationBundle PixelChargeCalib::IChargeCalibrationParser::parseImpl |
( |
unsigned int | , |
|
|
const std::string & | ) |
|
privatepure virtual |
◆ m_chargeLimit
| float PixelChargeCalib::IChargeCalibrationParser::m_chargeLimit = 1e5 |
|
staticconstexprprotected |
If the calculated charge exceeds this limit, a linear extrapolation is used at this point.
Definition at line 55 of file IChargeCalibrationParser.h.
◆ m_configData
| const PixelModuleData* PixelChargeCalib::IChargeCalibrationParser::m_configData {} |
|
protected |
◆ m_elements
◆ m_pixelID
| const PixelID* PixelChargeCalib::IChargeCalibrationParser::m_pixelID {} |
|
protected |
The documentation for this class was generated from the following file: