Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:06:45

0001 // -*- C++ -*-
0002 //
0003 // Package:   PhysDecl
0004 // Class:     PhysDecl
0005 //
0006 // Original Author:  Luca Malgeri
0007 
0008 #ifndef PhysDecl_H
0009 #define PhysDecl_H
0010 
0011 // system include files
0012 #include <memory>
0013 #include <vector>
0014 #include <map>
0015 #include <set>
0016 
0017 // user include files
0018 #include "FWCore/Utilities/interface/InputTag.h"
0019 #include "FWCore/Framework/interface/Frameworkfwd.h"
0020 #include "FWCore/Framework/interface/one/EDFilter.h"
0021 #include "FWCore/Framework/interface/Event.h"
0022 #include "FWCore/Framework/interface/MakerMacros.h"
0023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0024 #include "FWCore/Framework/interface/ESHandle.h"
0025 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0026 
0027 #include "DataFormats/Common/interface/TriggerResults.h"
0028 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
0029 
0030 //
0031 // class declaration
0032 //
0033 
0034 class PhysDecl : public edm::one::EDFilter<> {
0035 public:
0036   explicit PhysDecl(const edm::ParameterSet &);
0037   ~PhysDecl() override;
0038 
0039 private:
0040   bool filter(edm::Event &, const edm::EventSetup &) override;
0041 
0042   bool applyfilter;
0043   bool debugOn;
0044   bool init_;
0045   std::vector<std::string> hlNames_;  // name of each HLT algorithm
0046   edm::EDGetTokenT<edm::TriggerResults> hlTriggerResults_;
0047   edm::EDGetTokenT<L1GlobalTriggerReadoutRecord> gtDigis_;
0048 };
0049 
0050 #endif