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 {
40 unsigned int lengthOfColumnData = (
range.second -
range.first) / nCols;
41 unsigned int lengthOfAveragedDataInEachColumn = 2;
44 auto offset =
range.first + col * lengthOfColumnData + lengthOfAveragedDataInEachColumn * numberOfDataBlocksToSkip;
74 #endif // CondFormats_SiPixelObjects_interface_SiPixelGainForHLTonGPU_h
constexpr float decodeGain(unsigned int gain) const
DecodingStructure * v_pedestals_
std::pair< uint32_t, uint32_t > Range
const uint16_t range(const Frame &aFrame)
constexpr float decodePed(unsigned int ped) const
constexpr uint16_t maxNumModules
unsigned int numberOfRowsAveragedOver_
std::pair< float, float > getPedAndGain(uint32_t moduleInd, int col, int row, bool &isDeadColumn, bool &isNoisyColumn) const
std::pair< Range, int > rangeAndCols_[gpuClustering::maxNumModules]
unsigned int nBinsToUseForEncoding_