CMS 3D CMS Logo

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 
21  void setDataPayload(data_type&);
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
HGCal64BitRandomDataPayload data_type
bool decode(bool &, std::string const &)
Definition: types.cc:62
unsigned long long uint64_t
Definition: Time.h:15
def encode(args, files)
HGCal64BitRandomCodecImpl(const edm::ParameterSet &conf)