Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HLTrigger_JetMET_HLTJetCollForElePlusJets_h
0002 #define HLTrigger_JetMET_HLTJetCollForElePlusJets_h
0003 
0004 /** \class HLTJetCollForElePlusJets
0005  *
0006  *
0007  *  This class is an EDProducer implementing an HLT
0008  *  trigger for electron and jet objects, cutting on
0009  *  variables relating to the jet 4-momentum representation.
0010  *  The producer checks for overlaps between electrons and jets and if a
0011  *  combination of one electron + jets cleaned against this electrons satisfy the cuts.
0012  *  These jets are then added to a cleaned jet collection which is put into the event.
0013  *
0014  *
0015  *  \author Lukasz Kreczko
0016  *
0017  */
0018 
0019 // user include files
0020 #include "FWCore/Framework/interface/Event.h"
0021 #include "FWCore/Framework/interface/Frameworkfwd.h"
0022 #include "FWCore/Framework/interface/stream/EDProducer.h"
0023 #include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
0024 
0025 namespace edm {
0026   class ConfigurationDescriptions;
0027 }
0028 
0029 template <typename T>
0030 class HLTJetCollForElePlusJets : public edm::stream::EDProducer<> {
0031 public:
0032   explicit HLTJetCollForElePlusJets(const edm::ParameterSet&);
0033   ~HLTJetCollForElePlusJets() override = default;
0034 
0035   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0036 
0037 private:
0038   void produce(edm::Event&, const edm::EventSetup&) override;
0039 
0040   edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> m_theElectronToken;
0041   edm::EDGetTokenT<std::vector<T>> m_theJetToken;
0042   edm::InputTag hltElectronTag;
0043   edm::InputTag sourceJetTag;
0044 
0045   double minJetPt_;        // jet pt threshold in GeV
0046   double maxAbsJetEta_;    // jet |eta| range
0047   unsigned int minNJets_;  // number of required jets passing cuts after cleaning
0048   double minDeltaR2_;      // min dR^2 (with sign) for jets and electrons not to match
0049   double minSoftJetPt_;    // jet pt threshold for the soft jet in the VBF pair
0050   double minDeltaEta_;     // pseudorapidity separation for the VBF pair
0051 };
0052 
0053 #endif