CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Validation/EventGenerator/interface/TTbar_GenLepAnalyzer.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    TTbar_GenLepAnalyzer
00004 // Class:      TTbar_GenLepAnalyzer
00005 // 
00013 //
00014 // Original Author:  Martijn Gosselink,,,
00015 //         Created:  Thu May 10 17:15:16 CEST 2012
00016 // $Id: TTbar_GenLepAnalyzer.cc,v 1.3 2012/05/24 18:20:45 mgosseli Exp $
00017 //
00018 //
00019 // Added to: Validation/EventGenerator by Ian M. Nugent June 28, 2012
00020 
00021 #ifndef TTbar_GenLepAnalyzer_H
00022 #define TTbar_GenLepAnalyzer_H
00023 
00024 
00025 // system include files
00026 #include <memory>
00027 
00028 // user include files
00029 #include "FWCore/Framework/interface/Frameworkfwd.h"
00030 #include "FWCore/Framework/interface/EDAnalyzer.h"
00031 #include "DQMServices/Core/interface/DQMStore.h"
00032 #include "FWCore/ServiceRegistry/interface/Service.h"
00033 #include "DQMServices/Core/interface/MonitorElement.h"
00034 
00035 
00036 #include "FWCore/Framework/interface/Event.h"
00037 #include "FWCore/Framework/interface/MakerMacros.h"
00038 
00039 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00040 
00041 #include "FWCore/ServiceRegistry/interface/Service.h"
00042 #include "CommonTools/UtilAlgos/interface/TFileService.h"
00043 
00044 #include "DataFormats/Common/interface/Handle.h"
00045 #include "DataFormats/Candidate/interface/Candidate.h"
00046 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
00047 
00048 #include <map>
00049 #include <string>
00050 
00051 //
00052 // class declaration
00053 //
00054 
00055 class TTbar_GenLepAnalyzer : public edm::EDAnalyzer {
00056    public:
00057       explicit TTbar_GenLepAnalyzer(const edm::ParameterSet&);
00058       ~TTbar_GenLepAnalyzer();
00059 
00060       static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
00061 
00062 
00063    private:
00064       virtual void beginJob() ;
00065       virtual void analyze(const edm::Event&, const edm::EventSetup&);
00066       virtual void endJob() ;
00067 
00068       virtual void beginRun(edm::Run const&, edm::EventSetup const&);
00069       virtual void endRun(edm::Run const&, edm::EventSetup const&);
00070       virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
00071       virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
00072 
00073       // ----------member data ---------------------------
00075       DQMStore *dbe;
00076 
00077       edm::InputTag leps_;
00078       std::map<std::string, MonitorElement*> hists_;
00079   
00080       bool do_e_, do_mu_, do_tau_, do_nu_e_, do_nu_mu_, do_nu_tau_;
00081       double pt_cut_, eta_cut_;
00082       int pdgid;
00083 };
00084 
00085 #endif