#include <MuonIsolationDQM.h>
Definition at line 56 of file MuonIsolationDQM.h.
Definition at line 63 of file MuonIsolationDQM.cc.
References DQMStore::cd(), dbe, dirName, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), h_1D, InitStatics(), Muon_Tag, nEvents, nGLBMuons, nSTAMuons, nTRKMuons, NUM_VARS, cppFunctionSkipper::operator, requireGLBMuon, requireSTAMuon, and requireTRKMuon.
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
void cd(void)
go to top directory (ie. root)
std::vector< MonitorElement * > h_1D
static const int NUM_VARS
MuonIsolationDQM::~MuonIsolationDQM |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 290 of file MuonIsolationDQM.cc.
References DQMStore::cd(), dbe, dirName, MonitorElement::Fill(), FillHistos(), edm::Event::getByLabel(), h_nMuons, metsig::muon, Muon_Tag, nEvents, nGLBMuons, nSTAMuons, nTRKMuons, RecordData(), requireGLBMuon, requireSTAMuon, requireTRKMuon, DQMStore::setCurrentFolder(), and theMuonData.
300 edm::LogInfo(
"Tutorial") <<
"Number of Muons: " << muonsHandle->size();
void RecordData(MuonIterator muon)
MonitorElement * h_nMuons
void cd(void)
go to top directory (ie. root)
edm::View< reco::Muon >::const_iterator MuonIterator
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
void setCurrentFolder(const std::string &fullpath)
void MuonIsolationDQM::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
void MuonIsolationDQM::endJob |
( |
void |
| ) |
|
|
privatevirtual |
Reimplemented from edm::EDAnalyzer.
Definition at line 387 of file MuonIsolationDQM.cc.
References dbe, dirName, DQMStore::get(), nEvents, and NormalizeHistos().
398 edm::LogInfo(
"Tutorial") <<
"\n#########################################\n\n"
399 <<
"Total Number of Events: " <<
nEvents
400 <<
"\n\n#########################################\n"
401 <<
"\nInitializing Histograms...\n";
403 edm::LogInfo(
"Tutorial") <<
"\nIntializing Finished. Filling...\n";
407 edm::LogInfo(
"Tutorial") <<
"\nSaved. Peace, homie, I'm out.\n";
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
void MuonIsolationDQM::FillHistos |
( |
| ) |
|
|
private |
TH1 * MuonIsolationDQM::GetTH1FromMonitorElement |
( |
MonitorElement * |
me | ) |
|
|
private |
void MuonIsolationDQM::InitHistos |
( |
| ) |
|
|
private |
Definition at line 411 of file MuonIsolationDQM.cc.
References axis_titles, DQMStore::book1D(), dbe, GetTH1FromMonitorElement(), h_1D, h_nMuons, main_titles, names, NUM_VARS, param, MonitorElement::setAxisTitle(), title_cone, title_sam, XAXIS, and YAXIS.
Referenced by beginJob().
420 for(
int var = 0; var <
NUM_VARS; var++){
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * h_nMuons
std::vector< MonitorElement * > h_1D
std::vector< std::string > main_titles
std::vector< std::string > names
std::vector< std::vector< double > > param
std::vector< std::string > axis_titles
static const int NUM_VARS
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
TH1 * GetTH1FromMonitorElement(MonitorElement *me)
void MuonIsolationDQM::InitStatics |
( |
| ) |
|
|
private |
Definition at line 118 of file MuonIsolationDQM.cc.
References axis_titles, isContinuous, L_BIN_WIDTH, LOG_BINNING_ENABLED, LOG_BINNING_RATIO, main_titles, names, NUM_LOG_BINS, NUM_VARS, param, S_BIN_WIDTH, title_cone, and title_sam.
Referenced by MuonIsolationDQM().
144 main_titles[0 ] =
"Total Tracker Momentum, #Delta R = 0.3";
145 main_titles[1 ] =
"Total EM Cal Energy, #Delta R = 0.3";
146 main_titles[2 ] =
"Total Had Cal Energy, #Delta R = 0.3";
147 main_titles[3 ] =
"Total HO Cal Energy, #Delta R = 0.3";
148 main_titles[4 ] =
"Number of Tracker Tracks, #Delta R = 0.3";
149 main_titles[5 ] =
"Number of Jets around Muon, #Delta R = 0.3";
150 main_titles[6 ] =
"Tracker p_{T} within veto cone, #Delta R = 0.3";
151 main_titles[7 ] =
"EM E_{T} within veto cone, #Delta R = 0.3";
152 main_titles[8 ] =
"Had E_{T} within veto cone, #Delta R = 0.3";
153 main_titles[9 ] =
"HO E_{T} within veto cone, #Delta R = 0.3";
154 main_titles[10] =
"Average Momentum per Track, #Delta R = 0.3";
155 main_titles[11] =
"Weighted Energy, #Delta R = 0.3";
157 main_titles[12] =
"Total Tracker Momentum, #Delta R = 0.5";
158 main_titles[13] =
"Total EM Cal Energy, #Delta R = 0.5";
159 main_titles[14] =
"Total Had Cal Energy, #Delta R = 0.5";
160 main_titles[15] =
"Total HO Cal Energy, #Delta R = 0.5";
161 main_titles[16] =
"Number of Tracker Tracks, #Delta R = 0.5";
162 main_titles[17] =
"Number of Jets around Muon, #Delta R = 0.5";
163 main_titles[18] =
"Tracker p_{T} within veto cone, #Delta R = 0.5";
164 main_titles[19] =
"EM E_{T} within veto cone, #Delta R = 0.5";
165 main_titles[20] =
"Had E_{T} within veto cone, #Delta R = 0.5";
166 main_titles[21] =
"HO E_{T} within veto cone, #Delta R = 0.5";
167 main_titles[22] =
"Average Momentum per Track, #Delta R = 0.5";
168 main_titles[23] =
"Weighted Energy, #Delta R = 0.5";
181 axis_titles[10] =
"#Sigma p_{T} / N_{Tracks} (GeV)";
182 axis_titles[11] =
"(1.5) X #Sigma E_{T}^{EM} + #Sigma E_{T}^{Had}";
194 axis_titles[22] =
"#Sigma p_{T} / N_{Tracks} (GeV)";
195 axis_titles[23] =
"(1.5) X #Sigma E_{T}^{EM} + #Sigma E_{T}^{Had}";
198 names[0 ] =
"sumPt_R03";
199 names[1 ] =
"emEt_R03";
200 names[2 ] =
"hadEt_R03";
201 names[3 ] =
"hoEt_R03";
202 names[4 ] =
"nTracks_R03";
203 names[5 ] =
"nJets_R03";
204 names[6 ] =
"trackerVetoPt_R03";
205 names[7 ] =
"emVetoEt_R03";
206 names[8 ] =
"hadVetoEt_R03";
207 names[9 ] =
"hoVetoEt_R03";
208 names[10] =
"avgPt_R03";
209 names[11] =
"weightedEt_R03";
211 names[12] =
"sumPt_R05";
212 names[13] =
"emEt_R05";
213 names[14] =
"hadEt_R05";
214 names[15] =
"hoEt_R05";
215 names[16] =
"nTracks_R05";
216 names[17] =
"nJets_R05";
217 names[18] =
"trackerVetoPt_R05";
218 names[19] =
"emVetoEt_R05";
219 names[20] =
"hadVetoEt_R05";
220 names[21] =
"hoVetoEt_R05";
221 names[22] =
"avgPt_R05";
222 names[23] =
"weightedEt_R05";
std::vector< std::string > main_titles
std::vector< std::string > names
std::vector< std::vector< double > > param
std::vector< int > isContinuous
std::vector< std::string > axis_titles
static const int NUM_VARS
void MuonIsolationDQM::NormalizeHistos |
( |
| ) |
|
|
private |
Definition at line 330 of file MuonIsolationDQM.cc.
References theData.
Referenced by analyze().
351 theData[12] =
muon->isolationR05().sumPt;
352 theData[13] =
muon->isolationR05().emEt;
353 theData[14] =
muon->isolationR05().hadEt;
354 theData[15] =
muon->isolationR05().hoEt;
356 theData[16] =
muon->isolationR05().nTracks;
357 theData[17] =
muon->isolationR05().nJets;
358 theData[18] =
muon->isolationR05().trackerVetoPt;
359 theData[19] =
muon->isolationR05().emVetoEt;
360 theData[20] =
muon->isolationR05().hadVetoEt;
361 theData[21] =
muon->isolationR05().hoVetoEt;
364 if (theData[16] != 0) theData[22] = (double)theData[12] / (
double)theData[16];
365 else theData[22] = -99;
367 theData[23] = 1.5 * theData[13] + theData[14];
std::vector<std::string> MuonIsolationDQM::axis_titles |
|
private |
std::string MuonIsolationDQM::dirName |
|
private |
std::vector<int> MuonIsolationDQM::isContinuous |
|
private |
double MuonIsolationDQM::L_BIN_WIDTH |
|
private |
int MuonIsolationDQM::LOG_BINNING_ENABLED |
|
private |
double MuonIsolationDQM::LOG_BINNING_RATIO |
|
private |
std::vector<std::string> MuonIsolationDQM::main_titles |
|
private |
std::vector<std::string> MuonIsolationDQM::names |
|
private |
int MuonIsolationDQM::nEvents |
|
private |
int MuonIsolationDQM::nGLBMuons |
|
private |
int MuonIsolationDQM::nSTAMuons |
|
private |
int MuonIsolationDQM::nTRKMuons |
|
private |
int MuonIsolationDQM::NUM_LOG_BINS |
|
private |
const int MuonIsolationDQM::NUM_VARS = 24 |
|
staticprivate |
std::vector< std::vector<double> > MuonIsolationDQM::param |
|
private |
bool MuonIsolationDQM::requireGLBMuon |
|
private |
bool MuonIsolationDQM::requireSTAMuon |
|
private |
bool MuonIsolationDQM::requireTRKMuon |
|
private |
std::string MuonIsolationDQM::rootfilename |
|
private |
double MuonIsolationDQM::S_BIN_WIDTH |
|
private |
double MuonIsolationDQM::theData[NUM_VARS] |
|
private |
int MuonIsolationDQM::theMuonData |
|
private |
std::string MuonIsolationDQM::title_cone |
|
private |
std::string MuonIsolationDQM::title_sam |
|
private |