FWCore
Sources
interface
RawInputSource.h
Go to the documentation of this file.
1
#ifndef FWCore_Sources_RawInputSource_h
2
#define FWCore_Sources_RawInputSource_h
3
4
/*----------------------------------------------------------------------
5
----------------------------------------------------------------------*/
6
7
#include <memory>
8
#include <utility>
9
10
#include "
DataFormats/Provenance/interface/EventID.h
"
11
#include "
FWCore/Framework/interface/InputSource.h
"
12
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
13
14
namespace
edm
{
15
class
ParameterSet
;
16
class
Timestamp
;
17
class
RawInputSource
:
public
InputSource
{
18
public
:
19
explicit
RawInputSource
(
ParameterSet
const
&
pset
,
InputSourceDescription
const
&
desc
);
20
~RawInputSource
()
override
;
21
static
void
fillDescription
(
ParameterSetDescription
&
description
);
22
23
//Next::kFile is only needed if the ProductRegistry must be updated
24
enum class
Next
{
kEvent
,
kFile
,
kStop
};
25
26
protected
:
27
void
makeEvent
(
EventPrincipal
& eventPrincipal,
EventAuxiliary
const
& eventAuxiliary);
28
virtual
Next
checkNext
() = 0;
29
virtual
void
read
(
EventPrincipal
& eventPrincipal) = 0;
30
void
setInputFileTransitionsEachEvent
() {
inputFileTransitionsEachEvent_
=
true
; }
31
32
private
:
33
void
readEvent_
(
EventPrincipal
& eventPrincipal)
override
;
34
std::shared_ptr<LuminosityBlockAuxiliary>
readLuminosityBlockAuxiliary_
()
override
;
35
std::shared_ptr<RunAuxiliary>
readRunAuxiliary_
()
override
;
36
virtual
void
reset_
();
37
void
rewind_
()
override
;
38
ItemType
getNextItemType
()
override
;
39
void
closeFile_
() final;
40
std
::shared_ptr<
FileBlock
>
readFile_
() final;
41
virtual
void
genuineCloseFile
() {}
42
virtual
void
genuineReadFile
() {}
43
44
bool
inputFileTransitionsEachEvent_
;
45
bool
fakeInputFileTransition_
;
46
};
47
}
// namespace edm
48
#endif
edm::RawInputSource::genuineCloseFile
virtual void genuineCloseFile()
Definition:
RawInputSource.h:41
edm::RawInputSource::Next::kEvent
edm::FileBlock
Definition:
FileBlock.h:22
edm::RawInputSource::readEvent_
void readEvent_(EventPrincipal &eventPrincipal) override
Definition:
RawInputSource.cc:43
edm::RawInputSource::genuineReadFile
virtual void genuineReadFile()
Definition:
RawInputSource.h:42
edm::RawInputSource::readLuminosityBlockAuxiliary_
std::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
Definition:
RawInputSource.cc:35
EventID.h
edm::RawInputSource
Definition:
RawInputSource.h:17
ParameterSet
Definition:
Functions.h:16
edm::RawInputSource::closeFile_
void closeFile_() final
Definition:
RawInputSource.cc:111
edm::RawInputSource::Next::kFile
edm::EventPrincipal
Definition:
EventPrincipal.h:48
edm::RawInputSource::setInputFileTransitionsEachEvent
void setInputFileTransitionsEachEvent()
Definition:
RawInputSource.h:30
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
std
Definition:
JetResolutionObject.h:76
edm::RawInputSource::RawInputSource
RawInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
Definition:
RawInputSource.cc:17
Frameworkfwd.h
InputSource.h
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
edm::InputSource::ItemType
ItemType
Definition:
InputSource.h:54
edm::RawInputSource::~RawInputSource
~RawInputSource() override
Definition:
RawInputSource.cc:26
edm::RawInputSource::checkNext
virtual Next checkNext()=0
edm::InputSourceDescription
Definition:
InputSourceDescription.h:21
edm::RawInputSource::Next
Next
Definition:
RawInputSource.h:24
edm::RawInputSource::inputFileTransitionsEachEvent_
bool inputFileTransitionsEachEvent_
Definition:
RawInputSource.h:44
edm::RawInputSource::read
virtual void read(EventPrincipal &eventPrincipal)=0
edm::RawInputSource::readFile_
std::shared_ptr< FileBlock > readFile_() final
Definition:
RawInputSource.cc:117
edm::RawInputSource::readRunAuxiliary_
std::shared_ptr< RunAuxiliary > readRunAuxiliary_() override
Definition:
RawInputSource.cc:28
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
edm::RawInputSource::rewind_
void rewind_() override
Definition:
RawInputSource.cc:103
edm::RawInputSource::getNextItemType
ItemType getNextItemType() override
Definition:
RawInputSource.cc:56
edm::EventAuxiliary
Definition:
EventAuxiliary.h:14
edm::RawInputSource::fakeInputFileTransition_
bool fakeInputFileTransition_
Definition:
RawInputSource.h:45
edm::RawInputSource::reset_
virtual void reset_()
Definition:
RawInputSource.cc:97
edm::RawInputSource::Next::kStop
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::RawInputSource::makeEvent
void makeEvent(EventPrincipal &eventPrincipal, EventAuxiliary const &eventAuxiliary)
Definition:
RawInputSource.cc:51
edm::InputSource
Definition:
InputSource.h:52
edm::ParameterSet
Definition:
ParameterSet.h:47
makeListRunsInFiles.description
description
Definition:
makeListRunsInFiles.py:15
edm::RawInputSource::fillDescription
static void fillDescription(ParameterSetDescription &description)
Definition:
RawInputSource.cc:105
Timestamp
Generated for CMSSW Reference Manual by
1.8.14