Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:44

0001 #ifndef HLTJetCollectionsFilter_h
0002 #define HLTJetCollectionsFilter_h
0003 
0004 #include "HLTrigger/HLTcore/interface/HLTFilter.h"
0005 #include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
0006 #include "DataFormats/HLTReco/interface/TriggerTypeDefs.h"
0007 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0009 #include "FWCore/Utilities/interface/InputTag.h"
0010 
0011 namespace edm {
0012   class ConfigurationDescriptions;
0013 }
0014 
0015 //
0016 // class declaration
0017 //
0018 
0019 template <typename jetType>
0020 class HLTJetCollectionsFilter : public HLTFilter {
0021 public:
0022   explicit HLTJetCollectionsFilter(const edm::ParameterSet&);
0023   ~HLTJetCollectionsFilter() override;
0024   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0025   bool hltFilter(edm::Event&,
0026                  const edm::EventSetup&,
0027                  trigger::TriggerFilterObjectWithRefs& filterproduct) const override;
0028 
0029 private:
0030   edm::InputTag inputTag_;     // input tag identifying jet collections
0031   edm::InputTag originalTag_;  // input tag original jet collection
0032   double minJetPt_;            // jet pt threshold in GeV
0033   double maxAbsJetEta_;        // jet |eta| range
0034   unsigned int minNJets_;      // number of required jets passing cuts after cleaning
0035   int triggerType_;
0036   edm::EDGetTokenT<std::vector<
0037       edm::RefVector<std::vector<jetType>, jetType, edm::refhelper::FindUsingAdvance<std::vector<jetType>, jetType>>>>
0038       m_theJetToken;
0039 };
0040 
0041 #endif  //HLTJetCollectionsFilter_h