Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:20:41

0001 #ifndef HLTL1NumberFilter_h
0002 #define HLTL1NumberFilter_h
0003 // -*- C++ -*-
0004 //
0005 // Package:    HLTL1NumberFilter
0006 // Class:      HLTL1NumberFilter
0007 //
0008 /**\class HLTL1NumberFilter HLTL1NumberFilter.cc filter/HLTL1NumberFilter/src/HLTL1NumberFilter.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/Framework/interface/global/EDFilter.h"
0025 
0026 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0027 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0028 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0029 
0030 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
0031 
0032 #include <string>
0033 
0034 //
0035 // class declaration
0036 //
0037 
0038 class HLTL1NumberFilter : public edm::global::EDFilter<> {
0039 public:
0040   explicit HLTL1NumberFilter(const edm::ParameterSet &);
0041   ~HLTL1NumberFilter() override;
0042   static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
0043 
0044 private:
0045   bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override;
0046 
0047   // ----------member data ---------------------------
0048 
0049   /// raw data
0050   const edm::EDGetTokenT<FEDRawDataCollection> inputToken_;
0051   /// accept the event if its event number is a multiple of period_
0052   const unsigned int period_;
0053   /// FED from which to get lv1ID number
0054   const int fedId_;
0055   /// if invert_=true, invert that event accept decision
0056   const bool invert_;
0057   /// if useTCDS=true, use 64-bit Event Number from TCDS record (FED 1024) word 11
0058   const bool useTCDS_;
0059 };
0060 
0061 #endif