Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
EventFilter
DTRawToDigi
plugins
DTuROSRawToDigi.h
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
12
//
13
//--------------------------------------------------
14
#ifndef DTRawToDigi_DTuROSRawToDigi_h
15
#define DTRawToDigi_DTuROSRawToDigi_h
16
17
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
18
#include "
DataFormats/Common/interface/Handle.h
"
19
#include "
FWCore/Framework/interface/ESHandle.h
"
20
#include "
FWCore/Framework/interface/Event.h
"
21
#include "
FWCore/Framework/interface/EventSetup.h
"
22
#include "
DataFormats/DTDigi/interface/DTDigiCollection.h
"
23
#include "
DataFormats/MuonDetId/interface/DTLayerId.h
"
24
25
#include <
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
>
26
#include <
DataFormats/FEDRawData/interface/FEDNumbering.h
>
27
#include <
FWCore/Framework/interface/stream/EDProducer.h
>
28
#include <
FWCore/ParameterSet/interface/ParameterSet.h
>
29
#include <
FWCore/Utilities/interface/InputTag.h
>
30
31
#include <string>
32
33
class
DTReadOutMapping
;
34
class
DTuROSFEDData
;
35
36
class
DTuROSRawToDigi
:
public
edm::stream::EDProducer
<> {
37
public
:
39
DTuROSRawToDigi
(
const
edm::ParameterSet
&
pset
);
40
42
~DTuROSRawToDigi
()
override
;
43
45
void
produce
(
edm::Event
&
e
,
const
edm::EventSetup
&
c
)
override
;
46
48
bool
fillRawData
(
edm::Event
&
e
,
const
edm::EventSetup
&
c
,
DTDigiCollection
& digis, std::vector<DTuROSFEDData>& words);
49
50
private
:
51
edm::InputTag
DTuROSInputTag_
;
52
53
bool
debug_
;
54
55
int
nfeds_
;
56
57
std::vector<int>
feds_
;
58
59
unsigned
char
*
lineFED
;
60
61
// Operations
62
63
//process data
64
65
void
process
(
int
DTuROSFED,
66
edm::Handle<FEDRawDataCollection>
data
,
67
edm::ESHandle<DTReadOutMapping>
mapping
,
68
DTDigiCollection
& digis,
69
DTuROSFEDData
& fwords);
70
71
// utilities
72
inline
void
readline
(
int
&
lines
,
long
& dataWord) {
73
dataWord = *((
long
*)
lineFED
);
74
lineFED
+= 8;
75
++
lines
;
76
}
77
78
int
theDDU
(
int
crate,
int
slot,
int
link
,
bool
tenDDU);
79
80
int
theROS
(
int
slot,
int
link
);
81
82
int
theROB
(
int
slot,
int
link
);
83
84
edm::InputTag
getDTuROSInputTag
() {
return
DTuROSInputTag_
; }
85
86
edm::EDGetTokenT<FEDRawDataCollection>
Raw_token
;
87
};
88
#endif
FEDNumbering.h
DTuROSRawToDigi::lineFED
unsigned char * lineFED
Definition:
DTuROSRawToDigi.h:59
Handle.h
DTuROSRawToDigi::~DTuROSRawToDigi
~DTuROSRawToDigi() override
Destructor.
Definition:
DTuROSRawToDigi.cc:45
DTuROSRawToDigi::DTuROSInputTag_
edm::InputTag DTuROSInputTag_
Definition:
DTuROSRawToDigi.h:51
MainPageGenerator.link
link
Definition:
MainPageGenerator.py:271
ESHandle.h
DTuROSRawToDigi::fillRawData
bool fillRawData(edm::Event &e, const edm::EventSetup &c, DTDigiCollection &digis, std::vector< DTuROSFEDData > &words)
Generate and fill FED raw data for a full event.
Definition:
DTuROSRawToDigi.cc:61
DTLayerId.h
edm::EDGetTokenT< FEDRawDataCollection >
EDProducer.h
edm::Handle
Definition:
AssociativeIterator.h:50
DTuROSRawToDigi::theROB
int theROB(int slot, int link)
Definition:
DTuROSRawToDigi.cc:419
DTuROSRawToDigi::feds_
std::vector< int > feds_
Definition:
DTuROSRawToDigi.h:57
DTuROSRawToDigi::nfeds_
int nfeds_
Definition:
DTuROSRawToDigi.h:55
DTuROSRawToDigi::Raw_token
edm::EDGetTokenT< FEDRawDataCollection > Raw_token
Definition:
DTuROSRawToDigi.h:86
DTuROSRawToDigi::getDTuROSInputTag
edm::InputTag getDTuROSInputTag()
Definition:
DTuROSRawToDigi.h:84
edm::ESHandle< DTReadOutMapping >
DTuROSRawToDigi::theDDU
int theDDU(int crate, int slot, int link, bool tenDDU)
Definition:
DTuROSRawToDigi.cc:379
DTuROSRawToDigi::readline
void readline(int &lines, long &dataWord)
Definition:
DTuROSRawToDigi.h:72
edm::ParameterSet
Definition:
ParameterSet.h:36
groupFilesInBlocks.lines
lines
Definition:
groupFilesInBlocks.py:95
Event.h
DTuROSRawToDigi
Definition:
DTuROSRawToDigi.h:36
DTuROSRawToDigi::theROS
int theROS(int slot, int link)
Definition:
DTuROSRawToDigi.cc:411
DTDigiCollection
DTuROSFEDData
Definition:
DTuROSControlData.h:103
FEDRawDataCollection.h
edm::stream::EDProducer
Definition:
EDProducer.h:38
edm::EventSetup
Definition:
EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
InputTag.h
DTuROSRawToDigi::debug_
bool debug_
Definition:
DTuROSRawToDigi.h:53
DTuROSRawToDigi::produce
void produce(edm::Event &e, const edm::EventSetup &c) override
Produce digis out of raw data.
Definition:
DTuROSRawToDigi.cc:47
DTuROSRawToDigi::DTuROSRawToDigi
DTuROSRawToDigi(const edm::ParameterSet &pset)
Constructor.
Definition:
DTuROSRawToDigi.cc:29
EventSetup.h
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:79
ConsumesCollector.h
DTDigiCollection.h
ParameterSet.h
DTuROSRawToDigi::process
void process(int DTuROSFED, edm::Handle< FEDRawDataCollection > data, edm::ESHandle< DTReadOutMapping > mapping, DTDigiCollection &digis, DTuROSFEDData &fwords)
Definition:
DTuROSRawToDigi.cc:81
edm::Event
Definition:
Event.h:73
taus_updatedMVAIds_cff.mapping
mapping
Definition:
taus_updatedMVAIds_cff.py:28
edm::InputTag
Definition:
InputTag.h:15
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
DTReadOutMapping
Definition:
DTReadOutMapping.h:62
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16