Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:19

0001 #ifndef RecoJets_JetProducers_plugins_HiL1Subtractor_h
0002 #define RecoJets_JetProducers_plugins_HiL1Subtractor_h
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:    HiL1Subtractor
0007 // Class:      HiL1Subtractor
0008 //
0009 /**\class HiL1Subtractor HiL1Subtractor.cc RecoHI/HiJetAlgos/plugins/HiL1Subtractor.cc
0010 
0011  Description:
0012 
0013   Implementation:
0014 
0015 */
0016 //
0017 // Original Author:  "Matthew Nguyen"
0018 //         Created:  Sun Nov 7 12:18:18 CDT 2010
0019 //
0020 //
0021 
0022 // system include files
0023 #include <memory>
0024 
0025 // user include files
0026 #include "FWCore/Framework/interface/Frameworkfwd.h"
0027 #include "FWCore/Framework/interface/global/EDProducer.h"
0028 
0029 #include "FWCore/Framework/interface/Event.h"
0030 #include "FWCore/Framework/interface/MakerMacros.h"
0031 
0032 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0033 
0034 #include "DataFormats/JetReco/interface/GenJetCollection.h"
0035 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
0036 #include "DataFormats/JetReco/interface/PFJetCollection.h"
0037 
0038 //
0039 // class declaration
0040 //
0041 
0042 class HiL1Subtractor : public edm::global::EDProducer<> {
0043 protected:
0044   //
0045   // typedefs & structs
0046   //
0047 
0048 public:
0049   explicit HiL1Subtractor(const edm::ParameterSet&);
0050 
0051 private:
0052   void produce(edm::StreamID, edm::Event&, const edm::EventSetup&) const override;
0053 
0054   // ----------member data ---------------------------
0055   // input jet source
0056   edm::EDGetTokenT<edm::View<reco::GenJet> > genJetSrc_;
0057   edm::EDGetTokenT<edm::View<reco::CaloJet> > caloJetSrc_;
0058   edm::EDGetTokenT<edm::View<reco::PFJet> > pfJetSrc_;
0059 
0060 protected:
0061   std::string jetType_;       // Type of jet
0062   std::string rhoTagString_;  // Algorithm for rho estimation
0063 
0064   edm::EDGetTokenT<std::vector<double> > rhoTag_;
0065 };
0066 
0067 #endif