Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:20:29

0001 #ifndef HLTPFJetIDProducer_h_
0002 #define HLTPFJetIDProducer_h_
0003 
0004 /** \class HLTPFJetIDProducer
0005  *
0006  *  \brief  This applies PFJet ID and produces a jet collection with jets that pass the ID.
0007  *  \author Michele de Gruttola, Jia Fu Low (Nov 2013)
0008  *
0009  *  This receives a PFJet collection, selects jets that pass PFJet ID,
0010  *  and makes an output PFJet collection with only jets that pass.
0011  *
0012  */
0013 
0014 #include "FWCore/Framework/interface/stream/EDProducer.h"
0015 #include "FWCore/Framework/interface/Event.h"
0016 #include "FWCore/Framework/interface/EventSetup.h"
0017 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0018 
0019 #include "DataFormats/JetReco/interface/PFJet.h"
0020 #include "DataFormats/JetReco/interface/PFJetCollection.h"
0021 
0022 namespace edm {
0023   class ConfigurationDescriptions;
0024 }
0025 
0026 // Class declaration
0027 class HLTPFJetIDProducer : public edm::stream::EDProducer<> {
0028 public:
0029   explicit HLTPFJetIDProducer(const edm::ParameterSet& iConfig);
0030   ~HLTPFJetIDProducer() override;
0031   static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0032   void produce(edm::Event& iEvent, const edm::EventSetup& iSetup) override;
0033 
0034 private:
0035   double minPt_;
0036   double maxEta_;
0037   double CHF_;              ///< charged hadron fraction
0038   double NHF_;              ///< neutral hadron fraction
0039   double CEF_;              ///< charged EM fraction
0040   double NEF_;              ///< neutral EM fraction
0041   double maxCF_;            ///< total charged energy fraction
0042   int NCH_;                 ///< number of charged constituents
0043   int NTOT_;                ///< number of constituents
0044   edm::InputTag inputTag_;  ///< input PFJet collection
0045 
0046   edm::EDGetTokenT<reco::PFJetCollection> m_thePFJetToken;
0047 };
0048 
0049 #endif  // HLTPFJetIDProducer_h_