5 jets_(iConfig.getParameter<edm::
InputTag>(
"jets")),
6 genEventInfoProductTag_(iConfig.getParameter<edm::
InputTag>(
"genEventInfoProductTag"))
25 if(!evt_info.isValid())
return;
26 weight = evt_info->weight() ;
32 if(!
jets.isValid())
return;
35 for(std::vector<reco::GenJet>::const_iterator jet_it=
jets->begin(); jet_it!=
jets->end(); ++jet_it){
61 hists_[
"jetPtAll" ] = dqm.
book1dHisto(
"TTbar_jetPtAll" ,
"pt" , 1000, 0., 1000.,
"P_{t}^{All-Jets} (GeV)",
"Number of Events");
62 hists_[
"jetPt1" ] = dqm.
book1dHisto(
"TTbar_jetPt1" ,
"pt" , 1000, 0., 1000.,
"P_{t}^{1st-Jet} (GeV)",
"Number of Events");
63 hists_[
"jetPt2" ] = dqm.
book1dHisto(
"TTbar_jetPt2" ,
"pt" , 1000, 0., 1000.,
"P_{t}^{2nd-Jet} (GeV)",
"Number of Events");
64 hists_[
"jetPt3" ] = dqm.
book1dHisto(
"TTbar_jetPt3" ,
"pt" , 1000, 0., 1000.,
"P_{t}^{3rd-Jet} (GeV)",
"Number of Events");
65 hists_[
"jetPt4" ] = dqm.
book1dHisto(
"TTbar_jetPt4" ,
"pt" , 1000, 0., 1000.,
"P_{t}^{4th-Jet} (GeV)",
"Number of Events");
67 hists_[
"jetEtaAll"] = dqm.
book1dHisto(
"TTbar_jetEtaAll",
"eta", 100, -5., 5.,
"#eta^{All-Jets}",
"Number of Events");
68 hists_[
"jetEta1" ] = dqm.
book1dHisto(
"TTbar_jetEta1" ,
"eta", 100, -5., 5.,
"#eta^{1st-Jet}",
"Number of Events");
69 hists_[
"jetEta2" ] = dqm.
book1dHisto(
"TTbar_jetEta2" ,
"eta", 100, -5., 5.,
"#eta^{2nd-Jet}",
"Number of Events");
70 hists_[
"jetEta3" ] = dqm.
book1dHisto(
"TTbar_jetEta3" ,
"eta", 100, -5., 5.,
"#eta^{3rd-Jet}",
"Number of Events");
71 hists_[
"jetEta4" ] = dqm.
book1dHisto(
"TTbar_jetEta4" ,
"eta", 100, -5., 5.,
"#eta^{4th-Jet}",
"Number of Events");
edm::EDGetTokenT< std::vector< reco::GenJet > > jetsToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
MonitorElement * book1dHisto(std::string name, std::string title, int n, double xmin, double xmax, std::string xaxis, std::string yaxis)
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
edm::InputTag genEventInfoProductTag_
edm::EDGetTokenT< GenEventInfoProduct > genEventInfoProductTagToken_
std::map< std::string, MonitorElement * > hists_
void setCurrentFolder(const std::string &fullpath)
TTbar_GenJetAnalyzer(const edm::ParameterSet &)