File indexing completed on 2024-04-06 12:32:09
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 #ifndef TTbar_GenLepAnalyzer_H
0021 #define TTbar_GenLepAnalyzer_H
0022
0023
0024 #include <memory>
0025
0026
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
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
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