![]() |
![]() |
00001 #ifndef ModulesPrescaler_H 00002 #define ModulesPrescaler_H 00003 00004 #include "FWCore/Framework/interface/EDFilter.h" 00005 00006 namespace edm 00007 { 00008 class Prescaler : public edm::EDFilter 00009 { 00010 public: 00011 explicit Prescaler(edm::ParameterSet const&); 00012 virtual ~Prescaler(); 00013 00014 virtual bool filter(edm::Event& e, edm::EventSetup const& c); 00015 void endJob(); 00016 00017 private: 00018 int count_; 00019 int n_; // accept one in n 00020 int offset_; // with offset, ie. sequence of events does not have to start at first event 00021 }; 00022 } 00023 00024 #endif 00025