CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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<uint64_t, 2> >&);
14  void compressSingle(const uint64_t value, uint32_t& compressedCode, uint64_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_;
23 };
24 
25 #endif
HGCalVFECompressionImpl(const edm::ParameterSet &conf)
void compressSingle(const uint64_t value, uint32_t &compressedCode, uint64_t &compressedValue) const
Definition: value.py:1
unsigned long long uint64_t
Definition: Time.h:13
void compress(const std::unordered_map< uint32_t, uint32_t > &, std::unordered_map< uint32_t, std::array< uint64_t, 2 > > &)