Main Page
Namespaces
Classes
Package Documentation
L1Trigger
L1THGCal
interface
fe_codecs
HGCal64BitRandomCodecImpl.h
Go to the documentation of this file.
1
#ifndef __L1Trigger_L1THGCal_HGCal64BitRandomCodecImpl_h__
2
#define __L1Trigger_L1THGCal_HGCal64BitRandomCodecImpl_h__
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "TRandom3.h"
6
7
struct
HGCal64BitRandomDataPayload
{
8
uint64_t
payload
;
9
void
reset
() { memset(&payload,0,
sizeof
(
uint64_t
)); }
10
};
11
12
13
class
HGCal64BitRandomCodecImpl
{
14
public
:
15
typedef
HGCal64BitRandomDataPayload
data_type
;
16
17
HGCal64BitRandomCodecImpl
(
const
edm::ParameterSet
& conf){
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::payload
uint64_t payload
Definition:
HGCal64BitRandomCodecImpl.h:8
HGCal64BitRandomDataPayload
Definition:
HGCal64BitRandomCodecImpl.h:7
ParameterSet.h
HGCal64BitRandomCodecImpl::data_type
HGCal64BitRandomDataPayload data_type
Definition:
HGCal64BitRandomCodecImpl.h:15
edm::decode
bool decode(bool &, std::string const &)
Definition:
types.cc:62
HGCal64BitRandomDataPayload::reset
void reset()
Definition:
HGCal64BitRandomCodecImpl.h:9
HGCal64BitRandomCodecImpl::rand_
TRandom3 rand_
Definition:
HGCal64BitRandomCodecImpl.h:26
HGCal64BitRandomCodecImpl
Definition:
HGCal64BitRandomCodecImpl.h:13
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:15
alcaDQMUpload.encode
def encode(args, files)
Definition:
alcaDQMUpload.py:31
edm::ParameterSet
Definition:
ParameterSet.h:36
HGCal64BitRandomCodecImpl::HGCal64BitRandomCodecImpl
HGCal64BitRandomCodecImpl(const edm::ParameterSet &conf)
Definition:
HGCal64BitRandomCodecImpl.h:17
Generated for CMSSW Reference Manual by
1.8.11