Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:09

0001 // -*- C++ -*-
0002 //
0003 // Package:    TTbar_GenLepAnalyzer
0004 // Class:      TTbar_GenLepAnalyzer
0005 //
0006 /**\class TTbar_GenLepAnalyzer 
0007 
0008  Description: [one line class summary]
0009 
0010  Implementation:
0011      [Notes on implementation]
0012 */
0013 //
0014 // Original Author:  Martijn Gosselink,,,
0015 //         Created:  Thu May 10 17:15:16 CEST 2012
0016 //
0017 //
0018 // Added to: Validation/EventGenerator by Ian M. Nugent June 28, 2012
0019 
0020 #ifndef TTbar_GenLepAnalyzer_H
0021 #define TTbar_GenLepAnalyzer_H
0022 
0023 // system include files
0024 #include <memory>
0025 
0026 // user include files
0027 #include "FWCore/Framework/interface/Frameworkfwd.h"
0028 #include "DQMServices/Core/interface/DQMStore.h"
0029 #include "FWCore/ServiceRegistry/interface/Service.h"
0030 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0031 
0032 #include "FWCore/Framework/interface/Event.h"
0033 #include "FWCore/Framework/interface/MakerMacros.h"
0034 
0035 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0036 
0037 #include "FWCore/ServiceRegistry/interface/Service.h"
0038 #include "CommonTools/UtilAlgos/interface/TFileService.h"
0039 
0040 #include "DataFormats/Common/interface/Handle.h"
0041 #include "DataFormats/Candidate/interface/Candidate.h"
0042 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
0043 
0044 #include <map>
0045 #include <string>
0046 
0047 //
0048 // class declaration
0049 //
0050 
0051 class TTbar_GenLepAnalyzer : public DQMEDAnalyzer {
0052 public:
0053   explicit TTbar_GenLepAnalyzer(const edm::ParameterSet &);
0054   ~TTbar_GenLepAnalyzer() override;
0055 
0056   void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override;
0057   void analyze(const edm::Event &, const edm::EventSetup &) override;
0058 
0059 private:
0060   // ----------member data ---------------------------
0061 
0062   edm::InputTag leps_;
0063   std::map<std::string, MonitorElement *> hists_;
0064 
0065   bool do_e_, do_mu_, do_tau_, do_nu_e_, do_nu_mu_, do_nu_tau_;
0066   double pt_cut_, eta_cut_;
0067   int pdgid;
0068 
0069   edm::EDGetTokenT<edm::View<reco::Candidate> > lepsToken_;
0070 };
0071 
0072 #endif