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:
19  explicit RawInputSource(ParameterSet const& pset, InputSourceDescription const& desc);
20  virtual ~RawInputSource();
22 
23  protected:
24  void makeEvent(EventPrincipal& eventPrincipal, EventAuxiliary const& eventAuxiliary);
25  virtual bool checkNextEvent() = 0;
26  virtual void read(EventPrincipal& eventPrincipal) = 0;
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 closeFile_() override final;
37  virtual void genuineCloseFile() { }
38 
41  };
42 }
43 #endif
virtual void genuineCloseFile()
virtual void readEvent_(EventPrincipal &eventPrincipal) override
virtual std::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
void setInputFileTransitionsEachEvent()
RawInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
virtual bool checkNextEvent()=0
bool inputFileTransitionsEachEvent_
virtual void closeFile_() override final
virtual void read(EventPrincipal &eventPrincipal)=0
virtual std::shared_ptr< RunAuxiliary > readRunAuxiliary_() override
virtual void rewind_() override
virtual ItemType getNextItemType() override
virtual void reset_()
HLT enums.
void makeEvent(EventPrincipal &eventPrincipal, EventAuxiliary const &eventAuxiliary)
static void fillDescription(ParameterSetDescription &description)