5 jets_(iConfig.getParameter<edm::InputTag>(
"jets")),
6 genEventInfoProductTag_(iConfig.getParameter<edm::InputTag>(
"genEventInfoProductTag"))
41 if(!evt_info.isValid())
return;
42 weight = evt_info->weight() ;
48 if(!
jets.isValid())
return;
51 for(std::vector<reco::GenJet>::const_iterator jet_it=
jets->begin(); jet_it!=
jets->end(); ++jet_it){
58 if (njets == 1) {
hists_[
"jetPt1" ]->Fill( jet_it->pt() ,
weight );
61 if (njets == 2) {
hists_[
"jetPt2" ]->Fill( jet_it->pt() ,
weight );
64 if (njets == 3) {
hists_[
"jetPt3" ]->Fill( jet_it->pt() ,
weight );
67 if (njets == 4) {
hists_[
"jetPt4" ]->Fill( jet_it->pt() ,
weight );
81 hists_[
"jetPtAll" ] =
dbe->
book1D(
"TTbar_jetPtAll" ,
"pt" , 1000, 0., 1000.);
82 hists_[
"jetPt1" ] =
dbe->
book1D(
"TTbar_jetPt1" ,
"pt" , 1000, 0., 1000.);
83 hists_[
"jetPt2" ] =
dbe->
book1D(
"TTbar_jetPt2" ,
"pt" , 1000, 0., 1000.);
84 hists_[
"jetPt3" ] =
dbe->
book1D(
"TTbar_jetPt3" ,
"pt" , 1000, 0., 1000.);
85 hists_[
"jetPt4" ] =
dbe->
book1D(
"TTbar_jetPt4" ,
"pt" , 1000, 0., 1000.);
87 hists_[
"jetEtaAll"] =
dbe->
book1D(
"TTbar_jetEtaAll",
"eta", 100, -5., 5.);
88 hists_[
"jetEta1" ] =
dbe->
book1D(
"TTbar_jetEta1" ,
"eta", 100, -5., 5.);
89 hists_[
"jetEta2" ] =
dbe->
book1D(
"TTbar_jetEta2" ,
"eta", 100, -5., 5.);
90 hists_[
"jetEta3" ] =
dbe->
book1D(
"TTbar_jetEta3" ,
"eta", 100, -5., 5.);
91 hists_[
"jetEta4" ] =
dbe->
book1D(
"TTbar_jetEta4" ,
"eta", 100, -5., 5.);
edm::EDGetTokenT< std::vector< reco::GenJet > > jetsToken_
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
edm::InputTag genEventInfoProductTag_
edm::EDGetTokenT< GenEventInfoProduct > genEventInfoProductTagToken_
std::map< std::string, MonitorElement * > hists_
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
DQMStore * dbe
ME's "container".
virtual void endRun(edm::Run const &, edm::EventSetup const &)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
void setCurrentFolder(const std::string &fullpath)
TTbar_GenJetAnalyzer(const edm::ParameterSet &)