1 #ifndef CondFormats_SiPixelObjects_SiPixelGainCalibrationForHLT_h
2 #define CondFormats_SiPixelObjects_SiPixelGainCalibrationForHLT_h
27 #include<boost/cstdint.hpp>
53 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;
77 void setData(
float ped,
float gain, std::vector<char>& vped,
bool thisColumnIsDead =
false,
bool thisColumnIsNoisy =
false);
82 std::pair<float,float>
getPedAndGain(
const int&
col,
const int& row,
const Range& range,
const int& nCols,
bool& isDeadColumn,
bool& isNoisyColumn )
const;
84 float getPed (
const int&
col,
const int& row,
const Range& range,
const int& nCols,
bool& isDeadColumn,
bool& isNoisyColumn )
const;
85 float getGain (
const int&
col,
const int& row,
const Range& range,
const int& nCols,
bool& isDeadColumn,
bool& isNoisyColumn )
const;
std::pair< float, float > getPedAndGain(const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const
SiPixelGainCalibrationForHLT()
void setNoisyColumn(const int &nRows, std::vector< char > &vped)
void setData(float ped, float gain, std::vector< char > &vped, bool thisColumnIsDead=false, bool thisColumnIsNoisy=false)
float encodePed(const float &ped)
void getDetIds(std::vector< uint32_t > &DetIds_) const
const std::pair< const Range, const int > getRangeAndNCols(const uint32_t &detID) const
std::vector< DetRegistry > Registry
bool operator()(const DetRegistry &p, const uint32_t &i) const
std::vector< DetRegistry > indexes
std::pair< ContainerIterator, ContainerIterator > Range
static std::string const input
float getGain(const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const
unsigned int numberOfRowsToAverageOver_
unsigned int getNumberOfRowsToAverageOver() const
float decodePed(unsigned int ped) const
float getPed(const int &col, const int &row, const Range &range, const int &nCols, bool &isDeadColumn, bool &isNoisyColumn) const
float decodeGain(unsigned int gain) const
float getGainHigh() const
float encodeGain(const float &gain)
std::vector< char >::const_iterator ContainerIterator
bool put(const uint32_t &detID, Range input, const int &nCols)
Registry::const_iterator RegistryIterator
unsigned int nBinsToUseForEncoding_
const Range getRange(const uint32_t &detID) const
void setDeadColumn(const int &nRows, std::vector< char > &vped)
#define COND_SERIALIZABLE
~SiPixelGainCalibrationForHLT()
const int getNCols(const uint32_t &detID) const
std::vector< char > v_pedestals