CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HGCalVFECompressionImpl.h
Go to the documentation of this file.
1 #ifndef __L1Trigger_L1THGCal_HGCalVFECompressionImpl_h__
2 #define __L1Trigger_L1THGCal_HGCalVFECompressionImpl_h__
3 
5 
6 #include <unordered_map>
7 #include <array>
8 
10 public:
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(const edm::ParameterSet &conf)
void compress(const std::unordered_map< uint32_t, uint32_t > &, std::unordered_map< uint32_t, std::array< uint32_t, 2 > > &)
void compressSingle(const uint32_t value, uint32_t &compressedCode, uint32_t &compressedValue) const