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 edm::EDConsumerBase

Public Member Functions

 SusyDQM (const edm::ParameterSet &)
 
 ~SusyDQM ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void beginRun (const edm::Run &)
 
void endRun (const edm::Run &)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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::EDGetTokenT< std::vector
< reco::GsfElectron > > 
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::EDGetTokenT< std::vector
< reco::CaloJet > > 
jets_
 
edm::EDGetTokenT< std::vector
< reco::CaloMET > > 
met_
 
std::string moduleName_
 
double muon_d0_cut_
 
double muon_eta_cut_
 
double muon_nChi2_cut_
 
double muon_nHits_cut_
 
edm::EDGetTokenT< std::vector
< reco::Muon > > 
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::EDGetTokenT
< reco::VertexCollection
vertex_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- 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 52 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 142 of file SusyDQM.h.

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

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

Definition at line 216 of file SusyDQM.h.

216 {}

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 315 of file SusyDQM.h.

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

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

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

222  {
223 
225 
226  hRAL_N_muons_ = dbe_->book1D("RAL_N_muons", "RAL_N_muons", 10, 0., 10.);
227  hRAL_pt_muons_ = dbe_->book1D("RAL_pt_muons", "RAL_pt_muons", 50, 0., 300.);
229  dbe_->book1D("RAL_eta_muons", "RAL_eta_muons", 50, -2.5, 2.5);
230  hRAL_phi_muons_ = dbe_->book1D("RAL_phi_muons", "RAL_phi_muons", 50, -4., 4.);
231  hRAL_Iso_muons_ = dbe_->book1D("RAL_Iso_muons", "RAL_Iso_muons", 50, 0., 25.);
232 
233  hRAL_N_elecs_ = dbe_->book1D("RAL_N_elecs", "RAL_N_elecs", 10, 0., 10.);
234  hRAL_pt_elecs_ = dbe_->book1D("RAL_pt_elecs", "RAL_pt_elecs", 50, 0., 300.);
236  dbe_->book1D("RAL_eta_elecs", "RAL_eta_elecs", 50, -2.5, 2.5);
237  hRAL_phi_elecs_ = dbe_->book1D("RAL_phi_elecs", "RAL_phi_elecs", 50, -4., 4.);
238  hRAL_Iso_elecs_ = dbe_->book1D("RAL_Iso_elecs", "RAL_Iso_elecs", 50, 0., 25.);
239 
241  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 
247  dbe_->book1D("RAL_mass_OS_mumu", "RAL_mass_OS_mumu", 50, 0., 300.);
249  dbe_->book1D("RAL_mass_OS_ee", "RAL_mass_OS_ee", 50, 0., 300.);
251  dbe_->book1D("RAL_mass_OS_emu", "RAL_mass_OS_emu", 50, 0., 300.);
253  dbe_->book1D("RAL_mass_SS_mumu", "RAL_mass_SS_mumu", 50, 0., 300.);
255  dbe_->book1D("RAL_mass_SS_ee", "RAL_mass_SS_ee", 50, 0., 300.);
257  dbe_->book1D("RAL_mass_SS_emu", "RAL_mass_SS_emu", 50, 0., 300.);
258 
260  dbe_->book2D("RAL_Single_Muon_Selection", "RAL_Single_Muon_Selection", 50,
261  0., 1000., 50, 0., 1000.);
262  hRAL_Electron_monitor_ = dbe_->book2D("RAL_Single_Electron_Selection",
263  "RAL_Single_Electron_Selection", 50, 0.,
264  1000., 50, 0., 1000.);
266  dbe_->book2D("RAL_OS_Electron_Selection", "RAL_OS_Electron_Selection", 50,
267  0., 1000., 50, 0., 1000.);
268  hRAL_OSemu_monitor_ = dbe_->book2D("RAL_OS_ElectronMuon_Selection",
269  "RAL_OS_ElectronMuon_Selection", 50, 0.,
270  1000., 50, 0., 1000.);
272  dbe_->book2D("RAL_OS_Muon_Selection", "RAL_OS_Muon_Selection", 50, 0.,
273  1000., 50, 0., 1000.);
275  dbe_->book2D("RAL_SS_Electron_Selection", "RAL_SS_Electron_Selection", 50,
276  0., 1000., 50, 0., 1000.);
277  hRAL_SSemu_monitor_ = dbe_->book2D("RAL_SS_ElectronMuon_Selection",
278  "RAL_SS_ElectronMuon_Selection", 50, 0.,
279  1000., 50, 0., 1000.);
281  dbe_->book2D("RAL_SS_Muon_Selection", "RAL_SS_Muon_Selection", 50, 0.,
282  1000., 50, 0., 1000.);
284  dbe_->book2D("RAL_Tri_Muon_Selection", "RAL_Tri_Muon_Selection", 50, 0.,
285  1000., 50, 0., 1000.);
286 }
MonitorElement * hRAL_Iso_elecs_
Definition: SusyDQM.h:116
MonitorElement * hRAL_OSemu_monitor_
Definition: SusyDQM.h:133
MonitorElement * hRAL_N_muons_
Definition: SusyDQM.h:106
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:971
MonitorElement * hRAL_Iso_muons_
Definition: SusyDQM.h:110
MonitorElement * hRAL_SSmumu_monitor_
Definition: SusyDQM.h:137
MonitorElement * hRAL_Sum_pt_jets_
Definition: SusyDQM.h:118
std::string moduleName_
Definition: SusyDQM.h:73
MonitorElement * hRAL_eta_elecs_
Definition: SusyDQM.h:114
MonitorElement * hRAL_mass_SS_mumu_
Definition: SusyDQM.h:126
MonitorElement * hRAL_mass_SS_emu_
Definition: SusyDQM.h:128
MonitorElement * hRAL_OSee_monitor_
Definition: SusyDQM.h:132
MonitorElement * hRAL_mass_OS_emu_
Definition: SusyDQM.h:125
MonitorElement * hRAL_mass_OS_mumu_
Definition: SusyDQM.h:123
MonitorElement * hRAL_OSmumu_monitor_
Definition: SusyDQM.h:134
MonitorElement * hRAL_Muon_monitor_
Definition: SusyDQM.h:130
MonitorElement * hRAL_pt_elecs_
Definition: SusyDQM.h:113
MonitorElement * hRAL_eta_muons_
Definition: SusyDQM.h:108
MonitorElement * hRAL_phi_elecs_
Definition: SusyDQM.h:115
MonitorElement * hRAL_pt_muons_
Definition: SusyDQM.h:107
MonitorElement * hRAL_N_elecs_
Definition: SusyDQM.h:112
DQMStore * dbe_
Definition: SusyDQM.h:71
MonitorElement * hRAL_Electron_monitor_
Definition: SusyDQM.h:131
MonitorElement * hRAL_Met_
Definition: SusyDQM.h:119
MonitorElement * hRAL_SSee_monitor_
Definition: SusyDQM.h:135
MonitorElement * hRAL_SSemu_monitor_
Definition: SusyDQM.h:136
MonitorElement * hRAL_mass_OS_ee_
Definition: SusyDQM.h:124
MonitorElement * hRAL_TriMuon_monitor_
Definition: SusyDQM.h:138
MonitorElement * hRAL_phi_muons_
Definition: SusyDQM.h:109
MonitorElement * hRAL_mass_SS_ee_
Definition: SusyDQM.h:127
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:1099
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:684
MonitorElement * hRAL_dR_emu_
Definition: SusyDQM.h:121
template<typename Mu , typename Ele , typename Jet , typename Met >
void SusyDQM< Mu, Ele, Jet, Met >::beginRun ( const edm::Run run)
protected

Definition at line 289 of file SusyDQM.h.

289 {}
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 497 of file SusyDQM.h.

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

Definition at line 494 of file SusyDQM.h.

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

Definition at line 292 of file SusyDQM.h.

292  {
293  // if (ele->pt() < elec_pt_cut_)
294  // return false;
295  if (fabs(ele->eta()) > elec_eta_cut_) return false;
296  // if (ele->mva() < elec_mva_cut_)
297  // return false;
298  if (fabs(ele->gsfTrack()->dxy(bs)) > elec_d0_cut_) return false;
299  return true;
300 }
math::XYZPoint bs
Definition: SusyDQM.h:104
double elec_eta_cut_
Definition: SusyDQM.h:81
double elec_d0_cut_
Definition: SusyDQM.h:83
template<typename Mu , typename Ele , typename Jet , typename Met >
bool SusyDQM< Mu, Ele, Jet, Met >::goodSusyMuon ( const Mu mu)
privatevirtual

Definition at line 303 of file SusyDQM.h.

303  {
304  // if (mu->pt() < muon_pt_cut_)
305  // return false;
306  if (fabs(mu->eta()) > muon_eta_cut_) return false;
307  if (!mu->isGlobalMuon()) return false;
308  if (mu->innerTrack()->numberOfValidHits() < muon_nHits_cut_) return false;
309  if (mu->globalTrack()->normalizedChi2() > muon_nChi2_cut_) return false;
310  if (fabs(mu->innerTrack()->dxy(bs)) > muon_d0_cut_) return false;
311  return true;
312 }
math::XYZPoint bs
Definition: SusyDQM.h:104
double muon_eta_cut_
Definition: SusyDQM.h:85
const int mu
Definition: Constants.h:22
double muon_nChi2_cut_
Definition: SusyDQM.h:87
double muon_d0_cut_
Definition: SusyDQM.h:88
double muon_nHits_cut_
Definition: SusyDQM.h:86
template<typename Mu , typename Ele , typename Jet , typename Met >
void SusyDQM< Mu, Ele, Jet, Met >::initialize ( )
private

Definition at line 219 of file SusyDQM.h.

219 {}

Member Data Documentation

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

Definition at line 104 of file SusyDQM.h.

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

Definition at line 71 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 83 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 81 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 82 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::EDGetTokenT<std::vector<reco::GsfElectron> > SusyDQM< Mu, Ele, Jet, Met >::electrons_
private

Definition at line 76 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 121 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 131 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 114 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 108 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 116 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 110 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 124 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 125 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 123 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 127 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 128 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 126 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 119 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 130 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 112 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 106 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 132 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 133 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 134 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 115 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 109 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 113 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 107 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 135 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 136 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 137 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 118 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 138 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::EDGetTokenT<std::vector<reco::CaloJet> > SusyDQM< Mu, Ele, Jet, Met >::jets_
private

Definition at line 77 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::EDGetTokenT<std::vector<reco::CaloMET> > SusyDQM< Mu, Ele, Jet, Met >::met_
private

Definition at line 78 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 73 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 88 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 85 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 87 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 86 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::EDGetTokenT<std::vector<reco::Muon> > SusyDQM< Mu, Ele, Jet, Met >::muons_
private

Definition at line 75 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 94 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 93 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 97 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 99 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 98 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 96 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 100 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 102 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 91 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 90 of file SusyDQM.h.

template<typename Mu , typename Ele , typename Jet , typename Met >
edm::EDGetTokenT<reco::VertexCollection> SusyDQM< Mu, Ele, Jet, Met >::vertex_
private

Definition at line 79 of file SusyDQM.h.