Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:35

0001 #ifndef BTagSkimLeptonJet_h
0002 #define BTagSkimLeptonJet_h
0003 
0004 /** \class BtagSkimLeptonJet
0005  *
0006  *
0007  *
0008  *
0009  * \author Francisco Yumiceva, FERMILAB
0010  *
0011  */
0012 
0013 #include "FWCore/Framework/interface/Frameworkfwd.h"
0014 #include "FWCore/Framework/interface/one/EDFilter.h"
0015 #include "FWCore/Framework/interface/Event.h"
0016 
0017 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0018 #include "FWCore/Utilities/interface/InputTag.h"
0019 
0020 class BTagSkimLeptonJet : public edm::one::EDFilter<> {
0021 public:
0022   explicit BTagSkimLeptonJet(const edm::ParameterSet&);
0023   ~BTagSkimLeptonJet() override;
0024   bool filter(edm::Event&, const edm::EventSetup&) override;
0025   void endJob() override;
0026 
0027 private:
0028   edm::InputTag CaloJetInput_;
0029   double MinCaloJetPt_;
0030   double MaxCaloJetEta_;
0031   int MinNLeptonJet_;
0032   std::string LeptonType_;
0033   edm::InputTag LeptonInput_;
0034   double MinLeptonPt_;
0035   double MaxLeptonEta_;
0036   double MaxDeltaR_;
0037   double MinPtRel_;
0038 
0039   unsigned int nEvents_;
0040   unsigned int nAccepted_;
0041 
0042   class PtSorter {
0043   public:
0044     template <class T>
0045     bool operator()(const T& a, const T& b) {
0046       return (a.pt() > b.pt());
0047     }
0048   };
0049 };
0050 
0051 #endif