Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:40

0001 #ifndef HLTEventNumberFilter_h
0002 #define HLTEventNumberFilter_h
0003 // -*- C++ -*-
0004 //
0005 // Package:    HLTEventNumberFilter
0006 // Class:      HLTEventNumberFilter
0007 //
0008 /**\class HLTEventNumberFilter HLTEventNumberFilter.cc filter/HLTEventNumberFilter/src/HLTEventNumberFilter.cc
0009 
0010 Description: Filter to select HCAL abort gap events
0011 
0012 Implementation:
0013 <Notes on implementation>
0014 */
0015 //
0016 // Original Author:  Martin Grunewald
0017 //         Created:  Tue Jan 22 13:55:00 CET 2008
0018 //
0019 //
0020 
0021 // include files
0022 #include "FWCore/Framework/interface/Frameworkfwd.h"
0023 #include "FWCore/Framework/interface/Event.h"
0024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0025 #include "FWCore/Framework/interface/global/EDFilter.h"
0026 
0027 #include <string>
0028 
0029 namespace edm {
0030   class ConfigurationDescriptions;
0031 }
0032 
0033 //
0034 // class declaration
0035 //
0036 
0037 class HLTEventNumberFilter : public edm::global::EDFilter<> {
0038 public:
0039   explicit HLTEventNumberFilter(const edm::ParameterSet&);
0040   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0041 
0042 private:
0043   bool filter(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0044 
0045   // ----------member data ---------------------------
0046 
0047   /// accept the event if its event number is a multiple of period_
0048   unsigned int period_;
0049   /// if invert_=true, invert that event accept decision
0050   bool invert_;
0051 };
0052 
0053 #endif