1 #ifndef CondFormats_SiPixelObjects_interface_SiPixelGainForHLTonGPU_h
2 #define CondFormats_SiPixelObjects_interface_SiPixelGainForHLTonGPU_h
32 using Range = std::pair<uint32_t, uint32_t>;
35 uint32_t moduleInd,
int col,
int row,
bool& isDeadColumn,
bool& isNoisyColumn)
const {
39 unsigned int lengthOfColumnData = (
range.second -
range.first) / nCols;
40 unsigned int lengthOfAveragedDataInEachColumn = 2;
43 auto offset =
range.first + col * lengthOfColumnData + lengthOfAveragedDataInEachColumn * numberOfDataBlocksToSkip;
73 #endif // CondFormats_SiPixelObjects_interface_SiPixelGainForHLTonGPU_h
constexpr float decodeGain(unsigned int gain) const
DecodingStructure * v_pedestals_
std::pair< uint32_t, uint32_t > Range
constexpr uint32_t numberOfModules
const uint16_t range(const Frame &aFrame)
std::pair< Range, int > rangeAndCols_[phase1PixelTopology::numberOfModules]
constexpr float decodePed(unsigned int ped) const
unsigned int numberOfRowsAveragedOver_
std::pair< float, float > getPedAndGain(uint32_t moduleInd, int col, int row, bool &isDeadColumn, bool &isNoisyColumn) const
unsigned int nBinsToUseForEncoding_