Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HLTJetCollectionsForBoostedLeptonPlusJets_h
0002 #define HLTJetCollectionsForBoostedLeptonPlusJets_h
0003 
0004 /** \class HLTJetCollectionsForBoostedLeptonPlusJets
0005  *
0006  *
0007  *  This class is an EDProducer implementing an HLT
0008  *  trigger for lepton and jet objects, cutting on
0009  *  variables relating to the jet 4-momentum representation.
0010  *  The producer checks for overlaps between leptons and jets and if a
0011  *  combination of one lepton + jets cleaned against this leptons 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/Frameworkfwd.h"
0021 #include "FWCore/Framework/interface/stream/EDProducer.h"
0022 
0023 #include "FWCore/Framework/interface/Event.h"
0024 
0025 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0026 
0027 #include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
0028 
0029 #include "DataFormats/JetReco/interface/PFJetCollection.h"
0030 
0031 namespace edm {
0032   class ConfigurationDescriptions;
0033 }
0034 
0035 //
0036 // class declaration
0037 //
0038 
0039 template <typename jetType>
0040 class HLTJetCollectionsForBoostedLeptonPlusJets : public edm::stream::EDProducer<> {
0041 public:
0042   explicit HLTJetCollectionsForBoostedLeptonPlusJets(const edm::ParameterSet&);
0043   ~HLTJetCollectionsForBoostedLeptonPlusJets() override;
0044   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0045 
0046 private:
0047   void produce(edm::Event&, const edm::EventSetup&) override;
0048 
0049   edm::EDGetTokenT<trigger::TriggerFilterObjectWithRefs> m_theLeptonToken;
0050   edm::EDGetTokenT<std::vector<jetType>> m_theJetToken;
0051   edm::InputTag hltLeptonTag;
0052   edm::InputTag sourceJetTag;
0053 
0054   double minDeltaR_;  //min dR to consider cleaning
0055 
0056   // ----------member data ---------------------------
0057 };
0058 #endif  //HLTJetCollectionsForBoostedLeptonPlusJets_h