CMS 3D CMS Logo

EventSelectorAdapter.h
Go to the documentation of this file.
1 #ifndef CommonTools_UtilAlgos_EventSelectorAdapter_h
2 #define CommonTools_UtilAlgos_EventSelectorAdapter_h
3 
22 
23 template <typename T>
25 public:
26  // constructor
28 
29  // destructor
30  ~EventSelectorAdapter() override {}
31 
32  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
35  descriptions.addWithDefaultLabel(desc);
36  }
37 
38 private:
39  bool filter(edm::StreamID, edm::Event& evt, const edm::EventSetup& es) const override {
40  return eventSelector_(evt, es);
41  }
42 
44 };
45 
46 #endif
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
EventSelectorAdapter(const edm::ParameterSet &cfg)
void fillPSetDescription(edm::ParameterSetDescription &desc)
bool filter(edm::StreamID, edm::Event &evt, const edm::EventSetup &es) const override
long double T