CMS 3D CMS Logo

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 
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
#define DEFINE_FWK_INPUT_SOURCE(type)
unsigned long long TimeValue_t
Definition: Timestamp.h:21
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
HLT enums.
bool setRunAndEventInfo(EventID &id, TimeValue_t &time, edm::EventAuxiliary::ExperimentType &) override
Definition: EmptySource.cc:25
static void fillDescriptions(ConfigurationDescriptions &descriptions)
Definition: EmptySource.cc:31