Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HLTJetL1MatchProducer_h
0002 #define HLTJetL1MatchProducer_h
0003 
0004 #include <string>
0005 #include "FWCore/Framework/interface/stream/EDProducer.h"
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 #include "FWCore/Framework/interface/Event.h"
0008 #include "FWCore/Framework/interface/EventSetup.h"
0009 
0010 #include "DataFormats/L1Trigger/interface/L1JetParticleFwd.h"
0011 #include "DataFormats/L1Trigger/interface/L1JetParticle.h"
0012 #include "DataFormats/JetReco/interface/CaloJet.h"
0013 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
0014 #include "DataFormats/JetReco/interface/PFJet.h"
0015 #include "DataFormats/JetReco/interface/PFJetCollection.h"
0016 #include "DataFormats/JetReco/interface/TrackJetCollection.h"
0017 #include "DataFormats/JetReco/interface/BasicJetCollection.h"
0018 
0019 template <typename T>
0020 class HLTJetL1MatchProducer : public edm::stream::EDProducer<> {
0021 public:
0022   explicit HLTJetL1MatchProducer(const edm::ParameterSet &);
0023   ~HLTJetL1MatchProducer() override;
0024   static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
0025   virtual void beginJob();
0026   void produce(edm::Event &, const edm::EventSetup &) override;
0027 
0028 private:
0029   edm::EDGetTokenT<std::vector<T>> m_theJetToken;
0030   edm::EDGetTokenT<l1extra::L1JetParticleCollection> m_theL1TauJetToken;
0031   edm::EDGetTokenT<l1extra::L1JetParticleCollection> m_theL1CenJetToken;
0032   edm::EDGetTokenT<l1extra::L1JetParticleCollection> m_theL1ForJetToken;
0033   edm::InputTag jetsInput_;
0034   edm::InputTag L1TauJets_;
0035   edm::InputTag L1CenJets_;
0036   edm::InputTag L1ForJets_;
0037   double DeltaR2_;  // DeltaR2(HLT,L1) with sign
0038 };
0039 
0040 #endif