#include <TopMuonAnalyzer.h>
Definition at line 13 of file TopMuonAnalyzer.h.
Definition at line 5 of file TopMuonAnalyzer.cc.
References en_, eta_, TFileDirectory::make(), mult_, phi_, and pt_.
11 mult_ = fs->
make<TH1F>(
"mult",
"multiplicity (muons)", 10, 0 , 10);
12 en_ = fs->
make<TH1F>(
"en" ,
"energy (muons)", 60, 0., 300.);
13 pt_ = fs->make<TH1F>(
"pt" ,
"pt (muons)", 60, 0., 300.);
14 eta_ = fs->make<TH1F>(
"eta" ,
"eta (muons)", 30, -3., 3.);
15 phi_ = fs->make<TH1F>(
"phi" ,
"phi (muons)", 40, -4., 4.);
T getParameter(std::string const &) const
T * make() const
make new ROOT object
TopMuonAnalyzer::~TopMuonAnalyzer |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 24 of file TopMuonAnalyzer.cc.
References gather_cfg::cout, en_, eta_, edm::Event::getByLabel(), i, input_, mult_, metsig::muon, patZpeak::muons, phi_, pt_, and verbose_.
31 mult_->Fill( muons->size() );
32 for(std::vector<pat::Muon>::const_iterator
muon=muons->begin();
muon!=muons->end(); ++
muon){
46 std::cout <<
"==================================================================="
49 << std::setw(13) <<
"pt :"
50 << std::setw(13) <<
"eta :"
51 << std::setw(13) <<
"phi :"
52 << std::setw(13) <<
"relIso :"
53 << std::setw(6 ) <<
"GLB :"
54 << std::setw(4 ) <<
"TRK" << std::endl;
55 std::cout <<
"-------------------------------------------------------------------"
57 for(std::vector<pat::Muon>::const_iterator
muon=muons->begin();
muon!=muons->end(); ++
muon){
59 << std::setw(10) <<
muon->pt() <<
" : "
60 << std::setw(10) <<
muon->eta() <<
" : "
61 << std::setw(10) <<
muon->phi() <<
" : "
62 << std::setw(10) << (
muon->trackIso()+
muon->caloIso())/
muon->pt() <<
" : "
63 << std::setw( 3) <<
muon->isGlobalMuon() <<
" : "
64 << std::setw( 3) <<
muon->isTrackerMuon() << std::endl;
67 std::cout <<
"==================================================================="
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void TopMuonAnalyzer::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
void TopMuonAnalyzer::endJob |
( |
void |
| ) |
|
|
privatevirtual |
TH1F* TopMuonAnalyzer::en_ |
|
private |
TH1F* TopMuonAnalyzer::eta_ |
|
private |
TH1F* TopMuonAnalyzer::mult_ |
|
private |
TH1F* TopMuonAnalyzer::phi_ |
|
private |
TH1F* TopMuonAnalyzer::pt_ |
|
private |
bool TopMuonAnalyzer::verbose_ |
|
private |