1 #ifndef CondFormats_SiPixelObjects_SiPixelGainCalibration_h
2 #define CondFormats_SiPixelObjects_SiPixelGainCalibration_h
27 #include<boost/cstdint.hpp>
54 typedef std::pair<ContainerIterator, ContainerIterator>
Range;
65 bool put(
const uint32_t& detID,
Range input,
const int& nCols);
67 void getDetIds(std::vector<uint32_t>& DetIds_)
const;
68 const int getNCols(
const uint32_t& detID)
const;
69 const std::pair<const Range, const int>
getRangeAndNCols(
const uint32_t& detID)
const;
78 void setData(
float ped,
float gain, std::vector<char>& vped,
bool thisPixelIsDead =
false,
bool thisPixelIsNoisy =
false);
83 float getPed (
const int&
col,
const int& row,
const Range& range,
const int& nCols,
bool& isDead,
bool& isNoisy)
const;
84 float getGain (
const int&
col,
const int& row,
const Range& range,
const int& nCols,
bool& isDead,
bool& isNoisy)
const;
double getGainHigh() const
float decodeGain(unsigned int gain) const
std::vector< char > v_pedestals
unsigned int nBinsToUseForEncoding_
void getDetIds(std::vector< uint32_t > &DetIds_) const
std::vector< DetRegistry > indexes
std::vector< char >::const_iterator ContainerIterator
const std::pair< const Range, const int > getRangeAndNCols(const uint32_t &detID) const
bool put(const uint32_t &detID, Range input, const int &nCols)
void setDeadPixel(std::vector< char > &vped)
double getGainLow() const
unsigned int getNumberOfRowsToAverageOver() const
std::vector< DetRegistry > Registry
void setNoisyPixel(std::vector< char > &vped)
float getPed(const int &col, const int &row, const Range &range, const int &nCols, bool &isDead, bool &isNoisy) const
double getPedHigh() const
bool operator()(const DetRegistry &p, const uint32_t &i) const
static std::string const input
unsigned int numberOfRowsToAverageOver_
float encodePed(const float &ped)
float getGain(const int &col, const int &row, const Range &range, const int &nCols, bool &isDead, bool &isNoisy) const
const Range getRange(const uint32_t &detID) const
Registry::const_iterator RegistryIterator
#define COND_SERIALIZABLE
std::pair< ContainerIterator, ContainerIterator > Range
const int getNCols(const uint32_t &detID) const
void setData(float ped, float gain, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false)
~SiPixelGainCalibration()
float encodeGain(const float &gain)
float decodePed(unsigned int ped) const