Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:12:24

0001 #ifndef DQM_TrackingMonitorSource_WtoLNuSelector_h
0002 #define DQM_TrackingMonitorSource_WtoLNuSelector_h
0003 
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/stream/EDFilter.h"
0006 #include "FWCore/Framework/interface/Event.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 #include "FWCore/ServiceRegistry/interface/Service.h"
0009 
0010 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0011 #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
0012 #include "DataFormats/METReco/interface/PFMETFwd.h"
0013 #include "DataFormats/BeamSpot/interface/BeamSpot.h"
0014 
0015 #include "TLorentzVector.h"
0016 
0017 // Forward declaration
0018 class TH1D;
0019 namespace {
0020   class BeamSpot;
0021 }
0022 
0023 class WtoLNuSelector : public edm::stream::EDFilter<> {
0024 public:
0025   explicit WtoLNuSelector(const edm::ParameterSet&);
0026 
0027 private:
0028   bool filter(edm::Event&, edm::EventSetup const&) override;
0029   double getMt(const TLorentzVector& vlep, const reco::PFMET& obj);
0030 
0031 private:
0032   // module config parameters
0033   const edm::InputTag electronTag_;
0034   const edm::InputTag bsTag_;
0035   const edm::InputTag muonTag_;
0036   const edm::InputTag pfmetTag_;
0037   const edm::EDGetTokenT<reco::GsfElectronCollection> electronToken_;
0038   const edm::EDGetTokenT<reco::BeamSpot> bsToken_;
0039   const edm::EDGetTokenT<reco::MuonCollection> muonToken_;
0040   const edm::EDGetTokenT<reco::PFMETCollection> pfmetToken_;
0041 };
0042 #endif