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";
300 edm::LogInfo(
"Tutorial") <<
"Number of Muons: " << muonsHandle->size();
333 theData[0] = muon->isolationR03().sumPt;
334 theData[1] = muon->isolationR03().emEt;
335 theData[2] = muon->isolationR03().hadEt;
336 theData[3] = muon->isolationR03().hoEt;
338 theData[4] = muon->isolationR03().nTracks;
339 theData[5] = muon->isolationR03().nJets;
340 theData[6] = muon->isolationR03().trackerVetoPt;
341 theData[7] = muon->isolationR03().emVetoEt;
342 theData[8] = muon->isolationR03().hadVetoEt;
343 theData[9] = muon->isolationR03().hoVetoEt;
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];
376 edm::LogInfo(
"Tutorial") <<
"\n#########################################\n\n"
377 <<
"Lets get started! "
378 <<
"\n\n#########################################\n";
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";
420 for(
int var = 0; var <
NUM_VARS; var++){
458 for(
int var=0; var<
NUM_VARS; var++){
488 for(
int var=0; var<
NUM_VARS; var++){
493 overFlowBin = (int)
param[var][0] + 1;
void RecordData(MuonIterator muon)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
MonitorElement * h_nMuons
void cd(void)
go to top directory (ie. root)
#define DEFINE_FWK_MODULE(type)
MuonIsolationDQM(const edm::ParameterSet &)
std::vector< MonitorElement * > h_1D
std::vector< std::string > main_titles
edm::View< reco::Muon >::const_iterator MuonIterator
std::vector< std::string > names
std::vector< std::vector< double > > param
virtual void beginJob(void)
std::vector< int > isContinuous
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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)
void setCurrentFolder(const std::string &fullpath)
TH1 * GetTH1FromMonitorElement(MonitorElement *me)