CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
EwkMuDQM Class Reference

#include <EwkMuDQM.h>

Inheritance diagram for EwkMuDQM:
edm::EDAnalyzer

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void beginRun (const edm::Run &, const edm::EventSetup &)
 
virtual void endJob ()
 
virtual void endRun (const edm::Run &, const edm::EventSetup &)
 
 EwkMuDQM (const edm::ParameterSet &)
 
void init_histograms ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Attributes

MonitorElementacop_after_
 
MonitorElementacop_before_
 
double acopCut_
 
MonitorElementdimuonmass_afterZ_
 
MonitorElementdimuonmass_before_
 
double dimuonMassMax_
 
double dimuonMassMin_
 
MonitorElementdxy1_afterZ_
 
MonitorElementdxy2_afterZ_
 
MonitorElementdxy_after_
 
MonitorElementdxy_before_
 
double dxyCut_
 
double eJetMin_
 
MonitorElementeta1_afterZ_
 
MonitorElementeta2_afterZ_
 
MonitorElementeta_after_
 
MonitorElementeta_before_
 
double etaCut_
 
MonitorElementgoodewkmuon1_afterZ_
 
MonitorElementgoodewkmuon2_afterZ_
 
MonitorElementgoodewkmuon_after_
 
MonitorElementgoodewkmuon_before_
 
HLTConfigProvider hltConfigProvider_
 
bool isAlsoTrackerMuon_
 
bool isCombinedIso_
 
MonitorElementiso1_afterZ_
 
MonitorElementiso2_afterZ_
 
MonitorElementiso_after_
 
MonitorElementiso_before_
 
double isoCut03_
 
bool isRelativeIso_
 
bool isValidHltConfig_
 
edm::InputTag jetTag_
 
MonitorElementleadingjet_eta_after_
 
MonitorElementleadingjet_eta_afterZ_
 
MonitorElementleadingjet_eta_before_
 
MonitorElementleadingjet_pt_after_
 
MonitorElementleadingjet_pt_afterZ_
 
MonitorElementleadingjet_pt_before_
 
MonitorElementmet_after_
 
MonitorElementmet_afterZ_
 
MonitorElementmet_before_
 
double metMax_
 
double metMin_
 
edm::InputTag metTag_
 
MonitorElementmt_after_
 
MonitorElementmt_before_
 
double mtMax_
 
double mtMin_
 
MonitorElementmuoncharge_after_
 
MonitorElementmuoncharge_afterZ_
 
MonitorElementmuoncharge_before_
 
int muonHitsCut_
 
edm::InputTag muonTag_
 
MonitorElementn_zselPt1thr_
 
MonitorElementn_zselPt2thr_
 
unsigned int nall
 
MonitorElementngoodmuons_
 
unsigned int nhlt
 
unsigned int niso
 
int nJetMax_
 
MonitorElementnjets_after_
 
MonitorElementnjets_afterZ_
 
MonitorElementnjets_before_
 
int nMatchesCut_
 
unsigned int nmet
 
MonitorElementnmuons_
 
double normalizedChi2Cut_
 
MonitorElementnpfph_
 
MonitorElementnph_
 
int nPhoMax_
 
MonitorElementnpvs_after_
 
MonitorElementnpvs_afterZ_
 
MonitorElementnpvs_before_
 
unsigned int nrec
 
unsigned int nsel
 
unsigned int nz
 
MonitorElementpfphEta_
 
edm::InputTag pfPhoTag_
 
MonitorElementpfphPt_
 
MonitorElementphEta_
 
edm::InputTag phoTag_
 
MonitorElementphPt_
 
int pixelHitsCut_
 
MonitorElementpt1_afterZ_
 
MonitorElementpt2_afterZ_
 
MonitorElementpt_after_
 
MonitorElementpt_before_
 
double ptCut_
 
MonitorElementptDiffPM_afterZ_
 
MonitorElementptDiffPM_before_
 
double ptThrForPhoton_
 
double ptThrForZ1_
 
double ptThrForZ2_
 
DQMStoretheDbe
 
int trackerHitsCut_
 
MonitorElementtrig_after_
 
MonitorElementtrig_before_
 
std::vector< std::string > trigPathNames_
 
edm::InputTag trigTag_
 
edm::InputTag vertexTag_
 
MonitorElementztrig_afterZ_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

DQM offline for EWKMu

Definition at line 19 of file EwkMuDQM.h.

Constructor & Destructor Documentation

EwkMuDQM::EwkMuDQM ( const edm::ParameterSet cfg)

Definition at line 37 of file EwkMuDQM.cc.

References init_histograms(), isValidHltConfig_, cppFunctionSkipper::operator, DQMStore::setCurrentFolder(), and theDbe.

37  :
38  // Input collections
39  trigTag_ (cfg.getUntrackedParameter<edm::InputTag> ("TrigTag", edm::InputTag("TriggerResults::HLT"))),
40  muonTag_ (cfg.getUntrackedParameter<edm::InputTag> ("MuonTag", edm::InputTag("muons"))),
41  metTag_ (cfg.getUntrackedParameter<edm::InputTag> ("METTag", edm::InputTag("pfmet"))),
42  jetTag_ (cfg.getUntrackedParameter<edm::InputTag> ("JetTag", edm::InputTag("ak5PFJets"))),
43  phoTag_ (cfg.getUntrackedParameter<edm::InputTag> ("phoTag", edm::InputTag("photons"))),
44  pfPhoTag_ (cfg.getUntrackedParameter<edm::InputTag> ("pfPhoTag", edm::InputTag("pfPhotonTranslator","pfPhot"))),
45  vertexTag_ (cfg.getUntrackedParameter<edm::InputTag> ("VertexTag", edm::InputTag("offlinePrimaryVertices"))),
46  trigPathNames_(cfg.getUntrackedParameter<std::vector <std::string> >("TrigPathNames")),
47 
48  // Muon quality cuts
49  isAlsoTrackerMuon_(cfg.getUntrackedParameter<bool>("IsAlsoTrackerMuon", true)), // Glb muon also tracker muon
50  dxyCut_ (cfg.getUntrackedParameter<double>("DxyCut", 0.2)), // dxy < 0.2 cm
51  normalizedChi2Cut_(cfg.getUntrackedParameter<double>("NormalizedChi2Cut", 10.)), // chi2/ndof (of global fit) <10.0
52  trackerHitsCut_ (cfg.getUntrackedParameter<int>("TrackerHitsCut", 11)), // Tracker Hits >10
53  pixelHitsCut_ (cfg.getUntrackedParameter<int>("PixelHitsCut", 1)), // Pixel Hits >0
54  muonHitsCut_ (cfg.getUntrackedParameter<int>("MuonHitsCut", 1)), // Valid Muon Hits >0
55  nMatchesCut_ (cfg.getUntrackedParameter<int>("NMatchesCut", 2)), // At least 2 Chambers with matches
56 
57  // W-boson cuts
58  isRelativeIso_(cfg.getUntrackedParameter<bool>("IsRelativeIso", true)),
59  isCombinedIso_(cfg.getUntrackedParameter<bool>("IsCombinedIso", false)),
60  isoCut03_ (cfg.getUntrackedParameter<double>("IsoCut03", 0.1)),
61  acopCut_ (cfg.getUntrackedParameter<double>("AcopCut", 999.)),
62  metMin_ (cfg.getUntrackedParameter<double>("MetMin", -999999.)),
63  metMax_ (cfg.getUntrackedParameter<double>("MetMax", 999999.)),
64  mtMin_ (cfg.getUntrackedParameter<double>("MtMin", 50.)),
65  mtMax_ (cfg.getUntrackedParameter<double>("MtMax", 200.)),
66  ptCut_ (cfg.getUntrackedParameter<double>("PtCut", 20.)),
67  etaCut_ (cfg.getUntrackedParameter<double>("EtaCut", 2.4)),
68 
69  // Z rejection
70  ptThrForZ1_ (cfg.getUntrackedParameter<double>("PtThrForZ1", 20.)),
71  ptThrForZ2_ (cfg.getUntrackedParameter<double>("PtThrForZ2", 10.)),
72 
73  // Z selection
74  dimuonMassMin_(cfg.getUntrackedParameter<double>("dimuonMassMin", 80.)),
75  dimuonMassMax_(cfg.getUntrackedParameter<double>("dimuonMassMax", 120.)),
76 
77  // Top rejection
78  eJetMin_ (cfg.getUntrackedParameter<double>("EJetMin", 999999.)),
79  nJetMax_ (cfg.getUntrackedParameter<int>("NJetMax", 999999)),
80 
81  // Photon cuts
82  ptThrForPhoton_(cfg.getUntrackedParameter<double>("ptThrForPhoton",5.)),
83  nPhoMax_(cfg.getUntrackedParameter<int>("nPhoMax", 999999))
84 {
85  isValidHltConfig_ = false;
86 
88  theDbe->setCurrentFolder("Physics/EwkMuDQM");
90 
91 }
T getUntrackedParameter(std::string const &, T const &) const
DQMStore * theDbe
Definition: EwkMuDQM.h:84
double etaCut_
Definition: EwkMuDQM.h:59
int nMatchesCut_
Definition: EwkMuDQM.h:46
double mtMax_
Definition: EwkMuDQM.h:56
double ptThrForPhoton_
Definition: EwkMuDQM.h:70
double metMax_
Definition: EwkMuDQM.h:54
double ptCut_
Definition: EwkMuDQM.h:58
double isoCut03_
Definition: EwkMuDQM.h:50
edm::InputTag trigTag_
Definition: EwkMuDQM.h:31
std::vector< std::string > trigPathNames_
Definition: EwkMuDQM.h:38
double eJetMin_
Definition: EwkMuDQM.h:67
double metMin_
Definition: EwkMuDQM.h:53
edm::InputTag muonTag_
Definition: EwkMuDQM.h:32
double ptThrForZ2_
Definition: EwkMuDQM.h:62
void init_histograms()
Definition: EwkMuDQM.cc:114
int nJetMax_
Definition: EwkMuDQM.h:68
double dxyCut_
Definition: EwkMuDQM.h:41
bool isAlsoTrackerMuon_
Definition: EwkMuDQM.h:40
double dimuonMassMin_
Definition: EwkMuDQM.h:64
edm::InputTag phoTag_
Definition: EwkMuDQM.h:35
bool isCombinedIso_
Definition: EwkMuDQM.h:49
double dimuonMassMax_
Definition: EwkMuDQM.h:65
bool isRelativeIso_
Definition: EwkMuDQM.h:48
edm::InputTag jetTag_
Definition: EwkMuDQM.h:34
int pixelHitsCut_
Definition: EwkMuDQM.h:44
double normalizedChi2Cut_
Definition: EwkMuDQM.h:42
edm::InputTag metTag_
Definition: EwkMuDQM.h:33
int trackerHitsCut_
Definition: EwkMuDQM.h:43
double mtMin_
Definition: EwkMuDQM.h:55
double ptThrForZ1_
Definition: EwkMuDQM.h:61
edm::InputTag pfPhoTag_
Definition: EwkMuDQM.h:36
int muonHitsCut_
Definition: EwkMuDQM.h:45
edm::InputTag vertexTag_
Definition: EwkMuDQM.h:37
int nPhoMax_
Definition: EwkMuDQM.h:71
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
double acopCut_
Definition: EwkMuDQM.h:52
bool isValidHltConfig_
Definition: EwkMuDQM.h:73

Member Function Documentation

void EwkMuDQM::analyze ( const edm::Event ev,
const edm::EventSetup iSet 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 254 of file EwkMuDQM.cc.

References acop_after_, acop_before_, acopCut_, DeDxDiscriminatorTools::charge(), reco::LeafCandidate::charge(), dimuonmass_afterZ_, dimuonmass_before_, dimuonMassMax_, dimuonMassMin_, dxy1_afterZ_, dxy2_afterZ_, dxy_after_, dxy_before_, dxyCut_, eJetMin_, reco::MuonIsolation::emEt, reco::LeafCandidate::et(), reco::LeafCandidate::eta(), eta(), eta1_afterZ_, eta2_afterZ_, eta_after_, eta_before_, etaCut_, MonitorElement::Fill(), newFWLiteAna::found, edm::Event::getByLabel(), reco::Muon::globalTrack(), goodewkmuon1_afterZ_, goodewkmuon2_afterZ_, goodewkmuon_after_, goodewkmuon_before_, reco::MuonIsolation::hadEt, hltConfigProvider_, i, getHLTprescales::index, reco::Muon::innerTrack(), isCombinedIso_, reco::Muon::isGlobalMuon(), edm::Ref< C, T, F >::isNull(), iso1_afterZ_, iso2_afterZ_, iso_after_, iso_before_, isoCut03_, reco::Muon::isolationR03(), isRelativeIso_, reco::Muon::isTrackerMuon(), reco::Vertex::isValid(), j, metsig::jet, jetTag_, findQualityFiles::jj, leadingjet_eta_after_, leadingjet_eta_afterZ_, leadingjet_eta_before_, leadingjet_pt_after_, leadingjet_pt_afterZ_, leadingjet_pt_before_, LogTrace, M_PI, CaloMET_cfi::met, met_after_, met_afterZ_, met_before_, metMax_, metMin_, metTag_, mt_after_, mt_before_, mtMax_, mtMin_, RPCpg::mu, muoncharge_after_, muoncharge_afterZ_, muoncharge_before_, muonHitsCut_, muonTag_, n_zselPt1thr_, n_zselPt2thr_, nall, ngoodmuons_, nJetMax_, njets_after_, njets_afterZ_, njets_before_, nMatchesCut_, nmuons_, normalizedChi2Cut_, nph_, npvs_after_, npvs_afterZ_, npvs_before_, reco::Muon::numberOfMatches(), reco::LeafCandidate::p(), phEta_, reco::LeafCandidate::phi(), phoTag_, phPt_, pixelHitsCut_, HLTConfigProvider::prescaleSize(), HLTConfigProvider::prescaleValue(), reco::LeafCandidate::pt(), pt1_afterZ_, pt2_afterZ_, pt_after_, pt_before_, ptCut_, ptDiffPM_afterZ_, ptDiffPM_before_, ptThrForPhoton_, ptThrForZ1_, ptThrForZ2_, reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), mathSSE::sqrt(), reco::MuonIsolation::sumPt, trackerHitsCut_, trig_after_, trig_before_, edm::TriggerNames::triggerName(), edm::Event::triggerNames(), patRefSel_triggerSelection_cff::triggerResults, trigNames, trigPathNames_, trigTag_, Geom::Phi< T >::value(), GoodVertex_cfg::vertexCollection, vertexTag_, and ztrig_afterZ_.

254  {
255 
256  // Muon collection
257  Handle<View<Muon> > muonCollection;
258  if (!ev.getByLabel(muonTag_, muonCollection)) {
259  //LogWarning("") << ">>> Muon collection does not exist !!!";
260  return;
261  }
262  unsigned int muonCollectionSize = muonCollection->size();
263 
264  // Beam spot
265  Handle<reco::BeamSpot> beamSpotHandle;
266  if (!ev.getByLabel(InputTag("offlineBeamSpot"), beamSpotHandle)) {
267  //LogWarning("") << ">>> No beam spot found !!!";
268  return;
269  }
270 
271 
272  // Loop to reject/control Z->mumu is done separately
273  unsigned int nmuonsForZ1 = 0;
274  unsigned int nmuonsForZ2 = 0;
275  bool cosmic = false;
276  for (unsigned int i=0; i<muonCollectionSize; i++) {
277  const Muon& mu = muonCollection->at(i);
278  if (!mu.isGlobalMuon()) continue;
279  double pt = mu.pt();
280  double dxy = mu.innerTrack()->dxy(beamSpotHandle->position());
281 
282  if (fabs(dxy)>1) { cosmic=true; break;}
283 
284  if (pt>ptThrForZ1_) nmuonsForZ1++;
285  if (pt>ptThrForZ2_) nmuonsForZ2++;
286 
287  for (unsigned int j=i+1; j<muonCollectionSize; j++) {
288  const Muon& mu2 = muonCollection->at(j);
289  if (mu2.isGlobalMuon() && (mu.charge()*mu2.charge()==-1) ){
290  const math::XYZTLorentzVector ZRecoGlb (mu.px()+mu2.px(), mu.py()+mu2.py() , mu.pz()+mu2.pz(), mu.p()+mu2.p());
291  dimuonmass_before_->Fill(ZRecoGlb.mass());
292  if (mu.charge()>0) {
293  ptDiffPM_before_->Fill(mu.pt()-mu2.pt());
294  }
295  else {
296  ptDiffPM_before_->Fill(mu2.pt()-mu.pt());
297  }
298  }
299  }
300  }
301  if(cosmic) return;
302 
303  LogTrace("") << "> Z rejection: muons above " << ptThrForZ1_ << " [GeV]: " << nmuonsForZ1;
304  LogTrace("") << "> Z rejection: muons above " << ptThrForZ2_ << " [GeV]: " << nmuonsForZ2;
305 
306  // MET
307  Handle<View<MET> > metCollection;
308  if (!ev.getByLabel(metTag_, metCollection)) {
309  //LogWarning("") << ">>> MET collection does not exist !!!";
310  return;
311  }
312  const MET& met = metCollection->at(0);
313  double met_et = met.pt();
314  LogTrace("") << ">>> MET, MET_px, MET_py: " << met_et << ", " << met.px() << ", " << met.py() << " [GeV]";
315  met_before_->Fill(met_et);
316 
317  // Vertices in the event
319  if (!ev.getByLabel(vertexTag_, vertexCollection)) {
320  LogError("") << ">>> Vertex collection does not exist !!!";
321  return;
322  }
323  unsigned int vertexCollectionSize = vertexCollection->size();
324 
325 
326 
327  int nvvertex = 0;
328  for (unsigned int i=0; i<vertexCollectionSize; i++) {
329  const Vertex& vertex = vertexCollection->at(i);
330  if (vertex.isValid()) nvvertex++;
331  }
332 
333  npvs_before_->Fill(nvvertex);
334 
335  bool trigger_fired = false;
337  if (!ev.getByLabel(trigTag_, triggerResults)) {
338  //LogWarning("") << ">>> TRIGGER collection does not exist !!!";
339  return;
340  }
341  const edm::TriggerNames & trigNames = ev.triggerNames(*triggerResults);
342  // LogWarning("")<<"Loop over triggers";
343 
344 
345  for (unsigned int i=0; i<triggerResults->size(); i++)
346  {
347  const std::string trigName = trigNames.triggerName(i);
348 
349  bool found=false;
350  for(unsigned int index=0; index<trigPathNames_.size() && found==false; index++) {
351  size_t trigPath = trigName.find(trigPathNames_[index]); // 0 if found, pos if not
352  if (trigPath==0) found=true;
353  }
354  if(!found) {continue;}
355 
356  bool prescaled=false;
357  for (unsigned int ps= 0; ps< hltConfigProvider_.prescaleSize(); ps++){
358  const unsigned int prescaleValue = hltConfigProvider_.prescaleValue(ps, trigName) ;
359  if (prescaleValue != 1) prescaled =true;
360  }
361 
362  if( triggerResults->accept(i) && !prescaled){ trigger_fired=true;}
363  // LogWarning("")<<"TrigNo: "<<i<<" "<<found<<" "<<trigName<<" ---> FIRED";}
364  }
365  trig_before_->Fill(trigger_fired);
366 
367  // Jet collection
368  Handle<View<Jet> > jetCollection;
369  if (!ev.getByLabel(jetTag_, jetCollection)) {
370  //LogError("") << ">>> JET collection does not exist !!!";
371  return;
372  }
373  unsigned int jetCollectionSize = jetCollection->size();
374  int njets = 0; int LEADJET=-1; double max_pt=0;
375  for (unsigned int i=0; i<jetCollectionSize; i++) {
376  const Jet& jet = jetCollection->at(i);
377  double minDistance=99999; // This is in order to use PFJets
378  for (unsigned int j=0; j<muonCollectionSize; j++) {
379  const Muon& mu = muonCollection->at(j);
380  double distance = sqrt( (mu.eta()-jet.eta())*(mu.eta()-jet.eta()) +(mu.phi()-jet.phi())*(mu.phi()-jet.phi()) );
381  if (minDistance>distance) minDistance=distance;
382  }
383  if (minDistance<0.3) continue; // 0.3 is the isolation cone around the muon
384  if(jet.et()>max_pt) { LEADJET=i; max_pt=jet.et();}
385  if (jet.et()>eJetMin_) {njets++;}
386  }
387 
388 
389  LogTrace("") << ">>> Total number of jets: " << jetCollectionSize;
390  LogTrace("") << ">>> Number of jets above " << eJetMin_ << " [GeV]: " << njets;
391  njets_before_->Fill(njets);
392  double lead_jet_pt=-1;
393  double lead_jet_eta=-100;
394  if(LEADJET!=-1){
395  const Jet& leadJet = jetCollection->at(LEADJET);
396  leadingjet_pt_before_->Fill(leadJet.pt());
397  leadingjet_eta_before_->Fill(leadJet.eta());
398  lead_jet_pt=leadJet.pt();
399  lead_jet_eta=leadJet.eta();
400  }
401  //Photon Collection
402  Handle<View<Photon> > photonCollection;
403  if(!ev.getByLabel(phoTag_,photonCollection)){
404  //LogError("")
405  return;
406  }
407  unsigned int ngam=0;
408 
409  for (unsigned int i=0; i<photonCollection->size(); i++){
410  const Photon &ph = photonCollection->at(i);
411  double photonPt = ph.pt();
412  if (photonPt> ptThrForPhoton_) {
413  ngam++;
414  phEta_->Fill(ph.eta());
415  }
416  phPt_->Fill(photonPt);
417  }
418  nph_->Fill(ngam);
419  LogTrace("") << " >>> N photons " << ngam << std::endl;
420 
421  nmuons_->Fill(muonCollectionSize);
422 
424  //Handle<View<Photon> > pfPhotonCollection;
426  //if(!ev.getByLabel(pfPhoTag_,pfPhotonCollection)){
428  //return;
429  //}
430  //unsigned int npfgam=0;
431  //
432  //for (unsigned int i=0; i<pfPhotonCollection->size(); i++){
433  // const Photon &ph = pfPhotonCollection->at(i);
434  // double photonPt = ph.pt();
435  // if (photonPt> ptThrForPhoton_) npfgam++;
436  // pfphPt_->Fill(photonPt);
437  // }
438  //npfph_->Fill(npfgam);
439  //LogTrace("") << " >>> N PF photons " << npfgam << std::endl;
440 
441  // Start counting
442  nall++;
443 
444  // Histograms per event should be done only once, so keep track of them
445  bool hlt_hist_done = false;
446  bool zhlt_hist_done = false;
447  bool zjets_hist_done = false;
448  bool zfullsel_hist_done = false;
449  bool met_hist_done = false;
450  bool njets_hist_done = false;
451  bool wfullsel_hist_done = false;
452 
453  // Central W->mu nu selection criteria
454  const int NFLAGS = 11;
455  bool muon_sel[NFLAGS];
456  const int NFLAGSZ = 13;
457  bool zmuon_sel[NFLAGSZ];
458  bool muon4Z=false;
459 
460  double number_of_muons=0;
461  double number_of_goodMuons=0;
462 
463 
464  for (unsigned int i=0; i<muonCollectionSize; i++) {
465  for (int j=0; j<NFLAGS; ++j) {
466  muon_sel[j] = false;
467  }
468 
469  number_of_muons++;
470 
471  const Muon& mu = muonCollection->at(i);
472  if (!mu.isGlobalMuon()) continue;
473  if (mu.globalTrack().isNull()) continue;
474  if (mu.innerTrack().isNull()) continue;
475 
476  LogTrace("") << "> Wsel: processing muon number " << i << "...";
477  reco::TrackRef gm = mu.globalTrack();
478  reco::TrackRef tk = mu.innerTrack();
479 
480  // Pt,eta cuts
481  double pt = mu.pt();
482  double eta = mu.eta();
483  LogTrace("") << "\t... pt, eta: " << pt << " [GeV], " << eta;;
484  if (pt>ptCut_) muon_sel[0] = true;
485  if (fabs(eta)<etaCut_) muon_sel[1] = true;
486 
487  double charge=mu.charge();
488 
489  // d0, chi2, nhits quality cuts
490  double dxy = gm->dxy(beamSpotHandle->position());
491  double normalizedChi2 = gm->normalizedChi2();
492  double trackerHits = tk->hitPattern().numberOfValidTrackerHits();
493  int pixelHits = tk->hitPattern().numberOfValidPixelHits();
494  int muonHits = gm->hitPattern().numberOfValidMuonHits();
495  int nMatches = mu.numberOfMatches();
496 
497  LogTrace("") << "\t... dxy, normalizedChi2, trackerHits, isTrackerMuon?: " << dxy << " [cm], " << normalizedChi2 << ", " << trackerHits << ", " << mu.isTrackerMuon();
498  if (fabs(dxy)<dxyCut_) muon_sel[2] = true;
499 
500  bool quality=true;
501 
502  if (normalizedChi2>normalizedChi2Cut_) quality =false;
503  if (trackerHits<trackerHitsCut_) quality =false;
504  if (pixelHits<pixelHitsCut_) quality =false;
505  if (muonHits<muonHitsCut_) quality=false;;
506  if (!mu.isTrackerMuon()) quality=false;
507  if (nMatches<nMatchesCut_) quality=false;
508  muon_sel[3]=quality;
509  if(quality) number_of_goodMuons++;
510 
511  pt_before_->Fill(pt);
512  eta_before_->Fill(eta);
513  dxy_before_->Fill(dxy);
514  muoncharge_before_->Fill(charge);
515  goodewkmuon_before_->Fill(quality);
516 
517  // Charge asymmetry
518  //if (quality) {
519  // if (charge>0) ptPlus_before_->Fill(pt);
520  // if (charge<0) ptMinus_before_->Fill(pt);
521  //}
522 
523 
524  // Isolation cuts
525  double isovar = mu.isolationR03().sumPt;
526  if (isCombinedIso_) {
527  isovar += mu.isolationR03().emEt;
528  isovar += mu.isolationR03().hadEt;
529  }
530  if (isRelativeIso_) isovar /= pt;
531  if (isovar<isoCut03_) muon_sel[4] = true;
532 
533  LogTrace("") << "\t... isolation value" << isovar <<", isolated? " << muon_sel[6];
534  iso_before_->Fill(isovar);
535 
536 
537  // HLT (not mtched to muon for the time being)
538  if (trigger_fired) muon_sel[5] = true;
539 
540  // For Z:
541  if (pt>ptThrForZ1_ && fabs(eta)<etaCut_ && fabs(dxy)<dxyCut_ && quality && trigger_fired && isovar<isoCut03_) { muon4Z = true;}
542 
543 
544  // MET/MT cuts
545  double w_et = met_et+mu.pt();
546  double w_px = met.px()+mu.px();
547  double w_py = met.py()+mu.py();
548 
549  double massT = w_et*w_et - w_px*w_px - w_py*w_py;
550  massT = (massT>0) ? sqrt(massT) : 0;
551 
552  LogTrace("") << "\t... W mass, W_et, W_px, W_py: " << massT << ", " << w_et << ", " << w_px << ", " << w_py << " [GeV]";
553  if (massT>mtMin_ && massT<mtMax_) muon_sel[6] = true;
554  mt_before_->Fill(massT);
555  if (met_et>metMin_ && met_et<metMax_) muon_sel[7] = true;
556 
557  // Acoplanarity cuts
558  Geom::Phi<double> deltaphi(mu.phi()-atan2(met.py(),met.px()));
559  double acop = deltaphi.value();
560  if (acop<0) acop = - acop;
561  acop = M_PI - acop;
562  LogTrace("") << "\t... acoplanarity: " << acop;
563  if (acop<acopCut_) muon_sel[8] = true;
564  acop_before_->Fill(acop);
565 
566  // Remaining flags (from global event information)
567  if (nmuonsForZ1<1 || nmuonsForZ2<2) muon_sel[9] = true;
568  if (njets<=nJetMax_) muon_sel[10] = true;
569 
570  // Collect necessary flags "per muon"
571  int flags_passed = 0;
572  for (int j=0; j<NFLAGS; ++j) {
573  if (muon_sel[j]) flags_passed += 1;
574  }
575 
576  // Do N-1 histograms now (and only once for global event quantities)
577  if (flags_passed >= (NFLAGS-1)) {
578  if (!muon_sel[0] || flags_passed==NFLAGS)
579  pt_after_->Fill(pt);
580  if (!muon_sel[1] || flags_passed==NFLAGS)
581  eta_after_->Fill(eta);
582  if (!muon_sel[2] || flags_passed==NFLAGS)
583  dxy_after_->Fill(dxy);
584  if (!muon_sel[3] || flags_passed==NFLAGS)
585  goodewkmuon_after_->Fill(quality);
586  if (!muon_sel[4] || flags_passed==NFLAGS)
587  iso_after_->Fill(isovar);
588  if (!muon_sel[5] || flags_passed==NFLAGS)
589  if (!hlt_hist_done) trig_after_->Fill(trigger_fired);
590  hlt_hist_done = true;
591  if (!muon_sel[6] || flags_passed==NFLAGS)
592  mt_after_->Fill(massT);
593  if (!muon_sel[7] || flags_passed==NFLAGS)
594  if (!met_hist_done) met_after_->Fill(met_et);
595  met_hist_done = true;
596  if (!muon_sel[8] || flags_passed==NFLAGS)
597  acop_after_->Fill(acop);
598  // no action here for muon_sel[9]
599  if (!muon_sel[10] || flags_passed==NFLAGS) {
600  if (!njets_hist_done) {
601  njets_after_->Fill(njets);
602  leadingjet_pt_after_->Fill(lead_jet_pt);
603  leadingjet_eta_after_->Fill(lead_jet_eta);
604  }
605  njets_hist_done = true;
606  }
607  if( flags_passed==NFLAGS ) {
608  if (!wfullsel_hist_done){
609  npvs_after_->Fill(nvvertex);
610  muoncharge_after_->Fill(charge);
611  //if (charge>0) ptPlus_afterW_->Fill(pt);
612  //if (charge<0) ptMinus_afterW_->Fill(pt);
613  }
614  wfullsel_hist_done=true;
615  }
616  }
617 
618 
619  // The cases in which the event is rejected as a Z are considered independently:
620  if ( muon4Z && !muon_sel[9]){
621 
622  // Plots for 2 muons
623  for (unsigned int j=i+1; j<muonCollectionSize; j++) {
624 
625  for (int ij=0; ij<NFLAGSZ; ++ij) {
626  zmuon_sel[ij] = false;
627  }
628 
629  for (int ji=0; ji<5; ++ji ) {
630  zmuon_sel[ji] = muon_sel[ji];
631  }
632 
633  const Muon& mu2 = muonCollection->at(j);
634  if (!mu2.isGlobalMuon()) continue;
635  if (mu2.charge() * charge != -1 ) continue;
636  reco::TrackRef gm2 = mu2.globalTrack();
637  reco::TrackRef tk2 = mu2.innerTrack();
638  double pt2 = mu2.pt(); if (pt2>ptThrForZ2_) zmuon_sel[5] = true;
639  double eta2=mu2.eta(); if (fabs(eta2)<etaCut_) zmuon_sel[6] = true;
640  double dxy2 = gm2->dxy(beamSpotHandle->position()); if (fabs(dxy2)<dxyCut_) zmuon_sel[7] = true;
641  double normalizedChi22 = gm2->normalizedChi2();
642  double trackerHits2 = tk2->hitPattern().numberOfValidTrackerHits();
643  int pixelHits2 = tk2->hitPattern().numberOfValidPixelHits();
644  int muonHits2 = gm2->hitPattern().numberOfValidMuonHits();
645  int nMatches2 = mu2.numberOfMatches();
646  bool quality2=true;
647  if (normalizedChi22>normalizedChi2Cut_) quality2 = false;
648  if (trackerHits2<trackerHitsCut_) quality2 = false;
649  if (pixelHits2<pixelHitsCut_) quality2 = false;
650  if (muonHits2<muonHitsCut_) quality2 = false;
651  if (!mu2.isTrackerMuon()) quality2 = false;
652  if (nMatches2<nMatchesCut_) quality2 = false;
653  zmuon_sel[8]=quality2;
654  double isovar2 = mu2.isolationR03().sumPt;
655  if (isCombinedIso_) {
656  isovar2 += mu2.isolationR03().emEt;
657  isovar2 += mu2.isolationR03().hadEt;
658  }
659  if (isRelativeIso_) isovar2 /= pt2;
660  if (isovar2<isoCut03_) zmuon_sel[9] = true;
661  if (trigger_fired) zmuon_sel[10] = true;
662  const math::XYZTLorentzVector ZRecoGlb (mu.px()+mu2.px(), mu.py()+mu2.py() , mu.pz()+mu2.pz(), mu.p()+mu2.p());
663  if (ZRecoGlb.mass()>dimuonMassMin_ && ZRecoGlb.mass()<dimuonMassMax_) zmuon_sel[11] = true;
664 
665  //jet flag
666  if (njets <=nJetMax_) zmuon_sel[12] = true;
667 
668  // start filling histos: N-1 plots
669  int flags_passed_z = 0;
670 
671  for (int jj=0; jj<NFLAGSZ; ++jj) {
672  if (zmuon_sel[jj]) ++flags_passed_z ;
673  }
674 
675  if (flags_passed_z >= (NFLAGSZ-1)) {
676  if (!zmuon_sel[0] || flags_passed_z==NFLAGSZ) {pt1_afterZ_->Fill(pt); }
677  if (!zmuon_sel[1] || flags_passed_z==NFLAGSZ) {eta1_afterZ_->Fill(eta); }
678  if (!zmuon_sel[2] || flags_passed_z==NFLAGSZ) {dxy1_afterZ_->Fill(dxy); }
679  if (!zmuon_sel[3] || flags_passed_z==NFLAGSZ) {goodewkmuon1_afterZ_->Fill(quality); }
680  if (!zmuon_sel[4] || flags_passed_z==NFLAGSZ) {iso1_afterZ_->Fill(isovar); }
681  if (!zmuon_sel[5] || flags_passed_z==NFLAGSZ) { pt2_afterZ_->Fill(pt2); }
682  if (!zmuon_sel[6] || flags_passed_z==NFLAGSZ) { eta2_afterZ_->Fill(eta2); }
683  if (!zmuon_sel[7] || flags_passed_z==NFLAGSZ) {dxy2_afterZ_->Fill(dxy2); }
684  if (!zmuon_sel[8] || flags_passed_z==NFLAGSZ) {goodewkmuon2_afterZ_->Fill(quality2); }
685  if (!zmuon_sel[9] || flags_passed_z==NFLAGSZ) {iso2_afterZ_->Fill(isovar2); }
686  if (!zmuon_sel[10] || flags_passed_z==NFLAGSZ) {
687  if (!zhlt_hist_done) ztrig_afterZ_->Fill(trigger_fired);
688  zhlt_hist_done = true;
689  }
690  if (!zmuon_sel[11] || flags_passed_z==NFLAGSZ) {dimuonmass_afterZ_->Fill(ZRecoGlb.mass()); }
691  if (!zmuon_sel[12] || flags_passed_z==NFLAGSZ ){
692  if(!zjets_hist_done){
693  njets_afterZ_->Fill(njets);
694  leadingjet_pt_afterZ_->Fill(lead_jet_pt);
695  leadingjet_eta_afterZ_->Fill(lead_jet_eta);
696  }
697  zjets_hist_done=true;
698  }
699  if(flags_passed_z==NFLAGSZ) {
700  met_afterZ_->Fill(met_et);
701  if(!zfullsel_hist_done){
702  npvs_afterZ_->Fill(nvvertex);
703  muoncharge_afterZ_->Fill(charge);
704  if (charge>0) {
705  //ptPlus_afterZ_->Fill(mu.pt());
706  //ptMinus_afterZ_->Fill(mu2.pt());
707  ptDiffPM_afterZ_->Fill(mu.pt()-mu2.pt());
708  }
709  else {
710  //ptPlus_afterZ_->Fill(mu2.pt());
711  //ptMinus_afterZ_->Fill(mu.pt());
712  ptDiffPM_afterZ_->Fill(mu2.pt()-mu.pt());
713  }
714  }
715  zfullsel_hist_done=true;
716  }
717  }
718  }
719  }
720  }
721 
722  if (zfullsel_hist_done) {
723  // here was a Z candidate
724  n_zselPt1thr_->Fill(nmuonsForZ1);
725  n_zselPt2thr_->Fill(nmuonsForZ2);
726  }
727 
728  //nmuons_->Fill(number_of_muons);
729  //nmuons_->Fill(muonCollectionSize);
730  ngoodmuons_->Fill(number_of_goodMuons);
731 
732  return;
733 
734 }
MonitorElement * met_before_
Definition: EwkMuDQM.h:100
float hadEt
hcal sum-Et
Definition: MuonIsolation.h:9
int i
Definition: DBlmapReader.cc:9
virtual double p() const
magnitude of momentum vector
MonitorElement * ptDiffPM_afterZ_
Definition: EwkMuDQM.h:122
double etaCut_
Definition: EwkMuDQM.h:59
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
Definition: Event.cc:199
MonitorElement * dimuonmass_afterZ_
Definition: EwkMuDQM.h:142
unsigned int nall
Definition: EwkMuDQM.h:76
int nMatchesCut_
Definition: EwkMuDQM.h:46
MonitorElement * phEta_
Definition: EwkMuDQM.h:160
float sumPt
sum-pt of tracks
Definition: MuonIsolation.h:7
MonitorElement * njets_afterZ_
Definition: EwkMuDQM.h:107
MonitorElement * iso2_afterZ_
Definition: EwkMuDQM.h:134
virtual double et() const
transverse energy
double mtMax_
Definition: EwkMuDQM.h:56
MonitorElement * npvs_before_
Definition: EwkMuDQM.h:144
double ptThrForPhoton_
Definition: EwkMuDQM.h:70
virtual TrackRef innerTrack() const
Definition: Muon.h:49
MonitorElement * dxy1_afterZ_
Definition: EwkMuDQM.h:127
MonitorElement * njets_before_
Definition: EwkMuDQM.h:105
MonitorElement * dxy_before_
Definition: EwkMuDQM.h:90
MonitorElement * ztrig_afterZ_
Definition: EwkMuDQM.h:140
MonitorElement * trig_before_
Definition: EwkMuDQM.h:96
MonitorElement * trig_after_
Definition: EwkMuDQM.h:97
MonitorElement * leadingjet_eta_afterZ_
Definition: EwkMuDQM.h:113
double metMax_
Definition: EwkMuDQM.h:54
bool isTrackerMuon() const
Definition: Muon.h:212
MonitorElement * muoncharge_before_
Definition: EwkMuDQM.h:148
Base class for all types of Jets.
Definition: Jet.h:21
bool isValid() const
Tells whether the vertex is valid.
Definition: Vertex.h:61
MonitorElement * eta2_afterZ_
Definition: EwkMuDQM.h:131
double ptCut_
Definition: EwkMuDQM.h:58
double isoCut03_
Definition: EwkMuDQM.h:50
MonitorElement * npvs_afterZ_
Definition: EwkMuDQM.h:146
bool isGlobalMuon() const
Definition: Muon.h:211
MonitorElement * leadingjet_eta_before_
Definition: EwkMuDQM.h:111
edm::InputTag trigTag_
Definition: EwkMuDQM.h:31
std::vector< std::string > trigPathNames_
Definition: EwkMuDQM.h:38
double eJetMin_
Definition: EwkMuDQM.h:67
T eta() const
MonitorElement * acop_before_
Definition: EwkMuDQM.h:102
MonitorElement * leadingjet_pt_after_
Definition: EwkMuDQM.h:109
double charge(const std::vector< uint8_t > &Ampls)
tuple vertexCollection
MonitorElement * goodewkmuon_before_
Definition: EwkMuDQM.h:92
virtual double eta() const
momentum pseudorapidity
MonitorElement * eta_after_
Definition: EwkMuDQM.h:89
MonitorElement * muoncharge_afterZ_
Definition: EwkMuDQM.h:150
MonitorElement * pt_before_
Definition: EwkMuDQM.h:86
MonitorElement * dxy2_afterZ_
Definition: EwkMuDQM.h:132
void Fill(long long x)
MonitorElement * leadingjet_pt_before_
Definition: EwkMuDQM.h:108
MonitorElement * goodewkmuon1_afterZ_
Definition: EwkMuDQM.h:128
MonitorElement * iso_before_
Definition: EwkMuDQM.h:94
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:30
MonitorElement * npvs_after_
Definition: EwkMuDQM.h:145
MonitorElement * goodewkmuon2_afterZ_
Definition: EwkMuDQM.h:133
unsigned int prescaleValue(unsigned int set, const std::string &trigger) const
HLT prescale value in specific prescale set for a specific trigger path.
MonitorElement * njets_after_
Definition: EwkMuDQM.h:106
bool isNull() const
Checks for null.
Definition: Ref.h:247
MonitorElement * ngoodmuons_
Definition: EwkMuDQM.h:153
MonitorElement * n_zselPt2thr_
Definition: EwkMuDQM.h:138
double metMin_
Definition: EwkMuDQM.h:53
edm::InputTag muonTag_
Definition: EwkMuDQM.h:32
MonitorElement * pt2_afterZ_
Definition: EwkMuDQM.h:130
double ptThrForZ2_
Definition: EwkMuDQM.h:62
int nJetMax_
Definition: EwkMuDQM.h:68
Definition: MET.h:32
HLTConfigProvider hltConfigProvider_
Definition: EwkMuDQM.h:74
T sqrt(T t)
Definition: SSEVec.h:46
float emEt
ecal sum-Et
Definition: MuonIsolation.h:8
MonitorElement * met_afterZ_
Definition: EwkMuDQM.h:124
double dxyCut_
Definition: EwkMuDQM.h:41
virtual int charge() const
electric charge
MonitorElement * leadingjet_eta_after_
Definition: EwkMuDQM.h:112
int j
Definition: DBlmapReader.cc:9
double dimuonMassMin_
Definition: EwkMuDQM.h:64
const int mu
Definition: Constants.h:23
edm::InputTag phoTag_
Definition: EwkMuDQM.h:35
bool isCombinedIso_
Definition: EwkMuDQM.h:49
double dimuonMassMax_
Definition: EwkMuDQM.h:65
MonitorElement * mt_after_
Definition: EwkMuDQM.h:99
MonitorElement * goodewkmuon_after_
Definition: EwkMuDQM.h:93
MonitorElement * muoncharge_after_
Definition: EwkMuDQM.h:149
MonitorElement * mt_before_
Definition: EwkMuDQM.h:98
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
#define LogTrace(id)
MonitorElement * eta_before_
Definition: EwkMuDQM.h:88
MonitorElement * iso1_afterZ_
Definition: EwkMuDQM.h:129
bool isRelativeIso_
Definition: EwkMuDQM.h:48
int numberOfMatches(ArbitrationType type=SegmentAndTrackArbitration) const
get number of chambers with matched segments
Definition: Muon.cc:56
static const char *const trigNames[]
Definition: EcalDumpRaw.cc:75
edm::InputTag jetTag_
Definition: EwkMuDQM.h:34
int pixelHitsCut_
Definition: EwkMuDQM.h:44
MonitorElement * nmuons_
Definition: EwkMuDQM.h:152
double normalizedChi2Cut_
Definition: EwkMuDQM.h:42
#define M_PI
Definition: BFit3D.cc:3
edm::InputTag metTag_
Definition: EwkMuDQM.h:33
MonitorElement * pt_after_
Definition: EwkMuDQM.h:87
MonitorElement * iso_after_
Definition: EwkMuDQM.h:95
virtual double px() const
x coordinate of momentum vector
virtual double pt() const
transverse momentum
std::string const & triggerName(unsigned int index) const
Definition: TriggerNames.cc:27
MonitorElement * eta1_afterZ_
Definition: EwkMuDQM.h:126
MonitorElement * ptDiffPM_before_
Definition: EwkMuDQM.h:117
virtual double pz() const
z coordinate of momentum vector
MonitorElement * pt1_afterZ_
Definition: EwkMuDQM.h:125
MonitorElement * nph_
Definition: EwkMuDQM.h:156
int trackerHitsCut_
Definition: EwkMuDQM.h:43
double mtMin_
Definition: EwkMuDQM.h:55
MonitorElement * phPt_
Definition: EwkMuDQM.h:158
double ptThrForZ1_
Definition: EwkMuDQM.h:61
MonitorElement * dxy_after_
Definition: EwkMuDQM.h:91
unsigned int prescaleSize() const
int muonHitsCut_
Definition: EwkMuDQM.h:45
MonitorElement * met_after_
Definition: EwkMuDQM.h:101
MonitorElement * n_zselPt1thr_
Definition: EwkMuDQM.h:137
edm::InputTag vertexTag_
Definition: EwkMuDQM.h:37
virtual double phi() const
momentum azimuthal angle
Definition: Phi.h:20
virtual double py() const
y coordinate of momentum vector
MonitorElement * dimuonmass_before_
Definition: EwkMuDQM.h:141
const MuonIsolation & isolationR03() const
Definition: Muon.h:159
double acopCut_
Definition: EwkMuDQM.h:52
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector
Definition: Muon.h:55
MonitorElement * leadingjet_pt_afterZ_
Definition: EwkMuDQM.h:110
MonitorElement * acop_after_
Definition: EwkMuDQM.h:103
void EwkMuDQM::beginJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 110 of file EwkMuDQM.cc.

110  {
111 
112 }
void EwkMuDQM::beginRun ( const edm::Run iRun,
const edm::EventSetup iSet 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 93 of file EwkMuDQM.cc.

References hltConfigProvider_, HLTConfigProvider::init(), isValidHltConfig_, nall, nhlt, niso, nmet, nrec, nsel, and nz.

93  {
94  nall = 0;
95  nsel = 0;
96  nz = 0;
97 
98  nrec = 0;
99  niso = 0;
100  nhlt = 0;
101  nmet = 0;
102 
103  // passed as parameter to HLTConfigProvider::init(), not yet used
104  bool isConfigChanged = false;
105  // isValidHltConfig_ used to short-circuit analyze() in case of problems
106  isValidHltConfig_ = hltConfigProvider_.init( iRun, iSet, "HLT", isConfigChanged );
107 
108 }
unsigned int nall
Definition: EwkMuDQM.h:76
unsigned int nrec
Definition: EwkMuDQM.h:77
unsigned int nhlt
Definition: EwkMuDQM.h:79
HLTConfigProvider hltConfigProvider_
Definition: EwkMuDQM.h:74
unsigned int nsel
Definition: EwkMuDQM.h:81
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
unsigned int nz
Definition: EwkMuDQM.h:82
unsigned int niso
Definition: EwkMuDQM.h:78
unsigned int nmet
Definition: EwkMuDQM.h:80
bool isValidHltConfig_
Definition: EwkMuDQM.h:73
void EwkMuDQM::endJob ( void  )
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 247 of file EwkMuDQM.cc.

247  {
248 }
void EwkMuDQM::endRun ( const edm::Run r,
const edm::EventSetup iSet 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 250 of file EwkMuDQM.cc.

250  {
251 
252 }
void EwkMuDQM::init_histograms ( )

\ For charge asymmetry studies

\ For Z-boson events

Definition at line 114 of file EwkMuDQM.cc.

References acop_after_, acop_before_, DQMStore::book1D(), dimuonmass_afterZ_, dimuonmass_before_, dxy1_afterZ_, dxy2_afterZ_, dxy_after_, dxy_before_, eJetMin_, eta1_afterZ_, eta2_afterZ_, eta_after_, eta_before_, goodewkmuon1_afterZ_, goodewkmuon2_afterZ_, goodewkmuon_after_, goodewkmuon_before_, isCombinedIso_, iso1_afterZ_, iso2_afterZ_, iso_after_, iso_before_, isRelativeIso_, jetTag_, edm::InputTag::label(), leadingjet_eta_after_, leadingjet_eta_afterZ_, leadingjet_eta_before_, leadingjet_pt_after_, leadingjet_pt_afterZ_, leadingjet_pt_before_, M_PI, met_after_, met_afterZ_, met_before_, metTag_, mt_after_, mt_before_, muoncharge_after_, muoncharge_afterZ_, muoncharge_before_, n_zselPt1thr_, n_zselPt2thr_, ngoodmuons_, njets_after_, njets_afterZ_, njets_before_, nmuons_, nph_, npvs_after_, npvs_afterZ_, npvs_before_, phEta_, phPt_, pt1_afterZ_, pt2_afterZ_, pt_after_, pt_before_, ptDiffPM_afterZ_, ptDiffPM_before_, ptThrForPhoton_, ptThrForZ1_, ptThrForZ2_, theDbe, trig_after_, trig_before_, and ztrig_afterZ_.

Referenced by EwkMuDQM().

114  {
115 
116  char chtitle[256] = "";
117 
118  pt_before_ = theDbe->book1D("PT_BEFORECUTS","Muon transverse momentum (global muon) [GeV]",100,0.,100.);
119  pt_after_ = theDbe->book1D("PT_AFTERWCUTS","Muon transverse momentum (global muon) [GeV]",100,0.,100.);
120 
121  eta_before_ = theDbe->book1D("ETA_BEFORECUTS","Muon pseudo-rapidity",50,-2.5,2.5);
122  eta_after_ = theDbe->book1D("ETA_AFTERWCUTS","Muon pseudo-rapidity",50,-2.5,2.5);
123 
124  dxy_before_ = theDbe->book1D("DXY_BEFORECUTS","Muon transverse distance to beam spot [cm]",1000,-0.5,0.5);
125  dxy_after_ = theDbe->book1D("DXY_AFTERWCUTS","Muon transverse distance to beam spot [cm]",1000,-0.5,0.5);
126 
127  goodewkmuon_before_ = theDbe->book1D("GOODEWKMUON_BEFORECUTS","Quality-muon flag",2,-0.5,1.5);
128  goodewkmuon_after_ = theDbe->book1D("GOODEWKMUON_AFTERWCUTS","Quality-muon flag",2,-0.5,1.5);
129 
130  if (isRelativeIso_) {
131  if (isCombinedIso_) {
132  iso_before_ = theDbe->book1D("ISO_BEFORECUTS","Relative (combined) isolation variable",100, 0., 1.);
133  iso_after_ = theDbe->book1D("ISO_AFTERWCUTS","Relative (combined) isolation variable",100, 0., 1.);
134  } else {
135  iso_before_ = theDbe->book1D("ISO_BEFORECUTS","Relative (tracker) isolation variable",100, 0., 1.);
136  iso_after_ = theDbe->book1D("ISO_AFTERWCUTS","Relative (tracker) isolation variable",100, 0., 1.);
137  }
138  } else {
139  if (isCombinedIso_) {
140  iso_before_ = theDbe->book1D("ISO_BEFORECUTS","Absolute (combined) isolation variable [GeV]",100, 0., 20.);
141  iso_after_ = theDbe->book1D("ISO_AFTERWCUTS","Absolute (combined) isolation variable [GeV]",100, 0., 20.);
142  } else {
143  iso_before_ = theDbe->book1D("ISO_BEFORECUTS","Absolute (tracker) isolation variable [GeV]",100, 0., 20.);
144  iso_after_ = theDbe->book1D("ISO_AFTERWCUTS","Absolute (tracker) isolation variable [GeV]",100, 0., 20.);
145  }
146  }
147 
148  trig_before_ = theDbe->book1D("TRIG_BEFORECUTS","Trigger response (boolean of muon triggers)",2,-0.5,1.5);
149  trig_after_ = theDbe->book1D("TRIG_AFTERWCUTS","Trigger response (boolean of muon triggers)",2,-0.5,1.5);
150 
151  snprintf(chtitle, 255, "Transverse mass (%s) [GeV]", metTag_.label().data());
152  mt_before_ = theDbe->book1D("MT_BEFORECUTS",chtitle,150,0.,300.);
153  mt_after_ = theDbe->book1D("MT_AFTERWCUTS",chtitle,150,0.,300.);
154 
155  snprintf(chtitle, 255, "Missing transverse energy (%s) [GeV]", metTag_.label().data());
156  met_before_ = theDbe->book1D("MET_BEFORECUTS",chtitle,100,0.,200.);
157  met_after_ = theDbe->book1D("MET_AFTERWCUTS",chtitle,100,0.,200.);
158  met_afterZ_ = theDbe->book1D("MET_AFTERZCUTS",chtitle,100,0.,200.);
159 
160  snprintf(chtitle, 255, "MU-MET (%s) acoplanarity", metTag_.label().data());
161  acop_before_ = theDbe->book1D("ACOP_BEFORECUTS",chtitle,50,0.,M_PI);
162  acop_after_ = theDbe->book1D("ACOP_AFTERWCUTS",chtitle,50,0.,M_PI);
163 
164  snprintf(chtitle, 255, "Z selection: muons above %.2f GeV", ptThrForZ1_);
165  n_zselPt1thr_ = theDbe->book1D("NZSELPT1THR",chtitle,10,-0.5,9.5);
166  snprintf(chtitle, 255, "Z selection: muons above %.2f GeV", ptThrForZ2_);
167  n_zselPt2thr_ = theDbe->book1D("NZSELPT2THR",chtitle,10,-0.5,9.5);
168 
169  snprintf(chtitle, 255, "Number of jets (%s) above %.2f GeV", jetTag_.label().data(), eJetMin_);
170  njets_before_ = theDbe->book1D("NJETS_BEFORECUTS",chtitle,16,-0.5,15.5);
171  njets_after_ = theDbe->book1D("NJETS_AFTERWCUTS",chtitle,16,-0.5,15.5);
172  njets_afterZ_ = theDbe->book1D("NJETS_AFTERZCUTS",chtitle,16,-0.5,15.5);
173 
174  leadingjet_pt_before_ = theDbe->book1D("LEADINGJET_PT_BEFORECUTS","Leading Jet transverse momentum",300,0.,300.);
175  leadingjet_pt_after_ = theDbe->book1D("LEADINGJET_PT_AFTERWCUTS","Leading Jet transverse momentum",300,0.,300.);
176  leadingjet_pt_afterZ_ = theDbe->book1D("LEADINGJET_PT_AFTERZCUTS","Leading Jet transverse momentum",300,0.,300.);
177 
178  leadingjet_eta_before_ = theDbe->book1D("LEADINGJET_ETA_BEFORECUTS","Leading Jet pseudo-rapidity",50,-2.5,2.5);
179  leadingjet_eta_after_ = theDbe->book1D("LEADINGJET_ETA_AFTERWCUTS","Leading Jet pseudo-rapidity",50,-2.5,2.5);
180  leadingjet_eta_afterZ_ = theDbe->book1D("LEADINGJET_ETA_AFTERZCUTS","Leading Jet pseudo-rapidity",50,-2.5,2.5);
181 
184  //ptPlus_before_ = theDbe->book1D("PTPLUS_BEFORE_CUTS","Muon+ transverse momentum before cuts [GeV]",100,0.,100.);
185  //ptMinus_before_ = theDbe->book1D("PTMINUS_BEFORE_CUTS","Muon- transverse momentum before cuts [GeV]",100,0.,100.);
186  //ptPlus_afterW_ = theDbe->book1D("PTPLUS_AFTERW_CUTS","Muon+ transverse momentum after W cuts [GeV]",100,0.,100.);
187  //ptMinus_afterW_ = theDbe->book1D("PTMINUS_AFTERW_CUTS","Muon- transverse momentum after W cuts [GeV]",100,0.,100.);
188  //ptPlus_afterZ_ = theDbe->book1D("PTPLUS_AFTERZ_CUTS","Muon+ transverse momentum after Z cuts [GeV]",100,0.,100.);
189  //ptMinus_afterZ_ = theDbe->book1D("PTMINUS_AFTERZ_CUTS","Muon- transverse momentum after Z cuts [GeV]",100,0.,100.);
190  ptDiffPM_before_ = theDbe->book1D("PTDIFFPM_BEFORE_CUTS","pt(Muon+)-pt(Muon-) after Z cuts [GeV]",200,-100.,100.);
191  ptDiffPM_afterZ_ = theDbe->book1D("PTDIFFPM_AFTERZ_CUTS","pt(Muon+)-pt(Muon-) after Z cuts [GeV]",200,-100.,100.);
192 
195  pt1_afterZ_ = theDbe->book1D("PT1_AFTERZCUTS","Muon transverse momentum (global muon) [GeV]",100,0.,100.);
196  eta1_afterZ_ = theDbe->book1D("ETA1_AFTERZCUTS","Muon pseudo-rapidity",50,-2.5,2.5);
197  dxy1_afterZ_ = theDbe->book1D("DXY1_AFTERZCUTS","Muon transverse distance to beam spot [cm]",1000,-0.5,0.5);
198  goodewkmuon1_afterZ_ = theDbe->book1D("GOODEWKMUON1_AFTERZCUTS","Quality-muon flag",2,-0.5,1.5);
199 
200  if (isRelativeIso_) {
201  if (isCombinedIso_) {
202  iso1_afterZ_ = theDbe->book1D("ISO1_AFTERZCUTS","Relative (combined) isolation variable",100, 0., 1.);
203  iso2_afterZ_ = theDbe->book1D("ISO2_AFTERZCUTS","Relative (combined) isolation variable",100, 0., 1.);
204  } else {
205  iso1_afterZ_ = theDbe->book1D("ISO1_AFTERZCUTS","Relative (tracker) isolation variable",100, 0., 1.);
206  iso2_afterZ_ = theDbe->book1D("ISO2_AFTERZCUTS","Relative (tracker) isolation variable",100, 0., 1.);
207  }
208  } else {
209  if (isCombinedIso_) {
210  iso1_afterZ_ = theDbe->book1D("ISO1_AFTERZCUTS","Absolute (combined) isolation variable [GeV]",100, 0., 20.);
211  iso2_afterZ_ = theDbe->book1D("ISO2_AFTERZCUTS","Absolute (combined) isolation variable [GeV]",100, 0., 20.);
212  } else {
213  iso1_afterZ_ = theDbe->book1D("ISO1_AFTERZCUTS","Absolute (tracker) isolation variable [GeV]",100, 0., 20.);
214  iso2_afterZ_ = theDbe->book1D("ISO2_AFTERZCUTS","Absolute (tracker) isolation variable [GeV]",100, 0., 20.);
215  }
216  }
217 
218  pt2_afterZ_ = theDbe->book1D("PT2_AFTERZCUTS","Muon transverse momentum (global muon) [GeV]",100,0.,100.);
219  eta2_afterZ_ = theDbe->book1D("ETA2_AFTERZCUTS","Muon pseudo-rapidity",50,-2.5,2.5);
220  dxy2_afterZ_ = theDbe->book1D("DXY2_AFTERZCUTS","Muon transverse distance to beam spot [cm]",1000,-0.5,0.5);
221  goodewkmuon2_afterZ_ = theDbe->book1D("GOODEWKMUON2_AFTERZCUTS","Quality-muon flag",2,-0.5,1.5);
222  ztrig_afterZ_ = theDbe->book1D("ZTRIG_AFTERZCUTS","Trigger response (boolean of muon triggers)",2,-0.5,1.5);
223  dimuonmass_before_= theDbe->book1D("DIMUONMASS_BEFORECUTS","DiMuonMass (2 globals)",100,0,200);
224  dimuonmass_afterZ_= theDbe->book1D("DIMUONMASS_AFTERZCUTS","DiMuonMass (2 globals)",100,0,200);
225  npvs_before_ = theDbe->book1D("NPVs_BEFORECUTS","Number of Valid Primary Vertices",51,-0.5,50.5);
226  npvs_after_ = theDbe->book1D("NPVs_AFTERWCUTS","Number of Valid Primary Vertices",51,-0.5,50.5);
227  npvs_afterZ_ = theDbe->book1D("NPVs_AFTERZCUTS","Number of Valid Primary Vertices",51,-0.5,50.5);
228  muoncharge_before_ = theDbe->book1D("MUONCHARGE_BEFORECUTS","Muon Charge",3,-1.5,1.5);
229  muoncharge_after_ = theDbe->book1D("MUONCHARGE_AFTERWCUTS","Muon Charge",3,-1.5,1.5);
230  muoncharge_afterZ_ = theDbe->book1D("MUONCHARGE_AFTERZCUTS","Muon Charge",3,-1.5,1.5);
231 
232  // Adding these to replace the NZ ones (more useful, since they are more general?)
233  nmuons_ = theDbe->book1D("NMuons","Number of muons in the event",10,-0.5,9.5);
234  ngoodmuons_ = theDbe->book1D("NGoodMuons","Number of muons passing the quality criteria",10,-0.5,9.5);
235 
236  nph_ = theDbe->book1D("nph","Number of photons in the event",20,0.,20.);
237  //npfph_ = theDbe->book1D("npfph","Number of PF photons in the event",20,0.,20.);
238  phPt_ = theDbe->book1D("phPt","Photon transverse momentum [GeV]",1000,0.,1000.);
239  //pfphPt_ = theDbe->book1D("pfphPt","PF Photon transverse momentum [GeV]",1000,0.,1000.);
240  snprintf(chtitle, 255, "Photon pseudorapidity (pT>%4.1f)",ptThrForPhoton_);
241  phEta_ = theDbe->book1D("phEta",chtitle,100,-2.5,2.5);
242  //pfphEta_ = theDbe->book1D("pfphEta","PF Photon pseudorapidity",100,-2.5,2.5);
243 
244 }
MonitorElement * met_before_
Definition: EwkMuDQM.h:100
DQMStore * theDbe
Definition: EwkMuDQM.h:84
MonitorElement * ptDiffPM_afterZ_
Definition: EwkMuDQM.h:122
MonitorElement * dimuonmass_afterZ_
Definition: EwkMuDQM.h:142
MonitorElement * phEta_
Definition: EwkMuDQM.h:160
MonitorElement * njets_afterZ_
Definition: EwkMuDQM.h:107
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
MonitorElement * iso2_afterZ_
Definition: EwkMuDQM.h:134
MonitorElement * npvs_before_
Definition: EwkMuDQM.h:144
double ptThrForPhoton_
Definition: EwkMuDQM.h:70
MonitorElement * dxy1_afterZ_
Definition: EwkMuDQM.h:127
MonitorElement * njets_before_
Definition: EwkMuDQM.h:105
MonitorElement * dxy_before_
Definition: EwkMuDQM.h:90
MonitorElement * ztrig_afterZ_
Definition: EwkMuDQM.h:140
MonitorElement * trig_before_
Definition: EwkMuDQM.h:96
MonitorElement * trig_after_
Definition: EwkMuDQM.h:97
MonitorElement * leadingjet_eta_afterZ_
Definition: EwkMuDQM.h:113
MonitorElement * muoncharge_before_
Definition: EwkMuDQM.h:148
MonitorElement * eta2_afterZ_
Definition: EwkMuDQM.h:131
MonitorElement * npvs_afterZ_
Definition: EwkMuDQM.h:146
MonitorElement * leadingjet_eta_before_
Definition: EwkMuDQM.h:111
double eJetMin_
Definition: EwkMuDQM.h:67
MonitorElement * acop_before_
Definition: EwkMuDQM.h:102
MonitorElement * leadingjet_pt_after_
Definition: EwkMuDQM.h:109
MonitorElement * goodewkmuon_before_
Definition: EwkMuDQM.h:92
MonitorElement * eta_after_
Definition: EwkMuDQM.h:89
MonitorElement * muoncharge_afterZ_
Definition: EwkMuDQM.h:150
MonitorElement * pt_before_
Definition: EwkMuDQM.h:86
MonitorElement * dxy2_afterZ_
Definition: EwkMuDQM.h:132
MonitorElement * leadingjet_pt_before_
Definition: EwkMuDQM.h:108
MonitorElement * goodewkmuon1_afterZ_
Definition: EwkMuDQM.h:128
MonitorElement * iso_before_
Definition: EwkMuDQM.h:94
MonitorElement * npvs_after_
Definition: EwkMuDQM.h:145
MonitorElement * goodewkmuon2_afterZ_
Definition: EwkMuDQM.h:133
MonitorElement * njets_after_
Definition: EwkMuDQM.h:106
MonitorElement * ngoodmuons_
Definition: EwkMuDQM.h:153
MonitorElement * n_zselPt2thr_
Definition: EwkMuDQM.h:138
MonitorElement * pt2_afterZ_
Definition: EwkMuDQM.h:130
double ptThrForZ2_
Definition: EwkMuDQM.h:62
MonitorElement * met_afterZ_
Definition: EwkMuDQM.h:124
MonitorElement * leadingjet_eta_after_
Definition: EwkMuDQM.h:112
bool isCombinedIso_
Definition: EwkMuDQM.h:49
MonitorElement * mt_after_
Definition: EwkMuDQM.h:99
MonitorElement * goodewkmuon_after_
Definition: EwkMuDQM.h:93
MonitorElement * muoncharge_after_
Definition: EwkMuDQM.h:149
MonitorElement * mt_before_
Definition: EwkMuDQM.h:98
MonitorElement * eta_before_
Definition: EwkMuDQM.h:88
MonitorElement * iso1_afterZ_
Definition: EwkMuDQM.h:129
bool isRelativeIso_
Definition: EwkMuDQM.h:48
edm::InputTag jetTag_
Definition: EwkMuDQM.h:34
MonitorElement * nmuons_
Definition: EwkMuDQM.h:152
#define M_PI
Definition: BFit3D.cc:3
edm::InputTag metTag_
Definition: EwkMuDQM.h:33
MonitorElement * pt_after_
Definition: EwkMuDQM.h:87
MonitorElement * iso_after_
Definition: EwkMuDQM.h:95
MonitorElement * eta1_afterZ_
Definition: EwkMuDQM.h:126
MonitorElement * ptDiffPM_before_
Definition: EwkMuDQM.h:117
MonitorElement * pt1_afterZ_
Definition: EwkMuDQM.h:125
std::string const & label() const
Definition: InputTag.h:25
MonitorElement * nph_
Definition: EwkMuDQM.h:156
MonitorElement * phPt_
Definition: EwkMuDQM.h:158
double ptThrForZ1_
Definition: EwkMuDQM.h:61
MonitorElement * dxy_after_
Definition: EwkMuDQM.h:91
MonitorElement * met_after_
Definition: EwkMuDQM.h:101
MonitorElement * n_zselPt1thr_
Definition: EwkMuDQM.h:137
MonitorElement * dimuonmass_before_
Definition: EwkMuDQM.h:141
MonitorElement * leadingjet_pt_afterZ_
Definition: EwkMuDQM.h:110
MonitorElement * acop_after_
Definition: EwkMuDQM.h:103

Member Data Documentation

MonitorElement* EwkMuDQM::acop_after_
private

Definition at line 103 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::acop_before_
private

Definition at line 102 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::acopCut_
private

Definition at line 52 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::dimuonmass_afterZ_
private

Definition at line 142 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::dimuonmass_before_
private

Definition at line 141 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::dimuonMassMax_
private

Definition at line 65 of file EwkMuDQM.h.

Referenced by analyze().

double EwkMuDQM::dimuonMassMin_
private

Definition at line 64 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::dxy1_afterZ_
private

Definition at line 127 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::dxy2_afterZ_
private

Definition at line 132 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::dxy_after_
private

Definition at line 91 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::dxy_before_
private

Definition at line 90 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::dxyCut_
private

Definition at line 41 of file EwkMuDQM.h.

Referenced by analyze().

double EwkMuDQM::eJetMin_
private

Definition at line 67 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::eta1_afterZ_
private

Definition at line 126 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::eta2_afterZ_
private

Definition at line 131 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::eta_after_
private

Definition at line 89 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::eta_before_
private

Definition at line 88 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::etaCut_
private

Definition at line 59 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::goodewkmuon1_afterZ_
private

Definition at line 128 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::goodewkmuon2_afterZ_
private

Definition at line 133 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::goodewkmuon_after_
private

Definition at line 93 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::goodewkmuon_before_
private

Definition at line 92 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

HLTConfigProvider EwkMuDQM::hltConfigProvider_
private

Definition at line 74 of file EwkMuDQM.h.

Referenced by analyze(), and beginRun().

bool EwkMuDQM::isAlsoTrackerMuon_
private

Definition at line 40 of file EwkMuDQM.h.

bool EwkMuDQM::isCombinedIso_
private

Definition at line 49 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::iso1_afterZ_
private

Definition at line 129 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::iso2_afterZ_
private

Definition at line 134 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::iso_after_
private

Definition at line 95 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::iso_before_
private

Definition at line 94 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::isoCut03_
private

Definition at line 50 of file EwkMuDQM.h.

Referenced by analyze().

bool EwkMuDQM::isRelativeIso_
private

Definition at line 48 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

bool EwkMuDQM::isValidHltConfig_
private

Definition at line 73 of file EwkMuDQM.h.

Referenced by beginRun(), and EwkMuDQM().

edm::InputTag EwkMuDQM::jetTag_
private

Definition at line 34 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::leadingjet_eta_after_
private

Definition at line 112 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::leadingjet_eta_afterZ_
private

Definition at line 113 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::leadingjet_eta_before_
private

Definition at line 111 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::leadingjet_pt_after_
private

Definition at line 109 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::leadingjet_pt_afterZ_
private

Definition at line 110 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::leadingjet_pt_before_
private

Definition at line 108 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::met_after_
private

Definition at line 101 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::met_afterZ_
private

Definition at line 124 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::met_before_
private

Definition at line 100 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::metMax_
private

Definition at line 54 of file EwkMuDQM.h.

Referenced by analyze().

double EwkMuDQM::metMin_
private

Definition at line 53 of file EwkMuDQM.h.

Referenced by analyze().

edm::InputTag EwkMuDQM::metTag_
private

Definition at line 33 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::mt_after_
private

Definition at line 99 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::mt_before_
private

Definition at line 98 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::mtMax_
private

Definition at line 56 of file EwkMuDQM.h.

Referenced by analyze().

double EwkMuDQM::mtMin_
private

Definition at line 55 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::muoncharge_after_
private

Definition at line 149 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::muoncharge_afterZ_
private

Definition at line 150 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::muoncharge_before_
private

Definition at line 148 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

int EwkMuDQM::muonHitsCut_
private

Definition at line 45 of file EwkMuDQM.h.

Referenced by analyze().

edm::InputTag EwkMuDQM::muonTag_
private

Definition at line 32 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::n_zselPt1thr_
private

Definition at line 137 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::n_zselPt2thr_
private

Definition at line 138 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

unsigned int EwkMuDQM::nall
private

Definition at line 76 of file EwkMuDQM.h.

Referenced by analyze(), and beginRun().

MonitorElement* EwkMuDQM::ngoodmuons_
private

Definition at line 153 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

unsigned int EwkMuDQM::nhlt
private

Definition at line 79 of file EwkMuDQM.h.

Referenced by beginRun().

unsigned int EwkMuDQM::niso
private

Definition at line 78 of file EwkMuDQM.h.

Referenced by beginRun().

int EwkMuDQM::nJetMax_
private

Definition at line 68 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::njets_after_
private

Definition at line 106 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::njets_afterZ_
private

Definition at line 107 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::njets_before_
private

Definition at line 105 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

int EwkMuDQM::nMatchesCut_
private

Definition at line 46 of file EwkMuDQM.h.

Referenced by analyze().

unsigned int EwkMuDQM::nmet
private

Definition at line 80 of file EwkMuDQM.h.

Referenced by beginRun().

MonitorElement* EwkMuDQM::nmuons_
private

Definition at line 152 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::normalizedChi2Cut_
private

Definition at line 42 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::npfph_
private

Definition at line 155 of file EwkMuDQM.h.

MonitorElement* EwkMuDQM::nph_
private

Definition at line 156 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

int EwkMuDQM::nPhoMax_
private

Definition at line 71 of file EwkMuDQM.h.

MonitorElement* EwkMuDQM::npvs_after_
private

Definition at line 145 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::npvs_afterZ_
private

Definition at line 146 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::npvs_before_
private

Definition at line 144 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

unsigned int EwkMuDQM::nrec
private

Definition at line 77 of file EwkMuDQM.h.

Referenced by beginRun().

unsigned int EwkMuDQM::nsel
private

Definition at line 81 of file EwkMuDQM.h.

Referenced by beginRun().

unsigned int EwkMuDQM::nz
private

Definition at line 82 of file EwkMuDQM.h.

Referenced by beginRun().

MonitorElement* EwkMuDQM::pfphEta_
private

Definition at line 159 of file EwkMuDQM.h.

edm::InputTag EwkMuDQM::pfPhoTag_
private

Definition at line 36 of file EwkMuDQM.h.

MonitorElement* EwkMuDQM::pfphPt_
private

Definition at line 157 of file EwkMuDQM.h.

MonitorElement* EwkMuDQM::phEta_
private

Definition at line 160 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

edm::InputTag EwkMuDQM::phoTag_
private

Definition at line 35 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::phPt_
private

Definition at line 158 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

int EwkMuDQM::pixelHitsCut_
private

Definition at line 44 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::pt1_afterZ_
private

Definition at line 125 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::pt2_afterZ_
private

Definition at line 130 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::pt_after_
private

Definition at line 87 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::pt_before_
private

Definition at line 86 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::ptCut_
private

Definition at line 58 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::ptDiffPM_afterZ_
private

Definition at line 122 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::ptDiffPM_before_
private

Definition at line 117 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::ptThrForPhoton_
private

Definition at line 70 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::ptThrForZ1_
private

Definition at line 61 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

double EwkMuDQM::ptThrForZ2_
private

Definition at line 62 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

DQMStore* EwkMuDQM::theDbe
private

Definition at line 84 of file EwkMuDQM.h.

Referenced by EwkMuDQM(), and init_histograms().

int EwkMuDQM::trackerHitsCut_
private

Definition at line 43 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::trig_after_
private

Definition at line 97 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

MonitorElement* EwkMuDQM::trig_before_
private

Definition at line 96 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().

std::vector<std::string> EwkMuDQM::trigPathNames_
private

Definition at line 38 of file EwkMuDQM.h.

Referenced by analyze().

edm::InputTag EwkMuDQM::trigTag_
private

Definition at line 31 of file EwkMuDQM.h.

Referenced by analyze().

edm::InputTag EwkMuDQM::vertexTag_
private

Definition at line 37 of file EwkMuDQM.h.

Referenced by analyze().

MonitorElement* EwkMuDQM::ztrig_afterZ_
private

Definition at line 140 of file EwkMuDQM.h.

Referenced by analyze(), and init_histograms().