L1Trigger
L1THGCal
interface
HGCalVFECompressionImpl.h
Go to the documentation of this file.
1
#ifndef __L1Trigger_L1THGCal_HGCalVFECompressionImpl_h__
2
#define __L1Trigger_L1THGCal_HGCalVFECompressionImpl_h__
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
6
#include <unordered_map>
7
#include <array>
8
9
class
HGCalVFECompressionImpl
{
10
public
:
11
HGCalVFECompressionImpl
(
const
edm::ParameterSet
& conf);
12
13
void
compress
(
const
std::unordered_map<uint32_t, uint32_t>&, std::unordered_map<uint32_t, std::array<uint32_t, 2> >&);
14
void
compressSingle
(
const
uint32_t
value
, uint32_t& compressedCode, uint32_t& compressedValue)
const
;
15
16
private
:
17
uint32_t
exponentBits_
;
18
uint32_t
mantissaBits_
;
19
uint32_t
truncationBits_
;
20
bool
rounding_
;
21
uint32_t
saturationCode_
;
22
uint32_t
saturationValue_
;
23
};
24
25
#endif
HGCalVFECompressionImpl::mantissaBits_
uint32_t mantissaBits_
Definition:
HGCalVFECompressionImpl.h:18
HGCalVFECompressionImpl::HGCalVFECompressionImpl
HGCalVFECompressionImpl(const edm::ParameterSet &conf)
Definition:
HGCalVFECompressionImpl.cc:5
ParameterSet.h
HGCalVFECompressionImpl::compressSingle
void compressSingle(const uint32_t value, uint32_t &compressedCode, uint32_t &compressedValue) const
Definition:
HGCalVFECompressionImpl.cc:19
HGCalVFECompressionImpl::compress
void compress(const std::unordered_map< uint32_t, uint32_t > &, std::unordered_map< uint32_t, std::array< uint32_t, 2 > > &)
Definition:
HGCalVFECompressionImpl.cc:71
HGCalVFECompressionImpl::saturationValue_
uint32_t saturationValue_
Definition:
HGCalVFECompressionImpl.h:22
value
Definition:
value.py:1
HGCalVFECompressionImpl::truncationBits_
uint32_t truncationBits_
Definition:
HGCalVFECompressionImpl.h:19
HGCalVFECompressionImpl
Definition:
HGCalVFECompressionImpl.h:9
HGCalVFECompressionImpl::rounding_
bool rounding_
Definition:
HGCalVFECompressionImpl.h:20
edm::ParameterSet
Definition:
ParameterSet.h:47
HGCalVFECompressionImpl::saturationCode_
uint32_t saturationCode_
Definition:
HGCalVFECompressionImpl.h:21
HGCalVFECompressionImpl::exponentBits_
uint32_t exponentBits_
Definition:
HGCalVFECompressionImpl.h:17
Generated for CMSSW Reference Manual by
1.8.14