test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HGCal64BitRandomCodecImpl.h
Go to the documentation of this file.
1 #ifndef __L1Trigger_L1THGCal_HGCal64BitRandomCodecImpl_h__
2 #define __L1Trigger_L1THGCal_HGCal64BitRandomCodecImpl_h__
3 
5 #include "TRandom3.h"
6 
9  void reset() { memset(&payload,0,sizeof(uint64_t)); }
10 };
11 
12 
14 public:
16 
18  rand_.SetSeed(0);
19  }
20 
22  std::vector<bool> encode(const data_type&) const ;
23  data_type decode(const std::vector<bool>&) const;
24 
25 private:
26  TRandom3 rand_;
27 
28 };
29 
30 #endif
std::vector< bool > encode(const data_type &) const
HGCal64BitRandomDataPayload data_type
data_type decode(const std::vector< bool > &) const
unsigned long long uint64_t
Definition: Time.h:15
HGCal64BitRandomCodecImpl(const edm::ParameterSet &conf)