142 main_titles[6 ] =
"Tracker p_{T} within veto cone";
172 axis_titles[13] =
"#Sigma p_{T} / N_{Tracks} (GeV)";
173 axis_titles[14] =
"(1.5) X #Sigma E_{T}^{EM} + #Sigma E_{T}^{Had}";
186 names[4 ] =
"nTracks";
188 names[6 ] =
"trackerVetoPt";
189 names[7 ] =
"emVetoEt";
190 names[8 ] =
"hadVetoEt";
191 names[9 ] =
"hoVetoEt";
192 names[10] =
"muonPt";
193 names[11] =
"muonEta";
194 names[12] =
"muonPhi";
196 names[14] =
"weightedEt";
197 names[15] =
"PFsumChargedHadronPt";
198 names[16] =
"PFsumChargedTotalPt";
199 names[17] =
"PFsumEMuPt";
200 names[18] =
"PFsumNeutralHadronEt";
201 names[19] =
"PFsumPhotonEt";
202 names[20] =
"PFsumPUPt";
294 edm::LogInfo(
"Tutorial") <<
"Number of Muons: " << muonsHandle->size();
303 if (
muon->combinedMuon().isNull())
continue;
314 theData[0] = muon->isolationR03().sumPt;
315 theData[1] = muon->isolationR03().emEt;
316 theData[2] = muon->isolationR03().hadEt;
317 theData[3] = muon->isolationR03().hoEt;
319 theData[4] = muon->isolationR03().nTracks;
320 theData[5] = muon->isolationR03().nJets;
321 theData[6] = muon->isolationR03().trackerVetoPt;
322 theData[7] = muon->isolationR03().emVetoEt;
323 theData[8] = muon->isolationR03().hadVetoEt;
324 theData[9] = muon->isolationR03().hoVetoEt;
343 if ( muon->isPFMuon() && muon->isPFIsolationValid() ) {
344 theData[15] = muon->pfIsolationR03().sumChargedHadronPt;
345 theData[16] = muon->pfIsolationR03().sumChargedParticlePt;
346 theData[17] = muon->pfIsolationR03().sumChargedParticlePt-muon->pfIsolationR03().sumChargedHadronPt;
347 theData[18] = muon->pfIsolationR03().sumNeutralHadronEt;
348 theData[19] = muon->pfIsolationR03().sumPhotonEt;
349 theData[20] = muon->pfIsolationR03().sumPUPt;
365 for(
int var = 0; var <
NUM_VARS; var++){
374 h_1D[var]->setAxisTitle(
"Fraction of Muons",
YAXIS);
392 for(
int var1 = 0; var1 <
NUM_VARS; var1++){
393 for(
int var2 = 0; var2 <
NUM_VARS; var2++){
394 if(var1 == var2)
continue;
447 p_2D[4][9]->setAxisRange(0.5,15.5,
XAXIS);
457 const double first_bin_width = (r > 1.0) ?
458 (max -
min)*(1-r)/(1-
pow(r,nbins)) :
462 bin_edges[1] = min + first_bin_width;
464 bin_edges[
n] = bin_edges[
n-1] + (bin_edges[
n-1] - bin_edges[
n-2])*r;
470 for(
int var=0; var<
NUM_VARS; var++){
477 if (entries==0)
continue;
481 int n_max = int(
param[var][0])+1;
482 for(
int n=1;
n<=n_max; ++
n){
495 for(
int var=0; var<
NUM_VARS; var++){
501 for(
int var1=0; var1<
NUM_VARS; ++var1){
502 for(
int var2=0; var2<
NUM_VARS; ++var2){
503 if(var1 == var2)
continue;
void RecordData(MuonIterator muon)
T getUntrackedParameter(std::string const &, T const &) const
std::vector< int > isContinuous
TH1 * GetTH1FromMonitorElement(MonitorElement *me)
std::vector< std::vector< MonitorElement * > > p_2D
std::vector< std::string > names
MonitorElement * bookProfile(Args &&...args)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::View< reco::Muon >::const_iterator MuonIterator
std::vector< std::string > main_titles
TH2 * GetTH2FromMonitorElement(MonitorElement *me)
MuIsoValidation(const edm::ParameterSet &)
std::vector< MonitorElement * > h_1D
TProfile * GetTProfileFromMonitorElement(MonitorElement *me)
edm::EDGetTokenT< edm::View< reco::Muon > > Muon_Token
MonitorElement * h_nMuons
edm::ParameterSet iConfig
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::vector< MonitorElement * > cd_plots
MonitorElement * book1D(Args &&...args)
static const int NUM_VARS
void setCurrentFolder(const std::string &fullpath)
std::vector< std::vector< double > > param
TProfile * getTProfile(void) const
void MakeLogBinsForProfile(Double_t *bin_edges, const double min, const double max)
std::vector< std::string > axis_titles
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
TH2F * getTH2F(void) const
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Power< A, B >::type pow(const A &a, const B &b)
std::string subsystemname_
std::vector< int > cdCompNeeded