CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
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();
24 
25  protected:
26  EventPrincipal* makeEvent(EventPrincipal& eventPrincipal, EventAuxiliary const& eventAuxiliary);
27  virtual bool checkNextEvent() = 0;
28  virtual EventPrincipal* read(EventPrincipal& eventPrincipal) = 0;
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 
41  };
42 }
43 #endif
EventPrincipal * makeEvent(EventPrincipal &eventPrincipal, EventAuxiliary const &eventAuxiliary)
virtual EventPrincipal * read(EventPrincipal &eventPrincipal)=0
void setInputFileTransitionsEachEvent()
RawInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
virtual bool checkNextEvent()=0
virtual void preForkReleaseResources() override
bool inputFileTransitionsEachEvent_
virtual void rewind_() override
virtual boost::shared_ptr< RunAuxiliary > readRunAuxiliary_() override
virtual ItemType getNextItemType() override
virtual boost::shared_ptr< LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
tuple description
Definition: idDealer.py:66
virtual void reset_()
virtual EventPrincipal * readEvent_(EventPrincipal &eventPrincipal) override
static void fillDescription(ParameterSetDescription &description)