5 verbose_(
cfg.getParameter<
bool>(
"verbose")) {
8 mult_ = fs->
make<TH1F>(
"mult",
"multiplicity (electrons)", 10, 0, 10);
9 en_ = fs->
make<TH1F>(
"en",
"energy (electrons)", 60, 0., 300.);
10 pt_ = fs->
make<TH1F>(
"pt",
"pt (electrons)", 60, 0., 300.);
11 eta_ = fs->
make<TH1F>(
"eta",
"eta (electrons)", 30, -3., 3.);
12 phi_ = fs->
make<TH1F>(
"phi",
"phi (electrons)", 40, -4., 4.);
24 for (std::vector<pat::Electron>::const_iterator elec =
elecs->begin(); elec !=
elecs->end(); ++elec) {
25 en_->Fill(elec->energy());
26 pt_->Fill(elec->pt());
27 eta_->Fill(elec->eta());
28 phi_->Fill(elec->phi());
38 std::cout <<
"=======================================================" << std::endl;
39 std::cout << std::setw(5) <<
"ele :" << std::setw(13) <<
"et :" << std::setw(13) <<
"eta :" << std::setw(13)
40 <<
"phi :" << std::setw(11) <<
"relIso" << std::endl;
41 std::cout <<
"-------------------------------------------------------" << std::endl;
42 for (std::vector<pat::Electron>::const_iterator elec =
elecs->begin(); elec !=
elecs->end(); ++elec) {
43 std::cout << std::setw(3) <<
i <<
" : " << std::setw(10) << elec->pt() <<
" : " << std::setw(10) << elec->eta()
44 <<
" : " << std::setw(10) << elec->phi() <<
" : " << std::setw(10)
45 << (elec->dr03TkSumPt() + elec->dr03EcalRecHitSumEt() + elec->dr03HcalTowerSumEt()) / elec->et()
49 std::cout <<
"=======================================================" << std::endl;