CMS 3D CMS Logo

IntSource.cc
Go to the documentation of this file.
6 #include "DataFormats/TestObjects/interface/ToyProducts.h"
8 
9 #include <memory>
10 
11 namespace edm {
12 
13  class IntSource : public ProducerSourceBase {
14  public:
15  explicit IntSource(ParameterSet const&, InputSourceDescription const&);
16  ~IntSource() override;
17  static void fillDescriptions(ConfigurationDescriptions& descriptions);
18 
19  private:
21  void produce(Event&) override;
22  };
23 
26  produces<edmtest::IntProduct>();
27  }
28 
30 
32 
33  void IntSource::produce(edm::Event& e) { e.put(std::make_unique<edmtest::IntProduct>(4)); }
34 
38  descriptions.add("source", desc);
39  }
40 } // namespace edm
41 using edm::IntSource;
~IntSource() override
Definition: IntSource.cc:29
void produce(Event &) override
Definition: IntSource.cc:33
#define DEFINE_FWK_INPUT_SOURCE(type)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: IntSource.cc:35
unsigned long long TimeValue_t
Definition: Timestamp.h:21
IntSource(ParameterSet const &, InputSourceDescription const &)
Definition: IntSource.cc:24
static void fillDescription(ParameterSetDescription &desc)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HLT enums.
bool setRunAndEventInfo(EventID &id, TimeValue_t &time, edm::EventAuxiliary::ExperimentType &eType) override
Definition: IntSource.cc:31