CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EmptySource.cc
Go to the documentation of this file.
7 
8 namespace edm {
9  class EmptySource : public IDGeneratorSourceBase<InputSource> {
10  public:
11  explicit EmptySource(ParameterSet const&, InputSourceDescription const&);
12  ~EmptySource() override;
13  static void fillDescriptions(ConfigurationDescriptions& descriptions);
14 
15  private:
17  void readEvent_(edm::EventPrincipal&) override;
18  };
19 
21  : IDGeneratorSourceBase<InputSource>(pset, desc, false) {}
22 
24 
26 
28  doReadEvent(e, [](auto const&) {});
29  }
30 
33  desc.setComment("Creates runs, lumis and events containing no products.");
35  descriptions.add("source", desc);
36  }
37 } // namespace edm
38 
39 using edm::EmptySource;
void doReadEvent(EventPrincipal &eventPrincipal, F &&f)
EmptySource(ParameterSet const &, InputSourceDescription const &)
Definition: EmptySource.cc:20
void setComment(std::string const &value)
#define DEFINE_FWK_INPUT_SOURCE(type)
unsigned long long TimeValue_t
Definition: Timestamp.h:28
void readEvent_(edm::EventPrincipal &) override
Definition: EmptySource.cc:27
static void fillDescription(ParameterSetDescription &desc)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~EmptySource() override
Definition: EmptySource.cc:23
bool setRunAndEventInfo(EventID &id, TimeValue_t &time, edm::EventAuxiliary::ExperimentType &) override
Definition: EmptySource.cc:25
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: EmptySource.cc:31