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
DecodingStructure * v_pedestals_
std::pair< uint32_t, uint32_t > Range
constexpr uint16_t numberOfModules
constexpr float decodePed(unsigned int ped) const
std::pair< Range, int > rangeAndCols_[phase1PixelTopology::numberOfModules]
unsigned int numberOfRowsAveragedOver_
std::pair< float, float > getPedAndGain(uint32_t moduleInd, int col, int row, bool &isDeadColumn, bool &isNoisyColumn) const
constexpr float decodeGain(unsigned int gain) const
unsigned int nBinsToUseForEncoding_