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
Utilities
plugins
FRDStreamSource.h
Go to the documentation of this file.
1
#ifndef EventFilter_Utilities_FRDStreamSource_h
2
#define EventFilter_Utilities_FRDStreamSource_h
3
4
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
5
#include "
FWCore/Framework/interface/Event.h
"
6
#include "
FWCore/Framework/interface/LuminosityBlock.h
"
7
#include "
FWCore/Framework/interface/Run.h
"
8
#include "
FWCore/Framework/interface/InputSourceMacros.h
"
9
10
#include "
FWCore/Sources/interface/ProducerSourceFromFiles.h
"
11
12
#include "
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
"
13
#include "
DataFormats/Provenance/interface/Timestamp.h
"
14
15
#include <unistd.h>
16
#include <string>
17
#include <vector>
18
#include <fstream>
19
20
class
FRDStreamSource
:
public
edm::ProducerSourceFromFiles
{
21
public
:
22
// construction/destruction
23
FRDStreamSource
(
edm::ParameterSet
const
&
pset
,
edm::InputSourceDescription
const
&
desc
);
24
~FRDStreamSource
()
override
{};
25
26
private
:
27
// member functions
28
bool
setRunAndEventInfo
(
edm::EventID
&
id
,
29
edm::TimeValue_t
& theTime,
30
edm::EventAuxiliary::ExperimentType
& eType)
override
;
31
void
produce
(
edm::Event
&
e
)
override
;
32
33
bool
openFile
(
const
std::string
&
fileName
);
34
35
private
:
36
// member data
37
std::vector<std::string>::const_iterator
itFileName_
;
38
std::vector<std::string>::const_iterator
endFileName_
;
39
std::ifstream
fin_
;
40
std::unique_ptr<FEDRawDataCollection>
rawData_
;
41
std::vector<char>
buffer_
;
42
const
bool
verifyAdler32_
;
43
const
bool
verifyChecksum_
;
44
const
bool
useL1EventID_
;
45
uint16_t
detectedFRDversion_
= 0;
46
uint16_t
flags_
= 0;
47
};
48
49
#endif // EventFilter_Utilities_FRDStreamSource_h
LuminosityBlock.h
FRDStreamSource::fin_
std::ifstream fin_
Definition:
FRDStreamSource.h:39
FRDStreamSource::FRDStreamSource
FRDStreamSource(edm::ParameterSet const &pset, edm::InputSourceDescription const &desc)
Definition:
FRDStreamSource.cc:20
FRDStreamSource::detectedFRDversion_
uint16_t detectedFRDversion_
Definition:
FRDStreamSource.h:45
edm::InputSourceDescription
Definition:
InputSourceDescription.h:21
FRDStreamSource::useL1EventID_
const bool useL1EventID_
Definition:
FRDStreamSource.h:44
FRDStreamSource::produce
void produce(edm::Event &e) override
Definition:
FRDStreamSource.cc:175
FRDStreamSource::openFile
bool openFile(const std::string &fileName)
Definition:
FRDStreamSource.cc:177
MillePedeFileConverter_cfg.fileName
fileName
Definition:
MillePedeFileConverter_cfg.py:32
FRDStreamSource::setRunAndEventInfo
bool setRunAndEventInfo(edm::EventID &id, edm::TimeValue_t &theTime, edm::EventAuxiliary::ExperimentType &eType) override
Definition:
FRDStreamSource.cc:31
FRDStreamSource::itFileName_
std::vector< std::string >::const_iterator itFileName_
Definition:
FRDStreamSource.h:37
FRDStreamSource::verifyChecksum_
const bool verifyChecksum_
Definition:
FRDStreamSource.h:43
FRDStreamSource::~FRDStreamSource
~FRDStreamSource() override
Definition:
FRDStreamSource.h:24
Run.h
FRDStreamSource
Definition:
FRDStreamSource.h:20
FRDStreamSource::flags_
uint16_t flags_
Definition:
FRDStreamSource.h:46
edm::ParameterSet
Definition:
ParameterSet.h:47
Timestamp.h
Event.h
FRDStreamSource::verifyAdler32_
const bool verifyAdler32_
Definition:
FRDStreamSource.h:42
FEDRawDataCollection.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
InputSourceMacros.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
Frameworkfwd.h
edm::ProducerSourceFromFiles
Definition:
ProducerSourceFromFiles.h:17
edm::EventAuxiliary::ExperimentType
ExperimentType
Definition:
EventAuxiliary.h:18
FRDStreamSource::endFileName_
std::vector< std::string >::const_iterator endFileName_
Definition:
FRDStreamSource.h:38
FRDStreamSource::buffer_
std::vector< char > buffer_
Definition:
FRDStreamSource.h:41
edm::EventID
Definition:
EventID.h:31
edm::Event
Definition:
Event.h:73
ProducerSourceFromFiles.h
edm::TimeValue_t
unsigned long long TimeValue_t
Definition:
Timestamp.h:28
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
FRDStreamSource::rawData_
std::unique_ptr< FEDRawDataCollection > rawData_
Definition:
FRDStreamSource.h:40
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16