src
EventFilter
ESRawToDigi
interface
ESUnpacker.h
Go to the documentation of this file.
1
#ifndef EventFilter_ESRawToDigi_ESUnpacker_h
2
#define EventFilter_ESRawToDigi_ESUnpacker_h
3
4
#include <iostream>
5
#include <vector>
6
#include <bitset>
7
#include <sstream>
8
#include <map>
9
10
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
11
#include "
DataFormats/EcalDigi/interface/ESDataFrame.h
"
12
#include "
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
"
13
#include "
DataFormats/FEDRawData/interface/FEDRawData.h
"
14
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
15
#include "
FWCore/ParameterSet/interface/FileInPath.h
"
16
#include "
DataFormats/EcalRawData/interface/ESDCCHeaderBlock.h
"
17
#include "
DataFormats/EcalRawData/interface/ESKCHIPBlock.h
"
18
#include "
DataFormats/EcalRawData/interface/EcalRawDataCollections.h
"
19
20
class
ESDigiToRaw
;
21
22
class
ESUnpacker
{
23
public
:
24
typedef
unsigned
int
Word32
;
25
typedef
unsigned
long
long
Word64
;
26
27
ESUnpacker
(
const
edm::ParameterSet
& ps);
28
~ESUnpacker
();
29
30
void
interpretRawData
(
int
fedId
,
31
const
FEDRawData
&
rawData
,
32
ESRawDataCollection
& dccs,
33
ESLocalRawDataCollection
& kchips,
34
ESDigiCollection
& digis);
35
void
word2digi
(
int
kchip,
int
kPACE[4],
const
Word64
&
word
,
ESDigiCollection
& digis);
36
37
void
setRunNumber
(
int
i
) {
run_number_
=
i
; };
38
void
setOrbitNumber
(
int
i
) {
orbit_number_
=
i
; };
39
void
setBX
(
int
i
) {
bx_
=
i
; };
40
void
setLV1
(
int
i
) {
lv1_
=
i
; };
41
void
setTriggerType
(
int
i
) {
trgtype_
=
i
; };
42
43
private
:
44
const
edm::ParameterSet
pset_
;
45
46
int
fedId_
;
47
int
run_number_
;
48
int
orbit_number_
;
49
int
bx_
;
50
int
lv1_
;
51
int
dac_
;
52
int
gain_
;
53
int
precision_
;
54
int
runtype_
;
55
int
seqtype_
;
56
int
trgtype_
;
57
int
vminor_
;
58
int
vmajor_
;
59
int
optoRX0_
;
60
int
optoRX1_
;
61
int
optoRX2_
;
62
int
FEch_
[36];
63
64
bool
debug_
;
65
edm::FileInPath
lookup_
;
66
67
std::string
print
(
const
Word64
&
word
)
const
;
68
69
protected
:
70
Word64
m1
,
m2
,
m4
,
m5
,
m6
,
m8
,
m12
,
m16
,
m32
;
71
72
int
zside_
[4288][4],
pl_
[4288][4],
x_
[4288][4],
y_
[4288][4];
73
};
74
75
#endif
ESUnpacker::runtype_
int runtype_
Definition:
ESUnpacker.h:54
l1tstage2_dqm_sourceclient-live_cfg.rawData
rawData
Definition:
l1tstage2_dqm_sourceclient-live_cfg.py:163
ESUnpacker::vmajor_
int vmajor_
Definition:
ESUnpacker.h:58
ESUnpacker::lv1_
int lv1_
Definition:
ESUnpacker.h:50
ESUnpacker::debug_
bool debug_
Definition:
ESUnpacker.h:64
ESUnpacker::run_number_
int run_number_
Definition:
ESUnpacker.h:47
ESUnpacker::lookup_
edm::FileInPath lookup_
Definition:
ESUnpacker.h:65
mps_fire.i
i
Definition:
mps_fire.py:428
ESUnpacker::setOrbitNumber
void setOrbitNumber(int i)
Definition:
ESUnpacker.h:38
edm::SortedCollection
Definition:
SortedCollection.h:49
ESUnpacker::fedId_
int fedId_
Definition:
ESUnpacker.h:46
ESUnpacker::optoRX0_
int optoRX0_
Definition:
ESUnpacker.h:59
ESUnpacker::y_
int y_[4288][4]
Definition:
ESUnpacker.h:72
ESUnpacker::setBX
void setBX(int i)
Definition:
ESUnpacker.h:39
ESUnpacker::setRunNumber
void setRunNumber(int i)
Definition:
ESUnpacker.h:37
ESUnpacker::Word32
unsigned int Word32
Definition:
ESUnpacker.h:24
ESUnpacker::m5
Word64 m5
Definition:
ESUnpacker.h:70
FEDRawDataCollection.h
ESUnpacker::x_
int x_[4288][4]
Definition:
ESUnpacker.h:72
ESDataFrame.h
ESUnpacker::m12
Word64 m12
Definition:
ESUnpacker.h:70
ESUnpacker::setTriggerType
void setTriggerType(int i)
Definition:
ESUnpacker.h:41
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ESUnpacker
Definition:
ESUnpacker.h:22
FileInPath.h
ParameterSet.h
ESUnpacker::ESUnpacker
ESUnpacker(const edm::ParameterSet &ps)
Definition:
ESUnpacker.cc:10
ESDCCHeaderBlock.h
ESUnpacker::zside_
int zside_[4288][4]
Definition:
ESUnpacker.h:72
word
uint64_t word
Definition:
CTPPSTotemDataFormatter.cc:29
ESKCHIPBlock.h
ESUnpacker::seqtype_
int seqtype_
Definition:
ESUnpacker.h:55
ESUnpacker::optoRX2_
int optoRX2_
Definition:
ESUnpacker.h:61
ESUnpacker::bx_
int bx_
Definition:
ESUnpacker.h:49
ESUnpacker::setLV1
void setLV1(int i)
Definition:
ESUnpacker.h:40
ESUnpacker::m1
Word64 m1
Definition:
ESUnpacker.h:70
FEDRawData
Definition:
FEDRawData.h:19
ESUnpacker::vminor_
int vminor_
Definition:
ESUnpacker.h:57
ESUnpacker::~ESUnpacker
~ESUnpacker()
Definition:
ESUnpacker.cc:47
ESUnpacker::gain_
int gain_
Definition:
ESUnpacker.h:52
ESUnpacker::m32
Word64 m32
Definition:
ESUnpacker.h:70
ESUnpacker::m2
Word64 m2
Definition:
ESUnpacker.h:70
EcalDigiCollections.h
ESUnpacker::optoRX1_
int optoRX1_
Definition:
ESUnpacker.h:60
ESUnpacker::interpretRawData
void interpretRawData(int fedId, const FEDRawData &rawData, ESRawDataCollection &dccs, ESLocalRawDataCollection &kchips, ESDigiCollection &digis)
Definition:
ESUnpacker.cc:49
ESDigiToRaw
Definition:
ESDigiToRaw.h:20
edm::FileInPath
Definition:
FileInPath.h:61
ESUnpacker::word2digi
void word2digi(int kchip, int kPACE[4], const Word64 &word, ESDigiCollection &digis)
Definition:
ESUnpacker.cc:292
ESUnpacker::precision_
int precision_
Definition:
ESUnpacker.h:53
ESUnpacker::dac_
int dac_
Definition:
ESUnpacker.h:51
ESUnpacker::pl_
int pl_[4288][4]
Definition:
ESUnpacker.h:72
ESUnpacker::m8
Word64 m8
Definition:
ESUnpacker.h:70
ESUnpacker::FEch_
int FEch_[36]
Definition:
ESUnpacker.h:62
FEDRawData.h
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition:
l1tstage2_dqm_sourceclient-live_cfg.py:89
ESUnpacker::m6
Word64 m6
Definition:
ESUnpacker.h:70
edm::ParameterSet
Definition:
ParameterSet.h:47
ESUnpacker::pset_
const edm::ParameterSet pset_
Definition:
ESUnpacker.h:41
EcalRawDataCollections.h
ESUnpacker::m16
Word64 m16
Definition:
ESUnpacker.h:70
ESUnpacker::Word64
unsigned long long Word64
Definition:
ESUnpacker.h:25
ESUnpacker::orbit_number_
int orbit_number_
Definition:
ESUnpacker.h:48
ESUnpacker::trgtype_
int trgtype_
Definition:
ESUnpacker.h:56
ESDigiCollection
Definition:
EcalDigiCollections.h:82
ESUnpacker::m4
Word64 m4
Definition:
ESUnpacker.h:70
ESUnpacker::print
std::string print(const Word64 &word) const
Definition:
ESUnpacker.cc:346
Generated for CMSSW Reference Manual by
1.8.14