CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
SusyDQM< Mu, Ele, Jet, Met > Class Template Reference

#include <SusyDQM.h>

Inheritance diagram for SusyDQM< Mu, Ele, Jet, Met >:
edm::EDAnalyzer

Public Member Functions

 SusyDQM (const edm::ParameterSet &)
 
 ~SusyDQM ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Protected Member Functions

void beginRun (const edm::Run &)
 
void endRun (const edm::Run &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void beginJob ()
 
virtual void endJob ()
 
virtual bool goodSusyElectron (const Ele *)
 
virtual bool goodSusyMuon (const Mu *)
 
void initialize ()
 

Private Attributes

math::XYZPoint bs
 
DQMStoredbe_
 
double elec_d0_cut_
 
double elec_eta_cut_
 
double elec_mva_cut_
 
edm::InputTag electrons_
 
MonitorElementhRAL_dR_emu_
 
MonitorElementhRAL_Electron_monitor_
 
MonitorElementhRAL_eta_elecs_
 
MonitorElementhRAL_eta_muons_
 
MonitorElementhRAL_Iso_elecs_
 
MonitorElementhRAL_Iso_muons_
 
MonitorElementhRAL_mass_OS_ee_
 
MonitorElementhRAL_mass_OS_emu_
 
MonitorElementhRAL_mass_OS_mumu_
 
MonitorElementhRAL_mass_SS_ee_
 
MonitorElementhRAL_mass_SS_emu_
 
MonitorElementhRAL_mass_SS_mumu_
 
MonitorElementhRAL_Met_
 
MonitorElementhRAL_Muon_monitor_
 
MonitorElementhRAL_N_elecs_
 
MonitorElementhRAL_N_muons_
 
MonitorElementhRAL_OSee_monitor_
 
MonitorElementhRAL_OSemu_monitor_
 
MonitorElementhRAL_OSmumu_monitor_
 
MonitorElementhRAL_phi_elecs_
 
MonitorElementhRAL_phi_muons_
 
MonitorElementhRAL_pt_elecs_
 
MonitorElementhRAL_pt_muons_
 
MonitorElementhRAL_SSee_monitor_
 
MonitorElementhRAL_SSemu_monitor_
 
MonitorElementhRAL_SSmumu_monitor_
 
MonitorElementhRAL_Sum_pt_jets_
 
MonitorElementhRAL_TriMuon_monitor_
 
edm::InputTag jets_
 
edm::InputTag met_
 
std::string moduleName_
 
double muon_d0_cut_
 
double muon_eta_cut_
 
double muon_nChi2_cut_
 
double muon_nHits_cut_
 
edm::InputTag muons_
 
edm::ParameterSet parameters_
 
double RAL_elec_iso_cut_
 
double RAL_elec_pt_cut_
 
double RAL_jet_eta_cut_
 
double RAL_jet_max_emf_cut_
 
double RAL_jet_min_emf_cut_
 
double RAL_jet_pt_cut_
 
double RAL_jet_sum_pt_cut_
 
double RAL_met_cut_
 
double RAL_muon_iso_cut_
 
double RAL_muon_pt_cut_
 
edm::InputTag vertex_
 

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 &)
 

Detailed Description

template<typename Mu, typename Ele, typename Jet, typename Met>
class SusyDQM< Mu, Ele, Jet, Met >

Definition at line 51 of file SusyDQM.h.

Constructor & Destructor Documentation

template<typename Mu , typename Ele , typename Jet , typename Met >
SusyDQM< Mu, Ele, Jet, Met >::SusyDQM ( const edm::ParameterSet pset)
explicit

Definition at line 145 of file SusyDQM.h.

References dbe_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), and cppFunctionSkipper::operator.

145  {
146 
147  parameters_ = pset;
148  initialize();
149 
150  moduleName_ = pset.getUntrackedParameter<std::string> ("moduleName");
151 
152  muons_ = pset.getParameter<edm::InputTag> ("muonCollection");
153  electrons_ = pset.getParameter<edm::InputTag> ("electronCollection");
154  jets_ = pset.getParameter<edm::InputTag> ("jetCollection");
155  met_ = pset.getParameter<edm::InputTag> ("metCollection");
156  vertex_ = pset.getParameter<edm::InputTag> ("vertexCollection");
157 
158  muon_eta_cut_ = pset.getParameter<double> ("muon_eta_cut");
159  muon_nHits_cut_ = pset.getParameter<double> ("muon_nHits_cut");
160  muon_nChi2_cut_ = pset.getParameter<double> ("muon_nChi2_cut");
161  muon_d0_cut_ = pset.getParameter<double> ("muon_d0_cut");
162 
163  elec_eta_cut_ = pset.getParameter<double> ("elec_eta_cut");
164  elec_mva_cut_ = pset.getParameter<double> ("elec_mva_cut");
165  elec_d0_cut_ = pset.getParameter<double> ("elec_d0_cut");
166 
167  RAL_muon_pt_cut_ = pset.getParameter<double> ("RAL_muon_pt_cut");
168  RAL_muon_iso_cut_ = pset.getParameter<double> ("RAL_muon_iso_cut");
169 
170  RAL_elec_pt_cut_ = pset.getParameter<double> ("RAL_elec_pt_cut");
171  RAL_elec_iso_cut_ = pset.getParameter<double> ("RAL_elec_iso_cut");
172 
173  RAL_jet_pt_cut_ = pset.getParameter<double> ("RAL_jet_pt_cut");
174  RAL_jet_sum_pt_cut_ = pset.getParameter<double> ("RAL_jet_sum_pt_cut");
175  RAL_jet_eta_cut_ = pset.getParameter<double> ("RAL_jet_eta_cut");
176  RAL_jet_min_emf_cut_ = pset.getParameter<double> ("RAL_jet_min_emf_cut");
177  RAL_jet_max_emf_cut_ = pset.getParameter<double> ("RAL_jet_max_emf_cut");
178 
179  RAL_met_cut_ = pset.getParameter<double> ("RAL_met_cut");
180 
182 
183  hRAL_N_muons_ = 0;
184  hRAL_pt_muons_ = 0;
185  hRAL_eta_muons_ = 0;
186  hRAL_phi_muons_ = 0;
187  hRAL_Iso_muons_ = 0;
188  hRAL_N_elecs_ = 0;
189  hRAL_pt_elecs_ = 0;
190  hRAL_eta_elecs_ = 0;
191  hRAL_phi_elecs_ = 0;
192  hRAL_Iso_elecs_ = 0;
193  hRAL_Sum_pt_jets_ = 0;
194  hRAL_Met_ = 0;
195  hRAL_dR_emu_ = 0;
196  hRAL_mass_OS_mumu_ = 0;
197  hRAL_mass_OS_ee_ = 0;
198  hRAL_mass_OS_emu_ = 0;
199  hRAL_mass_SS_mumu_ = 0;
200  hRAL_mass_SS_ee_ = 0;
201  hRAL_mass_SS_emu_ = 0;
202  hRAL_Muon_monitor_ = 0;
204  hRAL_OSee_monitor_ = 0;
207  hRAL_SSee_monitor_ = 0;
211 
212 }
MonitorElement * hRAL_Iso_elecs_
Definition: SusyDQM.h:118
MonitorElement * hRAL_OSemu_monitor_
Definition: SusyDQM.h:135
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * hRAL_N_muons_
Definition: SusyDQM.h:108
double RAL_muon_pt_cut_
Definition: SusyDQM.h:92
MonitorElement * hRAL_Iso_muons_
Definition: SusyDQM.h:112
MonitorElement * hRAL_SSmumu_monitor_
Definition: SusyDQM.h:139
MonitorElement * hRAL_Sum_pt_jets_
Definition: SusyDQM.h:120
std::string moduleName_
Definition: SusyDQM.h:75
double RAL_elec_iso_cut_
Definition: SusyDQM.h:96
double RAL_jet_sum_pt_cut_
Definition: SusyDQM.h:102
double RAL_jet_pt_cut_
Definition: SusyDQM.h:98
MonitorElement * hRAL_eta_elecs_
Definition: SusyDQM.h:116
double RAL_jet_max_emf_cut_
Definition: SusyDQM.h:101
MonitorElement * hRAL_mass_SS_mumu_
Definition: SusyDQM.h:128
double RAL_jet_min_emf_cut_
Definition: SusyDQM.h:100
void initialize()
Definition: SusyDQM.h:220
MonitorElement * hRAL_mass_SS_emu_
Definition: SusyDQM.h:130
edm::InputTag jets_
Definition: SusyDQM.h:79
edm::InputTag muons_
Definition: SusyDQM.h:77
MonitorElement * hRAL_OSee_monitor_
Definition: SusyDQM.h:134
double RAL_elec_pt_cut_
Definition: SusyDQM.h:95
edm::InputTag electrons_
Definition: SusyDQM.h:78
double elec_eta_cut_
Definition: SusyDQM.h:83
double muon_eta_cut_
Definition: SusyDQM.h:87
MonitorElement * hRAL_mass_OS_emu_
Definition: SusyDQM.h:127
MonitorElement * hRAL_mass_OS_mumu_
Definition: SusyDQM.h:125
double RAL_muon_iso_cut_
Definition: SusyDQM.h:93
MonitorElement * hRAL_OSmumu_monitor_
Definition: SusyDQM.h:136
MonitorElement * hRAL_Muon_monitor_
Definition: SusyDQM.h:132
MonitorElement * hRAL_pt_elecs_
Definition: SusyDQM.h:115
MonitorElement * hRAL_eta_muons_
Definition: SusyDQM.h:110
MonitorElement * hRAL_phi_elecs_
Definition: SusyDQM.h:117
edm::ParameterSet parameters_
Definition: SusyDQM.h:72
MonitorElement * hRAL_pt_muons_
Definition: SusyDQM.h:109
MonitorElement * hRAL_N_elecs_
Definition: SusyDQM.h:114
DQMStore * dbe_
Definition: SusyDQM.h:73
MonitorElement * hRAL_Electron_monitor_
Definition: SusyDQM.h:133
double muon_nChi2_cut_
Definition: SusyDQM.h:89
double muon_d0_cut_
Definition: SusyDQM.h:90
double elec_mva_cut_
Definition: SusyDQM.h:84
MonitorElement * hRAL_Met_
Definition: SusyDQM.h:121
double elec_d0_cut_
Definition: SusyDQM.h:85
double RAL_jet_eta_cut_
Definition: SusyDQM.h:99
edm::InputTag met_
Definition: SusyDQM.h:80
MonitorElement * hRAL_SSee_monitor_
Definition: SusyDQM.h:137
MonitorElement * hRAL_SSemu_monitor_
Definition: SusyDQM.h:138
MonitorElement * hRAL_mass_OS_ee_
Definition: SusyDQM.h:126
MonitorElement * hRAL_TriMuon_monitor_
Definition: SusyDQM.h:140
double RAL_met_cut_
Definition: SusyDQM.h:104
MonitorElement * hRAL_phi_muons_
Definition: SusyDQM.h:111
edm::InputTag vertex_
Definition: SusyDQM.h:81
MonitorElement * hRAL_mass_SS_ee_
Definition: SusyDQM.h:129
MonitorElement * hRAL_dR_emu_
Definition: SusyDQM.h:123
double muon_nHits_cut_
Definition: SusyDQM.h:88
template<typename Mu , typename Ele , typename Jet , typename Met >
SusyDQM< Mu, Ele, Jet, Met >::~SusyDQM ( )

Definition at line 215 of file SusyDQM.h.

215  {
216 
217 }

Member Function Documentation

template<typename Mu , typename Ele , typename Jet , typename Met >
void SusyDQM< Mu, Ele, Jet, Met >::analyze ( const edm::Event evt,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 308 of file SusyDQM.h.

References deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, reco::MuonIsolation::emEt, edm::Event::getByLabel(), reco::MuonIsolation::hadEt, python.tagInventory::inv, fwrapper::jets, patZpeak::muons, python.multivaluedict::sort(), and reco::MuonIsolation::sumPt.

308  {
309 
311  bool isFound = evt.getByLabel(muons_, muons);
312  if (!isFound)
313  return;
314 
316  isFound = evt.getByLabel(electrons_, elecs);
317  if (!isFound)
318  return;
319 
320  //edm::Handle<std::vector<Jet> > jets;
321  //evt.getByLabel(jets_, jets);
322 
325  isFound = evt.getByLabel(jets_, cJets);
326  if (!isFound)
327  return;
328  std::vector<Jet> jets = *cJets;
329  std::sort(jets.begin(), jets.end(), PtGreater());
330 
332  isFound = evt.getByLabel(met_, mets);
333  if (!isFound)
334  return;
335 
337  isFound = evt.getByLabel(vertex_, vertices);
338  if (!isFound)
339  return;
340 
342  // Leptonic DQM histos
344 
345  float sumPt = 0.;
346  for (typename std::vector<Jet>::const_iterator jet_i = jets.begin(); jet_i != jets.end(); ++jet_i) {
347  if (jet_i->pt() < RAL_jet_pt_cut_)
348  continue;
349  if (fabs(jet_i->eta()) > RAL_jet_eta_cut_)
350  continue;
351  if (fabs(jet_i->eta()) > RAL_jet_eta_cut_)
352  continue;
353  if (jet_i->emEnergyFraction() < RAL_jet_min_emf_cut_)
354  continue;
355  if (jet_i->emEnergyFraction() > RAL_jet_max_emf_cut_)
356  continue;
357  sumPt += jet_i->pt();
358  }
359 
360  hRAL_Sum_pt_jets_->Fill(sumPt);
361 
362  float MET = 0.;
363  for (typename std::vector<Met>::const_iterator met_i = mets->begin(); met_i != mets->end(); ++met_i) {
364  MET = met_i->pt();
365  break;
366  }
367 
368  hRAL_Met_->Fill(MET);
369 
370  int nMuons = 0;
371  int nSSmumu = 0;
372  int nOSmumu = 0;
373  int nSSemu = 0;
374  int nOSemu = 0;
375  float inv = 0.;
376  float dR = 0.;
377 
378  for (typename std::vector<Mu>::const_iterator mu_i = muons->begin(); mu_i != muons->end(); ++mu_i) {
379  if (!(goodSusyMuon(&(*mu_i)) && mu_i->pt() > RAL_muon_pt_cut_))
380  continue;
381  ++nMuons;
382 
383  hRAL_pt_muons_->Fill(mu_i->pt());
384  hRAL_eta_muons_->Fill(mu_i->eta());
385  hRAL_phi_muons_->Fill(mu_i->phi());
386 
387  reco::MuonIsolation muIso = mu_i->isolationR03();
388  hRAL_Iso_muons_->Fill(muIso.emEt + muIso.hadEt + muIso.sumPt);
389 
390  //Muon muon pairs
391  for (typename std::vector<Mu>::const_iterator mu_j = muons->begin(); mu_j != muons->end(); ++mu_j) {
392  if (mu_i >= mu_j)
393  continue;
394  if (!(goodSusyMuon(&(*mu_j)) && mu_j->pt() > RAL_muon_pt_cut_))
395  continue;
396 
397  inv = (mu_i->p4() + mu_j->p4()).M();
398  if (mu_i->charge() * mu_j->charge() > 0) {
399  ++nSSmumu;
400  hRAL_mass_SS_mumu_->Fill(inv);
401  }
402  if (mu_i->charge() * mu_j->charge() < 0) {
403  ++nOSmumu;
404  hRAL_mass_OS_mumu_->Fill(inv);
405  }
406  }
407 
408  //Electron muon pairs
409  for (typename std::vector<Ele>::const_iterator ele_j = elecs->begin(); ele_j != elecs->end(); ++ele_j) {
410  if (!(goodSusyElectron(&(*ele_j)) && ele_j->pt() > RAL_elec_pt_cut_))
411  continue;
412  inv = (mu_i->p4() + ele_j->p4()).M();
413  dR = deltaR(*mu_i, *ele_j);
414  hRAL_dR_emu_->Fill(dR);
415  if (mu_i->charge() * ele_j->charge() > 0) {
416  ++nSSemu;
417  hRAL_mass_SS_emu_->Fill(inv);
418  }
419  if (mu_i->charge() * ele_j->charge() < 0) {
420  ++nOSemu;
421  hRAL_mass_OS_emu_->Fill(inv);
422  }
423  }
424  }
425 
426  hRAL_N_muons_->Fill(nMuons);
427 
428  int nElectrons = 0;
429  int nSSee = 0;
430  int nOSee = 0;
431  for (typename std::vector<Ele>::const_iterator ele_i = elecs->begin(); ele_i != elecs->end(); ++ele_i) {
432  if (!(goodSusyElectron(&(*ele_i)) && ele_i->pt() > RAL_elec_pt_cut_))
433  continue;
434  nElectrons++;
435 
436  hRAL_pt_elecs_->Fill(ele_i->pt());
437  hRAL_eta_elecs_->Fill(ele_i->eta());
438  hRAL_phi_elecs_->Fill(ele_i->phi());
439 
440  hRAL_Iso_elecs_->Fill(ele_i->dr03TkSumPt() + ele_i->dr03EcalRecHitSumEt() + ele_i->dr03HcalTowerSumEt());
441 
442  //Electron electron pairs
443  for (typename std::vector<Ele>::const_iterator ele_j = elecs->begin(); ele_j != elecs->end(); ++ele_j) {
444  if (ele_i >= ele_j)
445  continue;
446  if (!(goodSusyElectron(&(*ele_j)) && ele_j->pt() > RAL_elec_pt_cut_))
447  continue;
448 
449  inv = (ele_i->p4() + ele_j->p4()).M();
450  if (ele_i->charge() * ele_j->charge() > 0) {
451  ++nSSee;
452  hRAL_mass_SS_ee_->Fill(inv);
453  }
454  if (ele_i->charge() * ele_j->charge() < 0) {
455  ++nOSee;
456  hRAL_mass_OS_ee_->Fill(inv);
457  }
458  }
459  }
460 
461  hRAL_N_elecs_->Fill(nElectrons);
462 
463  if (MET > RAL_met_cut_ && sumPt > RAL_jet_sum_pt_cut_) {
464  if (nMuons >= 1) {
465  hRAL_Muon_monitor_->Fill(sumPt, MET);
466  }
467  if (nElectrons >= 1) {
468  hRAL_Electron_monitor_->Fill(sumPt, MET);
469  }
470  if (nOSee >= 1) {
471  hRAL_OSee_monitor_->Fill(sumPt, MET);
472  }
473  if (nOSemu >= 1) {
474  hRAL_OSemu_monitor_->Fill(sumPt, MET);
475  }
476  if (nOSmumu >= 1) {
477  hRAL_OSmumu_monitor_->Fill(sumPt, MET);
478  }
479  if (nSSee >= 1) {
480  hRAL_SSee_monitor_->Fill(sumPt, MET);
481  }
482  if (nSSemu >= 1) {
483  hRAL_SSemu_monitor_->Fill(sumPt, MET);
484  }
485  if (nSSmumu >= 1) {
486  hRAL_SSmumu_monitor_->Fill(sumPt, MET);
487  }
488  }
489  if (nMuons >= 3) {
490  hRAL_TriMuon_monitor_->Fill(sumPt, MET);
491  }
492 
493 }
MonitorElement * hRAL_Iso_elecs_
Definition: SusyDQM.h:118
MonitorElement * hRAL_OSemu_monitor_
Definition: SusyDQM.h:135
float hadEt
hcal sum-Et
Definition: MuonIsolation.h:9
MonitorElement * hRAL_N_muons_
Definition: SusyDQM.h:108
float sumPt
sum-pt of tracks
Definition: MuonIsolation.h:7
double RAL_muon_pt_cut_
Definition: SusyDQM.h:92
MonitorElement * hRAL_Iso_muons_
Definition: SusyDQM.h:112
virtual bool goodSusyMuon(const Mu *)
Definition: SusyDQM.h:291
MonitorElement * hRAL_SSmumu_monitor_
Definition: SusyDQM.h:139
MonitorElement * hRAL_Sum_pt_jets_
Definition: SusyDQM.h:120
double RAL_jet_sum_pt_cut_
Definition: SusyDQM.h:102
double RAL_jet_pt_cut_
Definition: SusyDQM.h:98
MonitorElement * hRAL_eta_elecs_
Definition: SusyDQM.h:116
double RAL_jet_max_emf_cut_
Definition: SusyDQM.h:101
MonitorElement * hRAL_mass_SS_mumu_
Definition: SusyDQM.h:128
double RAL_jet_min_emf_cut_
Definition: SusyDQM.h:100
MonitorElement * hRAL_mass_SS_emu_
Definition: SusyDQM.h:130
void Fill(long long x)
edm::InputTag jets_
Definition: SusyDQM.h:79
edm::InputTag muons_
Definition: SusyDQM.h:77
MonitorElement * hRAL_OSee_monitor_
Definition: SusyDQM.h:134
double RAL_elec_pt_cut_
Definition: SusyDQM.h:95
edm::InputTag electrons_
Definition: SusyDQM.h:78
vector< PseudoJet > jets
MonitorElement * hRAL_mass_OS_emu_
Definition: SusyDQM.h:127
MonitorElement * hRAL_mass_OS_mumu_
Definition: SusyDQM.h:125
float emEt
ecal sum-Et
Definition: MuonIsolation.h:8
MonitorElement * hRAL_OSmumu_monitor_
Definition: SusyDQM.h:136
virtual bool goodSusyElectron(const Ele *)
Definition: SusyDQM.h:278
MonitorElement * hRAL_Muon_monitor_
Definition: SusyDQM.h:132
MonitorElement * hRAL_pt_elecs_
Definition: SusyDQM.h:115
MonitorElement * hRAL_eta_muons_
Definition: SusyDQM.h:110
MonitorElement * hRAL_phi_elecs_
Definition: SusyDQM.h:117
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
MonitorElement * hRAL_pt_muons_
Definition: SusyDQM.h:109
MonitorElement * hRAL_N_elecs_
Definition: SusyDQM.h:114
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
MonitorElement * hRAL_Electron_monitor_
Definition: SusyDQM.h:133
MonitorElement * hRAL_Met_
Definition: SusyDQM.h:121
double RAL_jet_eta_cut_
Definition: SusyDQM.h:99
edm::InputTag met_
Definition: SusyDQM.h:80
MonitorElement * hRAL_SSee_monitor_
Definition: SusyDQM.h:137
MonitorElement * hRAL_SSemu_monitor_
Definition: SusyDQM.h:138
tuple muons
Definition: patZpeak.py:38
MonitorElement * hRAL_mass_OS_ee_
Definition: SusyDQM.h:126
MonitorElement * hRAL_TriMuon_monitor_
Definition: SusyDQM.h:140
double RAL_met_cut_
Definition: SusyDQM.h:104
MonitorElement * hRAL_phi_muons_
Definition: SusyDQM.h:111
edm::InputTag vertex_
Definition: SusyDQM.h:81
MonitorElement * hRAL_mass_SS_ee_
Definition: SusyDQM.h:129
MonitorElement * hRAL_dR_emu_
Definition: SusyDQM.h:123
template<typename Mu , typename Ele , typename Jet , typename Met >
void SusyDQM< Mu, Ele, Jet, Met >::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 225 of file SusyDQM.h.

References DQMStore::book1D(), DQMStore::book2D(), dbe_, and DQMStore::setCurrentFolder().

225  {
226 
228 
229  hRAL_N_muons_ = dbe_->book1D("RAL_N_muons", "RAL_N_muons", 10, 0., 10.);
230  hRAL_pt_muons_ = dbe_->book1D("RAL_pt_muons", "RAL_pt_muons", 50, 0., 300.);
231  hRAL_eta_muons_ = dbe_->book1D("RAL_eta_muons", "RAL_eta_muons", 50, -2.5, 2.5);
232  hRAL_phi_muons_ = dbe_->book1D("RAL_phi_muons", "RAL_phi_muons", 50, -4., 4.);
233  hRAL_Iso_muons_ = dbe_->book1D("RAL_Iso_muons", "RAL_Iso_muons", 50, 0., 25.);
234 
235  hRAL_N_elecs_ = dbe_->book1D("RAL_N_elecs", "RAL_N_elecs", 10, 0., 10.);
236  hRAL_pt_elecs_ = dbe_->book1D("RAL_pt_elecs", "RAL_pt_elecs", 50, 0., 300.);
237  hRAL_eta_elecs_ = dbe_->book1D("RAL_eta_elecs", "RAL_eta_elecs", 50, -2.5, 2.5);
238  hRAL_phi_elecs_ = dbe_->book1D("RAL_phi_elecs", "RAL_phi_elecs", 50, -4., 4.);
239  hRAL_Iso_elecs_ = dbe_->book1D("RAL_Iso_elecs", "RAL_Iso_elecs", 50, 0., 25.);
240 
241  hRAL_Sum_pt_jets_ = dbe_->book1D("RAL_Sum_pt_jets", "RAL_Sum_pt_jets", 50, 0., 2000.);
242  hRAL_Met_ = dbe_->book1D("RAL_Met", "RAL_Met", 50, 0., 1000.);
243 
244  hRAL_dR_emu_ = dbe_->book1D("RAL_deltaR_emu", "RAL_deltaR_emu", 50, 0., 10.);
245 
246  hRAL_mass_OS_mumu_ = dbe_->book1D("RAL_mass_OS_mumu", "RAL_mass_OS_mumu", 50, 0., 300.);
247  hRAL_mass_OS_ee_ = dbe_->book1D("RAL_mass_OS_ee", "RAL_mass_OS_ee", 50, 0., 300.);
248  hRAL_mass_OS_emu_ = dbe_->book1D("RAL_mass_OS_emu", "RAL_mass_OS_emu", 50, 0., 300.);
249  hRAL_mass_SS_mumu_ = dbe_->book1D("RAL_mass_SS_mumu", "RAL_mass_SS_mumu", 50, 0., 300.);
250  hRAL_mass_SS_ee_ = dbe_->book1D("RAL_mass_SS_ee", "RAL_mass_SS_ee", 50, 0., 300.);
251  hRAL_mass_SS_emu_ = dbe_->book1D("RAL_mass_SS_emu", "RAL_mass_SS_emu", 50, 0., 300.);
252 
253  hRAL_Muon_monitor_ = dbe_->book2D("RAL_Single_Muon_Selection", "RAL_Single_Muon_Selection", 50, 0., 1000., 50, 0.,
254  1000.);
255  hRAL_Electron_monitor_ = dbe_->book2D("RAL_Single_Electron_Selection", "RAL_Single_Electron_Selection", 50, 0.,
256  1000., 50, 0., 1000.);
257  hRAL_OSee_monitor_ = dbe_->book2D("RAL_OS_Electron_Selection", "RAL_OS_Electron_Selection", 50, 0., 1000., 50, 0.,
258  1000.);
259  hRAL_OSemu_monitor_ = dbe_->book2D("RAL_OS_ElectronMuon_Selection", "RAL_OS_ElectronMuon_Selection", 50, 0., 1000.,
260  50, 0., 1000.);
261  hRAL_OSmumu_monitor_ = dbe_->book2D("RAL_OS_Muon_Selection", "RAL_OS_Muon_Selection", 50, 0., 1000., 50, 0., 1000.);
262  hRAL_SSee_monitor_ = dbe_->book2D("RAL_SS_Electron_Selection", "RAL_SS_Electron_Selection", 50, 0., 1000., 50, 0.,
263  1000.);
264  hRAL_SSemu_monitor_ = dbe_->book2D("RAL_SS_ElectronMuon_Selection", "RAL_SS_ElectronMuon_Selection", 50, 0., 1000.,
265  50, 0., 1000.);
266  hRAL_SSmumu_monitor_ = dbe_->book2D("RAL_SS_Muon_Selection", "RAL_SS_Muon_Selection", 50, 0., 1000., 50, 0., 1000.);
267  hRAL_TriMuon_monitor_ = dbe_->book2D("RAL_Tri_Muon_Selection", "RAL_Tri_Muon_Selection", 50, 0., 1000., 50, 0.,
268  1000.);
269 
270 }
MonitorElement * hRAL_Iso_elecs_
Definition: SusyDQM.h:118
MonitorElement * hRAL_OSemu_monitor_
Definition: SusyDQM.h:135
MonitorElement * hRAL_N_muons_
Definition: SusyDQM.h:108
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
MonitorElement * hRAL_Iso_muons_
Definition: SusyDQM.h:112
MonitorElement * hRAL_SSmumu_monitor_
Definition: SusyDQM.h:139
MonitorElement * hRAL_Sum_pt_jets_
Definition: SusyDQM.h:120
std::string moduleName_
Definition: SusyDQM.h:75
MonitorElement * hRAL_eta_elecs_
Definition: SusyDQM.h:116
MonitorElement * hRAL_mass_SS_mumu_
Definition: SusyDQM.h:128
MonitorElement * hRAL_mass_SS_emu_
Definition: SusyDQM.h:130
MonitorElement * hRAL_OSee_monitor_
Definition: SusyDQM.h:134
MonitorElement * hRAL_mass_OS_emu_
Definition: SusyDQM.h:127
MonitorElement * hRAL_mass_OS_mumu_
Definition: SusyDQM.h:125
MonitorElement * hRAL_OSmumu_monitor_
Definition: SusyDQM.h:136
MonitorElement * hRAL_Muon_monitor_
Definition: SusyDQM.h:132
MonitorElement * hRAL_pt_elecs_
Definition: SusyDQM.h:115
MonitorElement * hRAL_eta_muons_
Definition: SusyDQM.h:110
MonitorElement * hRAL_phi_elecs_
Definition: SusyDQM.h:117
MonitorElement * hRAL_pt_muons_
Definition: SusyDQM.h:109
MonitorElement * hRAL_N_elecs_
Definition: SusyDQM.h:114
DQMStore * dbe_
Definition: SusyDQM.h:73
MonitorElement * hRAL_Electron_monitor_
Definition: SusyDQM.h:133
MonitorElement * hRAL_Met_
Definition: SusyDQM.h:121
MonitorElement * hRAL_SSee_monitor_
Definition: SusyDQM.h:137
MonitorElement * hRAL_SSemu_monitor_
Definition: SusyDQM.h:138
MonitorElement * hRAL_mass_OS_ee_
Definition: SusyDQM.h:126
MonitorElement * hRAL_TriMuon_monitor_
Definition: SusyDQM.h:140
MonitorElement * hRAL_phi_muons_
Definition: SusyDQM.h:111
MonitorElement * hRAL_mass_SS_ee_
Definition: SusyDQM.h:129
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:845
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
MonitorElement * hRAL_dR_emu_
Definition: SusyDQM.h:123
template<typename Mu , typename Ele , typename Jet , typename Met >
void SusyDQM< Mu, Ele, Jet, Met >::beginRun ( const edm::Run run)
protected

Definition at line 273 of file SusyDQM.h.

273  {
274 
275 }
template<typename Mu , typename Ele , typename Jet , typename Met >
void SusyDQM< Mu, Ele, Jet, Met >::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 501 of file SusyDQM.h.

501  {
502 
503 }
template<typename Mu , typename Ele , typename Jet , typename Met >
void SusyDQM< Mu, Ele, Jet, Met >::endRun ( const edm::Run run)
protected

Definition at line 496 of file SusyDQM.h.

496  {
497 
498 }
template<typename Mu , typename Ele , typename Jet , typename Met >
bool SusyDQM< Mu, Ele, Jet, Met >::goodSusyElectron ( const Ele *  ele)
privatevirtual

Definition at line 278 of file SusyDQM.h.

278  {
279  // if (ele->pt() < elec_pt_cut_)
280  // return false;
281  if (fabs(ele->eta()) > elec_eta_cut_)
282  return false;
283  // if (ele->mva() < elec_mva_cut_)
284  // return false;
285  if (fabs(ele->gsfTrack()->dxy(bs)) > elec_d0_cut_)
286  return false;
287  return true;
288 }
math::XYZPoint bs
Definition: SusyDQM.h:106
double elec_eta_cut_
Definition: SusyDQM.h:83
double elec_d0_cut_
Definition: SusyDQM.h:85
template<typename Mu , typename Ele , typename Jet , typename Met >
bool SusyDQM< Mu, Ele, Jet, Met >::goodSusyMuon ( const Mu mu)
privatevirtual

Definition at line 291 of file SusyDQM.h.

291  {
292  // if (mu->pt() < muon_pt_cut_)
293  // return false;
294  if (fabs(mu->eta()) > muon_eta_cut_)
295  return false;
296  if (!mu->isGlobalMuon())
297  return false;
298  if (mu->innerTrack()->numberOfValidHits() < muon_nHits_cut_)
299  return false;
300  if (mu->globalTrack()->normalizedChi2() > muon_nChi2_cut_)
301  return false;
302  if (fabs(mu->innerTrack()->dxy(bs)) > muon_d0_cut_)
303  return false;
304  return true;
305 }
math::XYZPoint bs
Definition: SusyDQM.h:106
double muon_eta_cut_
Definition: SusyDQM.h:87
const int mu
Definition: Constants.h:23
double muon_nChi2_cut_
Definition: SusyDQM.h:89
double muon_d0_cut_
Definition: SusyDQM.h:90
double muon_nHits_cut_
Definition: SusyDQM.h:88
template<typename Mu , typename Ele , typename Jet , typename Met >
void SusyDQM< Mu, Ele, Jet, Met >::initialize ( )
private

Definition at line 220 of file SusyDQM.h.

220  {
221 
222 }

Member Data Documentation

template<typename Mu , typename Ele , typename Jet , typename Met >
math::XYZPoint SusyDQM< Mu, Ele, Jet, Met >::bs
private

Definition at line 106 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
DQMStore* SusyDQM< Mu, Ele, Jet, Met >::dbe_
private

Definition at line 73 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::elec_d0_cut_
private

Definition at line 85 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::elec_eta_cut_
private

Definition at line 83 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::elec_mva_cut_
private

Definition at line 84 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::InputTag SusyDQM< Mu, Ele, Jet, Met >::electrons_
private

Definition at line 78 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_dR_emu_
private

Definition at line 123 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_Electron_monitor_
private

Definition at line 133 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_eta_elecs_
private

Definition at line 116 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_eta_muons_
private

Definition at line 110 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_Iso_elecs_
private

Definition at line 118 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_Iso_muons_
private

Definition at line 112 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_mass_OS_ee_
private

Definition at line 126 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_mass_OS_emu_
private

Definition at line 127 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_mass_OS_mumu_
private

Definition at line 125 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_mass_SS_ee_
private

Definition at line 129 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_mass_SS_emu_
private

Definition at line 130 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_mass_SS_mumu_
private

Definition at line 128 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_Met_
private

Definition at line 121 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_Muon_monitor_
private

Definition at line 132 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_N_elecs_
private

Definition at line 114 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_N_muons_
private

Definition at line 108 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_OSee_monitor_
private

Definition at line 134 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_OSemu_monitor_
private

Definition at line 135 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_OSmumu_monitor_
private

Definition at line 136 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_phi_elecs_
private

Definition at line 117 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_phi_muons_
private

Definition at line 111 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_pt_elecs_
private

Definition at line 115 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_pt_muons_
private

Definition at line 109 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_SSee_monitor_
private

Definition at line 137 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_SSemu_monitor_
private

Definition at line 138 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_SSmumu_monitor_
private

Definition at line 139 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_Sum_pt_jets_
private

Definition at line 120 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
MonitorElement* SusyDQM< Mu, Ele, Jet, Met >::hRAL_TriMuon_monitor_
private

Definition at line 140 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::InputTag SusyDQM< Mu, Ele, Jet, Met >::jets_
private

Definition at line 79 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::InputTag SusyDQM< Mu, Ele, Jet, Met >::met_
private

Definition at line 80 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
std::string SusyDQM< Mu, Ele, Jet, Met >::moduleName_
private

Definition at line 75 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::muon_d0_cut_
private

Definition at line 90 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::muon_eta_cut_
private

Definition at line 87 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::muon_nChi2_cut_
private

Definition at line 89 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::muon_nHits_cut_
private

Definition at line 88 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::InputTag SusyDQM< Mu, Ele, Jet, Met >::muons_
private

Definition at line 77 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::ParameterSet SusyDQM< Mu, Ele, Jet, Met >::parameters_
private
template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_elec_iso_cut_
private

Definition at line 96 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_elec_pt_cut_
private

Definition at line 95 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_jet_eta_cut_
private

Definition at line 99 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_jet_max_emf_cut_
private

Definition at line 101 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_jet_min_emf_cut_
private

Definition at line 100 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_jet_pt_cut_
private

Definition at line 98 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_jet_sum_pt_cut_
private

Definition at line 102 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_met_cut_
private

Definition at line 104 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_muon_iso_cut_
private

Definition at line 93 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
double SusyDQM< Mu, Ele, Jet, Met >::RAL_muon_pt_cut_
private

Definition at line 92 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::InputTag SusyDQM< Mu, Ele, Jet, Met >::vertex_
private

Definition at line 81 of file SusyDQM.h.