Main Page
Namespaces
Classes
Package Documentation
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
21
22
23
class
ESDigiToRaw
;
24
25
class
ESUnpacker
{
26
27
public
:
28
29
typedef
unsigned
int
Word32
;
30
typedef
unsigned
long
long
Word64
;
31
32
ESUnpacker
(
const
edm::ParameterSet
& ps);
33
~ESUnpacker
();
34
35
void
interpretRawData
(
int
fedId
,
const
FEDRawData
& rawData,
ESRawDataCollection
& dccs,
ESLocalRawDataCollection
& kchips,
ESDigiCollection
& digis);
36
void
word2digi
(
int
kchip,
int
kPACE[4],
const
Word64 & word,
ESDigiCollection
& digis);
37
38
void
setRunNumber
(
int
i
) {
run_number_
=
i
;};
39
void
setOrbitNumber
(
int
i
) {
orbit_number_
=
i
;};
40
void
setBX
(
int
i
) {
bx_
=
i
;};
41
void
setLV1
(
int
i
) {
lv1_
=
i
;};
42
void
setTriggerType
(
int
i
) {
trgtype_
=
i
;};
43
44
private
:
45
46
const
edm::ParameterSet
pset_
;
47
48
int
fedId_
;
49
int
run_number_
;
50
int
orbit_number_
;
51
int
bx_
;
52
int
lv1_
;
53
int
dac_
;
54
int
gain_
;
55
int
precision_
;
56
int
runtype_
;
57
int
seqtype_
;
58
int
trgtype_
;
59
int
vminor_
;
60
int
vmajor_
;
61
int
optoRX0_
;
62
int
optoRX1_
;
63
int
optoRX2_
;
64
int
FEch_
[36];
65
66
bool
debug_
;
67
edm::FileInPath
lookup_
;
68
69
std::string
print
(
const
Word64 & word)
const
;
70
71
protected
:
72
73
Word64
m1
,
m2
,
m4
,
m5
,
m6
,
m8
,
m12
,
m16
,
m32
;
74
75
int
zside_
[4288][4],
pl_
[4288][4],
x_
[4288][4],
y_
[4288][4];
76
77
};
78
79
#endif
ESUnpacker::runtype_
int runtype_
Definition:
ESUnpacker.h:56
ESUnpacker::vmajor_
int vmajor_
Definition:
ESUnpacker.h:60
ESUnpacker::lv1_
int lv1_
Definition:
ESUnpacker.h:52
ESUnpacker::debug_
bool debug_
Definition:
ESUnpacker.h:66
ESUnpacker::run_number_
int run_number_
Definition:
ESUnpacker.h:49
ESUnpacker::lookup_
edm::FileInPath lookup_
Definition:
ESUnpacker.h:67
mps_fire.i
i
Definition:
mps_fire.py:338
ESUnpacker::setOrbitNumber
void setOrbitNumber(int i)
Definition:
ESUnpacker.h:39
edm::SortedCollection
Definition:
SortedCollection.h:50
ESUnpacker::fedId_
int fedId_
Definition:
ESUnpacker.h:48
ESUnpacker::optoRX0_
int optoRX0_
Definition:
ESUnpacker.h:61
ESUnpacker::y_
int y_[4288][4]
Definition:
ESUnpacker.h:75
ESUnpacker::setBX
void setBX(int i)
Definition:
ESUnpacker.h:40
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ESUnpacker::setRunNumber
void setRunNumber(int i)
Definition:
ESUnpacker.h:38
ESUnpacker::Word32
unsigned int Word32
Definition:
ESUnpacker.h:29
ESUnpacker::m5
Word64 m5
Definition:
ESUnpacker.h:73
FEDRawDataCollection.h
ESUnpacker::x_
int x_[4288][4]
Definition:
ESUnpacker.h:75
ESDataFrame.h
ESUnpacker::m12
Word64 m12
Definition:
ESUnpacker.h:73
ESUnpacker::setTriggerType
void setTriggerType(int i)
Definition:
ESUnpacker.h:42
ESUnpacker
Definition:
ESUnpacker.h:25
ParameterSet.h
ESUnpacker::ESUnpacker
ESUnpacker(const edm::ParameterSet &ps)
Definition:
ESUnpacker.cc:10
ESDCCHeaderBlock.h
ESUnpacker::zside_
int zside_[4288][4]
Definition:
ESUnpacker.h:75
ESKCHIPBlock.h
ESUnpacker::seqtype_
int seqtype_
Definition:
ESUnpacker.h:57
ESUnpacker::optoRX2_
int optoRX2_
Definition:
ESUnpacker.h:63
ESUnpacker::bx_
int bx_
Definition:
ESUnpacker.h:51
ESUnpacker::setLV1
void setLV1(int i)
Definition:
ESUnpacker.h:41
ESUnpacker::m1
Word64 m1
Definition:
ESUnpacker.h:73
FEDRawData
Definition:
FEDRawData.h:20
ESUnpacker::vminor_
int vminor_
Definition:
ESUnpacker.h:59
ESUnpacker::~ESUnpacker
~ESUnpacker()
Definition:
ESUnpacker.cc:50
ESUnpacker::gain_
int gain_
Definition:
ESUnpacker.h:54
FileInPath.h
ESUnpacker::m32
Word64 m32
Definition:
ESUnpacker.h:73
ESUnpacker::m2
Word64 m2
Definition:
ESUnpacker.h:73
EcalDigiCollections.h
ESUnpacker::optoRX1_
int optoRX1_
Definition:
ESUnpacker.h:62
ESUnpacker::interpretRawData
void interpretRawData(int fedId, const FEDRawData &rawData, ESRawDataCollection &dccs, ESLocalRawDataCollection &kchips, ESDigiCollection &digis)
Definition:
ESUnpacker.cc:53
ESDigiToRaw
Definition:
ESDigiToRaw.h:20
edm::FileInPath
Definition:
FileInPath.h:64
ESUnpacker::word2digi
void word2digi(int kchip, int kPACE[4], const Word64 &word, ESDigiCollection &digis)
Definition:
ESUnpacker.cc:271
ESUnpacker::precision_
int precision_
Definition:
ESUnpacker.h:55
ESUnpacker::print
std::string print(const Word64 &word) const
Definition:
ESUnpacker.cc:318
ESUnpacker::dac_
int dac_
Definition:
ESUnpacker.h:53
ESUnpacker::pl_
int pl_[4288][4]
Definition:
ESUnpacker.h:75
ESUnpacker::m8
Word64 m8
Definition:
ESUnpacker.h:73
ESUnpacker::FEch_
int FEch_[36]
Definition:
ESUnpacker.h:64
FEDRawData.h
ESUnpacker::m6
Word64 m6
Definition:
ESUnpacker.h:73
edm::ParameterSet
Definition:
ParameterSet.h:36
ESUnpacker::pset_
const edm::ParameterSet pset_
Definition:
ESUnpacker.h:42
EcalRawDataCollections.h
ESUnpacker::m16
Word64 m16
Definition:
ESUnpacker.h:73
ESUnpacker::Word64
unsigned long long Word64
Definition:
ESUnpacker.h:30
l1t::stage2::layer2::fedId
const signed int fedId
Definition:
L1TStage2Layer2Constants.cc:4
ESUnpacker::orbit_number_
int orbit_number_
Definition:
ESUnpacker.h:50
ESUnpacker::trgtype_
int trgtype_
Definition:
ESUnpacker.h:58
ESDigiCollection
Definition:
EcalDigiCollections.h:63
ESUnpacker::m4
Word64 m4
Definition:
ESUnpacker.h:73
Generated for CMSSW Reference Manual by
1.8.11