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 {
26  public:
27  // constructor
30  }
31 
32  // destructor
33  ~EventSelectorAdapter() override {}
34 
35  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
38  descriptions.addWithDefaultLabel(desc);
39  }
40 
41  private:
42  bool filter(edm::StreamID, edm::Event& evt, const edm::EventSetup& es) const override { return eventSelector_(evt, es); }
43 
45 };
46 
47 #endif
48 
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)
long double T
bool filter(edm::StreamID, edm::Event &evt, const edm::EventSetup &es) const override