1 #ifndef CondFormats_SiPixelObjects_SiPixelGainCalibrationOffline_h 2 #define CondFormats_SiPixelObjects_SiPixelGainCalibrationOffline_h 50 typedef std::pair<ContainerIterator, ContainerIterator>
Range;
61 bool put(
const uint32_t& detID,
Range input,
const int& nCols);
63 void getDetIds(std::vector<uint32_t>& DetIds_)
const;
64 const int getNCols(
const uint32_t& detID)
const;
65 const std::pair<const Range, const int>
getRangeAndNCols(
const uint32_t& detID)
const;
70 std::vector<char>& vped,
71 bool thisColumnIsDead =
false,
72 bool thisColumnIsNoisy =
false);
74 std::vector<char>& vped,
75 bool thisPixelIsDead =
false,
76 bool thisPixelIsNoisy =
false);
97 float getPed(
const int&
col,
const int& row,
const Range&
range,
const int& nCols,
bool& isDead,
bool& isNoisy)
const;
103 bool& isNoisyColumn)
const;
~SiPixelGainCalibrationOffline()
std::vector< char > v_pedestals
double getGainHigh() const
double getGainLow() const
float decodePed(unsigned int ped) const
void setDataPedestal(float pedestal, std::vector< char > &vped, bool thisPixelIsDead=false, bool thisPixelIsNoisy=false)
unsigned int getNumberOfRowsToAverageOver() const
unsigned int numberOfRowsToAverageOver_
double getPedHigh() const
const std::pair< const Range, const int > getRangeAndNCols(const uint32_t &detID) const
std::pair< ContainerIterator, ContainerIterator > Range
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 decodeGain(unsigned int gain) const
float encodePed(const float &ped)
void setDeadPixel(std::vector< char > &vped)
std::vector< DetRegistry > Registry
void setNoisyPixel(std::vector< char > &vped)
const int getNCols(const uint32_t &detID) const
void getDetIds(std::vector< uint32_t > &DetIds_) const
#define COND_SERIALIZABLE
float getPed(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
std::vector< DetRegistry > indexes
bool operator()(const DetRegistry &p, const uint32_t &i) const
bool put(const uint32_t &detID, Range input, const int &nCols)
float getGain(const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const
unsigned int nBinsToUseForEncoding_
void setDeadColumn(const int &nRows, std::vector< char > &vped)
Registry::const_iterator RegistryIterator