1 #ifndef CondFormats_SiPixelObjects_SiPixelGainCalibrationOffline_h
2 #define CondFormats_SiPixelObjects_SiPixelGainCalibrationOffline_h
27 #include<boost/cstdint.hpp>
52 typedef std::pair<ContainerIterator, ContainerIterator>
Range;
64 bool put(
const uint32_t& detID,
Range input,
const int& nCols);
66 void getDetIds(std::vector<uint32_t>& DetIds_)
const;
67 const int getNCols(
const uint32_t& detID)
const;
68 const std::pair<const Range, const int>
getRangeAndNCols(
const uint32_t& detID)
const;
71 void setDataGain (
float gain,
const int& nRows, std::vector<char>& vped ,
bool thisColumnIsDead =
false ,
bool thisColumnIsNoisy =
false);
72 void setDataPedestal (
float pedestal, std::vector<char>& vped ,
bool thisPixelIsDead =
false ,
bool thisPixelIsNoisy =
false);
89 float getPed (
const int&
col,
const int& row,
const Range& range,
const int& nCols,
bool& isDead,
bool& isNoisy)
const;
90 float getGain (
const int&
col,
const int& row,
const Range& range,
const int& nCols,
bool& isDeadColumn,
bool& isNoisyColumn)
const;
~SiPixelGainCalibrationOffline()
float getGain(const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const
double getPedHigh() const
std::vector< char > v_pedestals
bool operator()(const DetRegistry &p, const uint32_t &i) const
void setDataPedestal(float pedestal, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false)
unsigned int numberOfRowsToAverageOver_
float getPed(const int &col, const int &row, const Range &range, const int &nCols, bool &isDead, bool &isNoisy) const
std::pair< ContainerIterator, ContainerIterator > Range
const int getNCols(const uint32_t &detID) const
void setDataGain(float gain, const int &nRows, std::vector< char > &vped, bool thisColumnIsDead=false, bool thisColumnIsNoisy=false)
static std::string const input
std::vector< char >::const_iterator ContainerIterator
SiPixelGainCalibrationOffline()
void setNoisyColumn(const int &nRows, std::vector< char > &vped)
float encodeGain(const float &gain)
float encodePed(const float &ped)
void setDeadPixel(std::vector< char > &vped)
std::vector< DetRegistry > Registry
void setNoisyPixel(std::vector< char > &vped)
const Range getRange(const uint32_t &detID) const
double getGainLow() const
float decodeGain(unsigned int gain) const
const std::pair< const Range, const int > getRangeAndNCols(const uint32_t &detID) const
std::vector< DetRegistry > indexes
void getDetIds(std::vector< uint32_t > &DetIds_) const
double getGainHigh() const
bool put(const uint32_t &detID, Range input, const int &nCols)
unsigned int nBinsToUseForEncoding_
float decodePed(unsigned int ped) const
unsigned int getNumberOfRowsToAverageOver() const
void setDeadColumn(const int &nRows, std::vector< char > &vped)
Registry::const_iterator RegistryIterator