CMS 3D CMS Logo

ProducerSourceBase.h
Go to the documentation of this file.
1 #ifndef Framework_Sources_ProducerSourceBase_h
2 #define Framework_Sources_ProducerSourceBase_h
3 
4 /*----------------------------------------------------------------------
5 ----------------------------------------------------------------------*/
6 
16 
17 #include <memory>
18 #include <vector>
19 
20 namespace edm {
21  class ParameterSet;
23  class ProducerSourceBase : public IDGeneratorSourceBase<PuttableSourceBase> {
24  public:
25  explicit ProducerSourceBase(ParameterSet const& pset, InputSourceDescription const& desc, bool realData);
26  ~ProducerSourceBase() noexcept(false) override;
27 
28  protected:
29  private:
30  virtual void produce(Event& e) = 0;
31 
32  void readEvent_(EventPrincipal& eventPrincipal) override;
33  };
34 } // namespace edm
35 #endif
void readEvent_(EventPrincipal &eventPrincipal) override
ProducerSourceBase(ParameterSet const &pset, InputSourceDescription const &desc, bool realData)
#define noexcept
~ProducerSourceBase()(false) override
HLT enums.
virtual void produce(Event &e)=0