CMS 3D CMS Logo

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 
13 
14 namespace edm {
15  class ParameterSet;
16  class Timestamp;
17  class RawInputSource : public InputSource {
18  public:
20  ~RawInputSource() override;
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;
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 
46  };
47 } // namespace edm
48 #endif
edm::RawInputSource::inputFileTransitionsEachEvent_
bool inputFileTransitionsEachEvent_
Definition: RawInputSource.h:44
edm::RawInputSource::setInputFileTransitionsEachEvent
void setInputFileTransitionsEachEvent()
Definition: RawInputSource.h:30
Timestamp
edm
HLT enums.
Definition: AlignableModifier.h:19
edmLumisInFiles.description
description
Definition: edmLumisInFiles.py:11
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::RawInputSource::readRunAuxiliary_
std::shared_ptr< RunAuxiliary > readRunAuxiliary_() override
Definition: RawInputSource.cc:28
edm::InputSourceDescription
Definition: InputSourceDescription.h:21
edm::RawInputSource::readFile_
std::shared_ptr< FileBlock > readFile_() final
Definition: RawInputSource.cc:117
edm::RawInputSource
Definition: RawInputSource.h:17
edm::RawInputSource::readLuminosityBlockAuxiliary_
std::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
Definition: RawInputSource.cc:35
edm::FileBlock
Definition: FileBlock.h:22
edm::RawInputSource::RawInputSource
RawInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
Definition: RawInputSource.cc:17
edm::RawInputSource::getNextItemType
ItemType getNextItemType() override
Definition: RawInputSource.cc:56
edm::EventPrincipal
Definition: EventPrincipal.h:48
EventID.h
edm::EventAuxiliary
Definition: EventAuxiliary.h:14
edm::RawInputSource::reset_
virtual void reset_()
Definition: RawInputSource.cc:97
edm::RawInputSource::Next::kFile
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
edm::RawInputSource::Next::kStop
edm::RawInputSource::fakeInputFileTransition_
bool fakeInputFileTransition_
Definition: RawInputSource.h:45
edm::InputSource::ItemType
ItemType
Definition: InputSource.h:54
edm::RawInputSource::Next
Next
Definition: RawInputSource.h:24
edm::RawInputSource::rewind_
void rewind_() override
Definition: RawInputSource.cc:103
edm::RawInputSource::readEvent_
void readEvent_(EventPrincipal &eventPrincipal) override
Definition: RawInputSource.cc:43
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
std
Definition: JetResolutionObject.h:76
edm::RawInputSource::~RawInputSource
~RawInputSource() override
Definition: RawInputSource.cc:26
edm::RawInputSource::checkNext
virtual Next checkNext()=0
edm::RawInputSource::closeFile_
void closeFile_() final
Definition: RawInputSource.cc:111
edm::RawInputSource::makeEvent
void makeEvent(EventPrincipal &eventPrincipal, EventAuxiliary const &eventAuxiliary)
Definition: RawInputSource.cc:51
Frameworkfwd.h
InputSource.h
edm::RawInputSource::genuineCloseFile
virtual void genuineCloseFile()
Definition: RawInputSource.h:41
edm::RawInputSource::fillDescription
static void fillDescription(ParameterSetDescription &description)
Definition: RawInputSource.cc:105
edm::InputSource
Definition: InputSource.h:52
edm::RawInputSource::Next::kEvent
edm::RawInputSource::read
virtual void read(EventPrincipal &eventPrincipal)=0
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
edm::RawInputSource::genuineReadFile
virtual void genuineReadFile()
Definition: RawInputSource.h:42