test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
virtual
~RawInputSource
();
21
static
void
fillDescription
(
ParameterSetDescription
&
description
);
22
23
protected
:
24
void
makeEvent
(
EventPrincipal
& eventPrincipal,
EventAuxiliary
const
& eventAuxiliary);
25
virtual
bool
checkNextEvent
() = 0;
26
virtual
void
read
(
EventPrincipal
& eventPrincipal) = 0;
27
void
setInputFileTransitionsEachEvent
() {
inputFileTransitionsEachEvent_
=
true
;}
28
29
private
:
30
virtual
void
readEvent_
(
EventPrincipal
& eventPrincipal)
override
;
31
virtual
std::shared_ptr<LuminosityBlockAuxiliary>
readLuminosityBlockAuxiliary_
()
override
;
32
virtual
std::shared_ptr<RunAuxiliary>
readRunAuxiliary_
()
override
;
33
virtual
void
reset_
();
34
virtual
void
rewind_
()
override
;
35
virtual
ItemType
getNextItemType
()
override
;
36
virtual
void
preForkReleaseResources
()
override
;
37
virtual
void
closeFile_
() override final;
38
virtual
void
genuineCloseFile
() { }
39
40
bool
inputFileTransitionsEachEvent_
;
41
bool
fakeInputFileTransition_
;
42
};
43
}
44
#endif
edm::RawInputSource::genuineCloseFile
virtual void genuineCloseFile()
Definition:
RawInputSource.h:38
edm::RawInputSource::readEvent_
virtual void readEvent_(EventPrincipal &eventPrincipal) override
Definition:
RawInputSource.cc:45
edm::RawInputSource::readLuminosityBlockAuxiliary_
virtual std::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
Definition:
RawInputSource.cc:36
edm::RawInputSource::~RawInputSource
virtual ~RawInputSource()
Definition:
RawInputSource.cc:24
EventID.h
edm::RawInputSource
Definition:
RawInputSource.h:17
ParameterSet
Definition:
Functions.h:16
edm::EventPrincipal
Definition:
EventPrincipal.h:46
edm::RawInputSource::setInputFileTransitionsEachEvent
void setInputFileTransitionsEachEvent()
Definition:
RawInputSource.h:27
edm::RawInputSource::RawInputSource
RawInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
Definition:
RawInputSource.cc:15
Frameworkfwd.h
InputSource.h
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:50
edm::InputSource::ItemType
ItemType
Definition:
InputSource.h:78
edm::InputSourceDescription
Definition:
InputSourceDescription.h:20
edm::RawInputSource::checkNextEvent
virtual bool checkNextEvent()=0
edm::RawInputSource::preForkReleaseResources
virtual void preForkReleaseResources() override
Definition:
RawInputSource.cc:59
edm::RawInputSource::inputFileTransitionsEachEvent_
bool inputFileTransitionsEachEvent_
Definition:
RawInputSource.h:40
edm::RawInputSource::read
virtual void read(EventPrincipal &eventPrincipal)=0
edm::RawInputSource::readRunAuxiliary_
virtual std::shared_ptr< RunAuxiliary > readRunAuxiliary_() override
Definition:
RawInputSource.cc:28
edm::RawInputSource::closeFile_
virtual void closeFile_() overridefinal
Definition:
RawInputSource.cc:121
edm::RawInputSource::rewind_
virtual void rewind_() override
Definition:
RawInputSource.cc:109
edm::RawInputSource::getNextItemType
virtual ItemType getNextItemType() override
Definition:
RawInputSource.cc:64
edm::EventAuxiliary
Definition:
EventAuxiliary.h:14
idDealer.description
tuple description
Definition:
idDealer.py:66
edm::RawInputSource::fakeInputFileTransition_
bool fakeInputFileTransition_
Definition:
RawInputSource.h:41
edm::RawInputSource::reset_
virtual void reset_()
Definition:
RawInputSource.cc:101
edm::RawInputSource::makeEvent
void makeEvent(EventPrincipal &eventPrincipal, EventAuxiliary const &eventAuxiliary)
Definition:
RawInputSource.cc:54
edm::InputSource
Definition:
InputSource.h:76
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::RawInputSource::fillDescription
static void fillDescription(ParameterSetDescription &description)
Definition:
RawInputSource.cc:114
Timestamp
Generated for CMSSW Reference Manual by
1.8.5