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  ~RawInputSource() override;
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  void readEvent_(EventPrincipal& eventPrincipal) override;
31  std::shared_ptr<LuminosityBlockAuxiliary> readLuminosityBlockAuxiliary_() override;
32  std::shared_ptr<RunAuxiliary> readRunAuxiliary_() override;
33  virtual void reset_();
34  void rewind_() override;
35  ItemType getNextItemType() override;
36  void closeFile_() final;
37  virtual void genuineCloseFile() {}
38 
41  };
42 } // namespace edm
43 #endif
virtual void genuineCloseFile()
void readEvent_(EventPrincipal &eventPrincipal) override
std::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
void closeFile_() final
void setInputFileTransitionsEachEvent()
RawInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
~RawInputSource() override
virtual bool checkNextEvent()=0
bool inputFileTransitionsEachEvent_
virtual void read(EventPrincipal &eventPrincipal)=0
std::shared_ptr< RunAuxiliary > readRunAuxiliary_() override
void rewind_() override
ItemType getNextItemType() override
virtual void reset_()
HLT enums.
void makeEvent(EventPrincipal &eventPrincipal, EventAuxiliary const &eventAuxiliary)
static void fillDescription(ParameterSetDescription &description)