Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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 "boost/shared_ptr.hpp"
11
12
#include "
DataFormats/Provenance/interface/EventID.h
"
13
#include "
FWCore/Framework/interface/InputSource.h
"
14
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
15
16
namespace
edm {
17
class
ParameterSet
;
18
class
Timestamp
;
19
class
RawInputSource
:
public
InputSource
{
20
public
:
21
explicit
RawInputSource
(
ParameterSet
const
& pset,
InputSourceDescription
const
& desc);
22
virtual
~RawInputSource
();
23
static
void
fillDescription
(
ParameterSetDescription
&
description
);
24
25
protected
:
26
EventPrincipal
*
makeEvent
(
EventPrincipal
& eventPrincipal,
EventAuxiliary
const
& eventAuxiliary);
27
virtual
bool
checkNextEvent
() = 0;
28
virtual
EventPrincipal
*
read
(
EventPrincipal
& eventPrincipal) = 0;
29
void
setInputFileTransitionsEachEvent
() {
inputFileTransitionsEachEvent_
=
true
;}
30
31
private
:
32
virtual
EventPrincipal
*
readEvent_
(
EventPrincipal
& eventPrincipal)
override
;
33
virtual
boost::shared_ptr<LuminosityBlockAuxiliary>
readLuminosityBlockAuxiliary_
()
override
;
34
virtual
boost::shared_ptr<RunAuxiliary>
readRunAuxiliary_
()
override
;
35
virtual
void
reset_
();
36
virtual
void
rewind_
()
override
;
37
virtual
ItemType
getNextItemType
()
override
;
38
virtual
void
preForkReleaseResources
()
override
;
39
40
bool
inputFileTransitionsEachEvent_
;
41
};
42
}
43
#endif
edm::RawInputSource::makeEvent
EventPrincipal * makeEvent(EventPrincipal &eventPrincipal, EventAuxiliary const &eventAuxiliary)
Definition:
RawInputSource.cc:53
edm::RawInputSource::~RawInputSource
virtual ~RawInputSource()
Definition:
RawInputSource.cc:23
EventID.h
edm::RawInputSource
Definition:
RawInputSource.h:19
ParameterSet
Definition:
Functions.h:16
edm::RawInputSource::read
virtual EventPrincipal * read(EventPrincipal &eventPrincipal)=0
edm::EventPrincipal
Definition:
EventPrincipal.h:40
edm::RawInputSource::setInputFileTransitionsEachEvent
void setInputFileTransitionsEachEvent()
Definition:
RawInputSource.h:29
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:72
edm::InputSourceDescription
Definition:
InputSourceDescription.h:17
edm::RawInputSource::checkNextEvent
virtual bool checkNextEvent()=0
edm::RawInputSource::preForkReleaseResources
virtual void preForkReleaseResources() override
Definition:
RawInputSource.cc:60
edm::RawInputSource::inputFileTransitionsEachEvent_
bool inputFileTransitionsEachEvent_
Definition:
RawInputSource.h:40
edm::RawInputSource::rewind_
virtual void rewind_() override
Definition:
RawInputSource.cc:105
edm::RawInputSource::readRunAuxiliary_
virtual boost::shared_ptr< RunAuxiliary > readRunAuxiliary_() override
Definition:
RawInputSource.cc:27
edm::RawInputSource::getNextItemType
virtual ItemType getNextItemType() override
Definition:
RawInputSource.cc:65
edm::RawInputSource::readLuminosityBlockAuxiliary_
virtual boost::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
Definition:
RawInputSource.cc:35
edm::EventAuxiliary
Definition:
EventAuxiliary.h:14
idDealer.description
tuple description
Definition:
idDealer.py:66
edm::RawInputSource::reset_
virtual void reset_()
Definition:
RawInputSource.cc:97
edm::RawInputSource::readEvent_
virtual EventPrincipal * readEvent_(EventPrincipal &eventPrincipal) override
Definition:
RawInputSource.cc:44
edm::InputSource
Definition:
InputSource.h:70
edm::ParameterSet
Definition:
ParameterSet.h:35
edm::RawInputSource::fillDescription
static void fillDescription(ParameterSetDescription &description)
Definition:
RawInputSource.cc:110
Timestamp
Generated for CMSSW Reference Manual by
1.8.5