Go to the documentation of this file.00001 #ifndef CommonTools_UtilAlgos_EventSelectorBase_h
00002 #define CommonTools_UtilAlgos_EventSelectorBase_h
00003
00016 #include "FWCore/Framework/interface/Event.h"
00017 #include "FWCore/Framework/interface/EventSetup.h"
00018 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00019
00020 class EventSelectorBase
00021 {
00022 public:
00023
00024 explicit EventSelectorBase() {}
00025
00026
00027 virtual ~EventSelectorBase() {}
00028
00029
00030
00031
00032 virtual bool operator()(edm::Event&, const edm::EventSetup&) = 0;
00033 };
00034
00035 #include "FWCore/PluginManager/interface/PluginFactory.h"
00036
00037 typedef edmplugin::PluginFactory<EventSelectorBase* (const edm::ParameterSet&)> EventSelectorPluginFactory;
00038
00039 #endif
00040