CMS 3D CMS Logo

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 >:
DQMEDAnalyzer edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 SusyDQM (const edm::ParameterSet &)
 
 ~SusyDQM () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Protected Member Functions

void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 

Private Member Functions

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

Private Attributes

math::XYZPoint bs
 
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::VertexCollectionvertex_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

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

◆ SusyDQM()

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

Definition at line 135 of file SusyDQM.h.

135  {
136  parameters_ = pset;
137  moduleName_ = pset.getUntrackedParameter<std::string>("moduleName");
138 
139  muons_ = consumes<std::vector<reco::Muon> >(pset.getParameter<edm::InputTag>("muonCollection"));
140  electrons_ = consumes<std::vector<reco::GsfElectron> >(pset.getParameter<edm::InputTag>("electronCollection"));
141  jets_ = consumes<std::vector<reco::CaloJet> >(pset.getParameter<edm::InputTag>("jetCollection"));
142  met_ = consumes<std::vector<reco::CaloMET> >(pset.getParameter<edm::InputTag>("metCollection"));
143  vertex_ = consumes<reco::VertexCollection>(pset.getParameter<edm::InputTag>("vertexCollection"));
144 
145  muon_eta_cut_ = pset.getParameter<double>("muon_eta_cut");
146  muon_nHits_cut_ = pset.getParameter<double>("muon_nHits_cut");
147  muon_nChi2_cut_ = pset.getParameter<double>("muon_nChi2_cut");
148  muon_d0_cut_ = pset.getParameter<double>("muon_d0_cut");
149 
150  elec_eta_cut_ = pset.getParameter<double>("elec_eta_cut");
151  elec_mva_cut_ = pset.getParameter<double>("elec_mva_cut");
152  elec_d0_cut_ = pset.getParameter<double>("elec_d0_cut");
153 
154  RAL_muon_pt_cut_ = pset.getParameter<double>("RAL_muon_pt_cut");
155  RAL_muon_iso_cut_ = pset.getParameter<double>("RAL_muon_iso_cut");
156 
157  RAL_elec_pt_cut_ = pset.getParameter<double>("RAL_elec_pt_cut");
158  RAL_elec_iso_cut_ = pset.getParameter<double>("RAL_elec_iso_cut");
159 
160  RAL_jet_pt_cut_ = pset.getParameter<double>("RAL_jet_pt_cut");
161  RAL_jet_sum_pt_cut_ = pset.getParameter<double>("RAL_jet_sum_pt_cut");
162  RAL_jet_eta_cut_ = pset.getParameter<double>("RAL_jet_eta_cut");
163  RAL_jet_min_emf_cut_ = pset.getParameter<double>("RAL_jet_min_emf_cut");
164  RAL_jet_max_emf_cut_ = pset.getParameter<double>("RAL_jet_max_emf_cut");
165 
166  RAL_met_cut_ = pset.getParameter<double>("RAL_met_cut");
167 
168  hRAL_N_muons_ = nullptr;
169  hRAL_pt_muons_ = nullptr;
170  hRAL_eta_muons_ = nullptr;
171  hRAL_phi_muons_ = nullptr;
172  hRAL_Iso_muons_ = nullptr;
173  hRAL_N_elecs_ = nullptr;
174  hRAL_pt_elecs_ = nullptr;
175  hRAL_eta_elecs_ = nullptr;
176  hRAL_phi_elecs_ = nullptr;
177  hRAL_Iso_elecs_ = nullptr;
178  hRAL_Sum_pt_jets_ = nullptr;
179  hRAL_Met_ = nullptr;
180  hRAL_dR_emu_ = nullptr;
181  hRAL_mass_OS_mumu_ = nullptr;
182  hRAL_mass_OS_ee_ = nullptr;
183  hRAL_mass_OS_emu_ = nullptr;
184  hRAL_mass_SS_mumu_ = nullptr;
185  hRAL_mass_SS_ee_ = nullptr;
186  hRAL_mass_SS_emu_ = nullptr;
187  hRAL_Muon_monitor_ = nullptr;
188  hRAL_Electron_monitor_ = nullptr;
189  hRAL_OSee_monitor_ = nullptr;
190  hRAL_OSemu_monitor_ = nullptr;
191  hRAL_OSmumu_monitor_ = nullptr;
192  hRAL_SSee_monitor_ = nullptr;
193  hRAL_SSemu_monitor_ = nullptr;
194  hRAL_SSmumu_monitor_ = nullptr;
195  hRAL_TriMuon_monitor_ = nullptr;
196 }

References muonDTDigis_cfi::pset, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ ~SusyDQM()

template<typename Mu , typename Ele , typename Jet , typename Met >
SusyDQM< Mu, Ele, Jet, Met >::~SusyDQM ( )
override

Definition at line 199 of file SusyDQM.h.

199 {}

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 278 of file SusyDQM.h.

278  {
280  bool isFound = evt.getByToken(muons_, muons);
281  if (!isFound)
282  return;
283 
285  isFound = evt.getByToken(electrons_, elecs);
286  if (!isFound)
287  return;
288 
291  isFound = evt.getByToken(jets_, cJets);
292  if (!isFound)
293  return;
294  std::vector<Jet> jets = *cJets;
295  std::sort(jets.begin(), jets.end(), PtGreater());
296 
298  isFound = evt.getByToken(met_, mets);
299  if (!isFound)
300  return;
301 
303  isFound = evt.getByToken(vertex_, vertices);
304  if (!isFound)
305  return;
306 
308  // Leptonic DQM histos
310 
311  float sumPt = 0.;
312  for (typename std::vector<Jet>::const_iterator jet_i = jets.begin(); jet_i != jets.end(); ++jet_i) {
313  if (jet_i->pt() < RAL_jet_pt_cut_)
314  continue;
315  if (fabs(jet_i->eta()) > RAL_jet_eta_cut_)
316  continue;
317  if (fabs(jet_i->eta()) > RAL_jet_eta_cut_)
318  continue;
319  if (jet_i->emEnergyFraction() < RAL_jet_min_emf_cut_)
320  continue;
321  if (jet_i->emEnergyFraction() > RAL_jet_max_emf_cut_)
322  continue;
323  sumPt += jet_i->pt();
324  }
325 
327 
328  float MET = 0.;
329  for (typename std::vector<Met>::const_iterator met_i = mets->begin(); met_i != mets->end(); ++met_i) {
330  MET = met_i->pt();
331  break;
332  }
333 
334  hRAL_Met_->Fill(MET);
335 
336  int nMuons = 0;
337  int nSSmumu = 0;
338  int nOSmumu = 0;
339  int nSSemu = 0;
340  int nOSemu = 0;
341  float inv = 0.;
342  float dR = 0.;
343 
344  for (typename std::vector<Mu>::const_iterator mu_i = muons->begin(); mu_i != muons->end(); ++mu_i) {
345  if (!(goodSusyMuon(&(*mu_i)) && mu_i->pt() > RAL_muon_pt_cut_))
346  continue;
347  ++nMuons;
348 
349  hRAL_pt_muons_->Fill(mu_i->pt());
350  hRAL_eta_muons_->Fill(mu_i->eta());
351  hRAL_phi_muons_->Fill(mu_i->phi());
352 
353  reco::MuonIsolation muIso = mu_i->isolationR03();
354  hRAL_Iso_muons_->Fill(muIso.emEt + muIso.hadEt + muIso.sumPt);
355 
356  // Muon muon pairs
357  for (typename std::vector<Mu>::const_iterator mu_j = muons->begin(); mu_j != muons->end(); ++mu_j) {
358  if (mu_i >= mu_j)
359  continue;
360  if (!(goodSusyMuon(&(*mu_j)) && mu_j->pt() > RAL_muon_pt_cut_))
361  continue;
362 
363  inv = (mu_i->p4() + mu_j->p4()).M();
364  if (mu_i->charge() * mu_j->charge() > 0) {
365  ++nSSmumu;
366  hRAL_mass_SS_mumu_->Fill(inv);
367  }
368  if (mu_i->charge() * mu_j->charge() < 0) {
369  ++nOSmumu;
370  hRAL_mass_OS_mumu_->Fill(inv);
371  }
372  }
373 
374  // Electron muon pairs
375  for (typename std::vector<Ele>::const_iterator ele_j = elecs->begin(); ele_j != elecs->end(); ++ele_j) {
376  if (!(goodSusyElectron(&(*ele_j)) && ele_j->pt() > RAL_elec_pt_cut_))
377  continue;
378  inv = (mu_i->p4() + ele_j->p4()).M();
379  dR = deltaR(*mu_i, *ele_j);
380  hRAL_dR_emu_->Fill(dR);
381  if (mu_i->charge() * ele_j->charge() > 0) {
382  ++nSSemu;
383  hRAL_mass_SS_emu_->Fill(inv);
384  }
385  if (mu_i->charge() * ele_j->charge() < 0) {
386  ++nOSemu;
387  hRAL_mass_OS_emu_->Fill(inv);
388  }
389  }
390  }
391 
393 
394  int nElectrons = 0;
395  int nSSee = 0;
396  int nOSee = 0;
397  for (typename std::vector<Ele>::const_iterator ele_i = elecs->begin(); ele_i != elecs->end(); ++ele_i) {
398  if (!(goodSusyElectron(&(*ele_i)) && ele_i->pt() > RAL_elec_pt_cut_))
399  continue;
400  nElectrons++;
401 
402  hRAL_pt_elecs_->Fill(ele_i->pt());
403  hRAL_eta_elecs_->Fill(ele_i->eta());
404  hRAL_phi_elecs_->Fill(ele_i->phi());
405 
406  hRAL_Iso_elecs_->Fill(ele_i->dr03TkSumPt() + ele_i->dr03EcalRecHitSumEt() + ele_i->dr03HcalTowerSumEt());
407 
408  // Electron electron pairs
409  for (typename std::vector<Ele>::const_iterator ele_j = elecs->begin(); ele_j != elecs->end(); ++ele_j) {
410  if (ele_i >= ele_j)
411  continue;
412  if (!(goodSusyElectron(&(*ele_j)) && ele_j->pt() > RAL_elec_pt_cut_))
413  continue;
414 
415  inv = (ele_i->p4() + ele_j->p4()).M();
416  if (ele_i->charge() * ele_j->charge() > 0) {
417  ++nSSee;
418  hRAL_mass_SS_ee_->Fill(inv);
419  }
420  if (ele_i->charge() * ele_j->charge() < 0) {
421  ++nOSee;
422  hRAL_mass_OS_ee_->Fill(inv);
423  }
424  }
425  }
426 
428 
430  if (nMuons >= 1) {
432  }
433  if (nElectrons >= 1) {
435  }
436  if (nOSee >= 1) {
438  }
439  if (nOSemu >= 1) {
441  }
442  if (nOSmumu >= 1) {
444  }
445  if (nSSee >= 1) {
447  }
448  if (nSSemu >= 1) {
450  }
451  if (nSSmumu >= 1) {
453  }
454  }
455  if (nMuons >= 3) {
457  }
458 }

References PbPb_ZMuSkimMuonDPG_cff::deltaR, HGC3DClusterGenMatchSelector_cfi::dR, singleTopDQM_cfi::elecs, reco::MuonIsolation::emEt, edm::Event::getByToken(), reco::MuonIsolation::hadEt, singleTopDQM_cfi::jets, singleTopDQM_cfi::mets, PDWG_BPHSkim_cff::muons, custom_jme_cff::nElectrons, custom_jme_cff::nMuons, reco::MuonIsolation::sumPt, TtFullHadEvtBuilder_cfi::sumPt, and pwdgSkimBPark_cfi::vertices.

◆ bookHistograms()

template<typename Mu , typename Ele , typename Jet , typename Met >
void SusyDQM< Mu, Ele, Jet, Met >::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Implements DQMEDAnalyzer.

Definition at line 202 of file SusyDQM.h.

202  {
203  iBooker.setCurrentFolder(moduleName_);
204 
205  hRAL_N_muons_ = iBooker.book1D("RAL_N_muons", "RAL_N_muons", 10, 0., 10.);
206  hRAL_pt_muons_ = iBooker.book1D("RAL_pt_muons", "RAL_pt_muons", 50, 0., 300.);
207  hRAL_eta_muons_ = iBooker.book1D("RAL_eta_muons", "RAL_eta_muons", 50, -2.5, 2.5);
208  hRAL_phi_muons_ = iBooker.book1D("RAL_phi_muons", "RAL_phi_muons", 50, -4., 4.);
209  hRAL_Iso_muons_ = iBooker.book1D("RAL_Iso_muons", "RAL_Iso_muons", 50, 0., 25.);
210 
211  hRAL_N_elecs_ = iBooker.book1D("RAL_N_elecs", "RAL_N_elecs", 10, 0., 10.);
212  hRAL_pt_elecs_ = iBooker.book1D("RAL_pt_elecs", "RAL_pt_elecs", 50, 0., 300.);
213  hRAL_eta_elecs_ = iBooker.book1D("RAL_eta_elecs", "RAL_eta_elecs", 50, -2.5, 2.5);
214  hRAL_phi_elecs_ = iBooker.book1D("RAL_phi_elecs", "RAL_phi_elecs", 50, -4., 4.);
215  hRAL_Iso_elecs_ = iBooker.book1D("RAL_Iso_elecs", "RAL_Iso_elecs", 50, 0., 25.);
216 
217  hRAL_Sum_pt_jets_ = iBooker.book1D("RAL_Sum_pt_jets", "RAL_Sum_pt_jets", 50, 0., 2000.);
218  hRAL_Met_ = iBooker.book1D("RAL_Met", "RAL_Met", 50, 0., 1000.);
219 
220  hRAL_dR_emu_ = iBooker.book1D("RAL_deltaR_emu", "RAL_deltaR_emu", 50, 0., 10.);
221 
222  hRAL_mass_OS_mumu_ = iBooker.book1D("RAL_mass_OS_mumu", "RAL_mass_OS_mumu", 50, 0., 300.);
223  hRAL_mass_OS_ee_ = iBooker.book1D("RAL_mass_OS_ee", "RAL_mass_OS_ee", 50, 0., 300.);
224  hRAL_mass_OS_emu_ = iBooker.book1D("RAL_mass_OS_emu", "RAL_mass_OS_emu", 50, 0., 300.);
225  hRAL_mass_SS_mumu_ = iBooker.book1D("RAL_mass_SS_mumu", "RAL_mass_SS_mumu", 50, 0., 300.);
226  hRAL_mass_SS_ee_ = iBooker.book1D("RAL_mass_SS_ee", "RAL_mass_SS_ee", 50, 0., 300.);
227  hRAL_mass_SS_emu_ = iBooker.book1D("RAL_mass_SS_emu", "RAL_mass_SS_emu", 50, 0., 300.);
228 
230  iBooker.book2D("RAL_Single_Muon_Selection", "RAL_Single_Muon_Selection", 50, 0., 1000., 50, 0., 1000.);
232  iBooker.book2D("RAL_Single_Electron_Selection", "RAL_Single_Electron_Selection", 50, 0., 1000., 50, 0., 1000.);
234  iBooker.book2D("RAL_OS_Electron_Selection", "RAL_OS_Electron_Selection", 50, 0., 1000., 50, 0., 1000.);
236  iBooker.book2D("RAL_OS_ElectronMuon_Selection", "RAL_OS_ElectronMuon_Selection", 50, 0., 1000., 50, 0., 1000.);
237  hRAL_OSmumu_monitor_ = iBooker.book2D("RAL_OS_Muon_Selection", "RAL_OS_Muon_Selection", 50, 0., 1000., 50, 0., 1000.);
239  iBooker.book2D("RAL_SS_Electron_Selection", "RAL_SS_Electron_Selection", 50, 0., 1000., 50, 0., 1000.);
241  iBooker.book2D("RAL_SS_ElectronMuon_Selection", "RAL_SS_ElectronMuon_Selection", 50, 0., 1000., 50, 0., 1000.);
242  hRAL_SSmumu_monitor_ = iBooker.book2D("RAL_SS_Muon_Selection", "RAL_SS_Muon_Selection", 50, 0., 1000., 50, 0., 1000.);
244  iBooker.book2D("RAL_Tri_Muon_Selection", "RAL_Tri_Muon_Selection", 50, 0., 1000., 50, 0., 1000.);
245 }

References dqm::implementation::IBooker::book1D(), dqm::implementation::IBooker::book2D(), and dqm::implementation::NavigatorBase::setCurrentFolder().

◆ goodSusyElectron()

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

Definition at line 248 of file SusyDQM.h.

248  {
249  // if (ele->pt() < elec_pt_cut_)
250  // return false;
251  if (fabs(ele->eta()) > elec_eta_cut_)
252  return false;
253  // if (ele->mva() < elec_mva_cut_)
254  // return false;
255  if (fabs(ele->gsfTrack()->dxy(bs)) > elec_d0_cut_)
256  return false;
257  return true;
258 }

References cms::cuda::bs.

◆ goodSusyMuon()

template<typename Mu , typename Ele , typename Jet , typename Met >
bool SusyDQM< Mu, Ele, Jet, Met >::goodSusyMuon ( const Mu mu)
privatevirtual

Definition at line 261 of file SusyDQM.h.

261  {
262  // if (mu->pt() < muon_pt_cut_)
263  // return false;
264  if (fabs(mu->eta()) > muon_eta_cut_)
265  return false;
266  if (!mu->isGlobalMuon())
267  return false;
268  if (mu->innerTrack()->numberOfValidHits() < muon_nHits_cut_)
269  return false;
270  if (mu->globalTrack()->normalizedChi2() > muon_nChi2_cut_)
271  return false;
272  if (fabs(mu->innerTrack()->dxy(bs)) > muon_d0_cut_)
273  return false;
274  return true;
275 }

References cms::cuda::bs, and amptDefaultParameters_cff::mu.

Member Data Documentation

◆ bs

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

Definition at line 97 of file SusyDQM.h.

◆ elec_d0_cut_

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

Definition at line 76 of file SusyDQM.h.

◆ elec_eta_cut_

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

Definition at line 74 of file SusyDQM.h.

◆ elec_mva_cut_

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

Definition at line 75 of file SusyDQM.h.

◆ electrons_

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

◆ hRAL_dR_emu_

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

Definition at line 114 of file SusyDQM.h.

◆ hRAL_Electron_monitor_

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

Definition at line 124 of file SusyDQM.h.

◆ hRAL_eta_elecs_

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

Definition at line 107 of file SusyDQM.h.

◆ hRAL_eta_muons_

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

Definition at line 101 of file SusyDQM.h.

◆ hRAL_Iso_elecs_

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

Definition at line 109 of file SusyDQM.h.

◆ hRAL_Iso_muons_

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

Definition at line 103 of file SusyDQM.h.

◆ hRAL_mass_OS_ee_

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

Definition at line 117 of file SusyDQM.h.

◆ hRAL_mass_OS_emu_

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

Definition at line 118 of file SusyDQM.h.

◆ hRAL_mass_OS_mumu_

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

Definition at line 116 of file SusyDQM.h.

◆ hRAL_mass_SS_ee_

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

Definition at line 120 of file SusyDQM.h.

◆ hRAL_mass_SS_emu_

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

Definition at line 121 of file SusyDQM.h.

◆ hRAL_mass_SS_mumu_

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

Definition at line 119 of file SusyDQM.h.

◆ hRAL_Met_

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

Definition at line 112 of file SusyDQM.h.

◆ hRAL_Muon_monitor_

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

Definition at line 123 of file SusyDQM.h.

◆ hRAL_N_elecs_

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

Definition at line 105 of file SusyDQM.h.

◆ hRAL_N_muons_

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

Definition at line 99 of file SusyDQM.h.

◆ hRAL_OSee_monitor_

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

Definition at line 125 of file SusyDQM.h.

◆ hRAL_OSemu_monitor_

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

Definition at line 126 of file SusyDQM.h.

◆ hRAL_OSmumu_monitor_

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

Definition at line 127 of file SusyDQM.h.

◆ hRAL_phi_elecs_

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

Definition at line 108 of file SusyDQM.h.

◆ hRAL_phi_muons_

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

Definition at line 102 of file SusyDQM.h.

◆ hRAL_pt_elecs_

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

Definition at line 106 of file SusyDQM.h.

◆ hRAL_pt_muons_

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

Definition at line 100 of file SusyDQM.h.

◆ hRAL_SSee_monitor_

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

Definition at line 128 of file SusyDQM.h.

◆ hRAL_SSemu_monitor_

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

Definition at line 129 of file SusyDQM.h.

◆ hRAL_SSmumu_monitor_

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

Definition at line 130 of file SusyDQM.h.

◆ hRAL_Sum_pt_jets_

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

Definition at line 111 of file SusyDQM.h.

◆ hRAL_TriMuon_monitor_

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

Definition at line 131 of file SusyDQM.h.

◆ jets_

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

◆ met_

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

◆ moduleName_

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

Definition at line 66 of file SusyDQM.h.

◆ muon_d0_cut_

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

Definition at line 81 of file SusyDQM.h.

◆ muon_eta_cut_

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

Definition at line 78 of file SusyDQM.h.

◆ muon_nChi2_cut_

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

Definition at line 80 of file SusyDQM.h.

◆ muon_nHits_cut_

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

Definition at line 79 of file SusyDQM.h.

◆ muons_

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

◆ parameters_

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

◆ RAL_elec_iso_cut_

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

Definition at line 87 of file SusyDQM.h.

◆ RAL_elec_pt_cut_

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

Definition at line 86 of file SusyDQM.h.

◆ RAL_jet_eta_cut_

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

Definition at line 90 of file SusyDQM.h.

◆ RAL_jet_max_emf_cut_

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

Definition at line 92 of file SusyDQM.h.

◆ RAL_jet_min_emf_cut_

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

Definition at line 91 of file SusyDQM.h.

◆ RAL_jet_pt_cut_

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

Definition at line 89 of file SusyDQM.h.

◆ RAL_jet_sum_pt_cut_

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

Definition at line 93 of file SusyDQM.h.

◆ RAL_met_cut_

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

Definition at line 95 of file SusyDQM.h.

◆ RAL_muon_iso_cut_

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

Definition at line 84 of file SusyDQM.h.

◆ RAL_muon_pt_cut_

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

Definition at line 83 of file SusyDQM.h.

◆ vertex_

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

Definition at line 72 of file SusyDQM.h.

SusyDQM::RAL_muon_iso_cut_
double RAL_muon_iso_cut_
Definition: SusyDQM.h:84
SusyDQM::muon_d0_cut_
double muon_d0_cut_
Definition: SusyDQM.h:81
PDWG_BPHSkim_cff.muons
muons
Definition: PDWG_BPHSkim_cff.py:47
SusyDQM::hRAL_N_muons_
MonitorElement * hRAL_N_muons_
Definition: SusyDQM.h:99
SusyDQM::RAL_jet_eta_cut_
double RAL_jet_eta_cut_
Definition: SusyDQM.h:90
SusyDQM::RAL_elec_pt_cut_
double RAL_elec_pt_cut_
Definition: SusyDQM.h:86
SusyDQM::elec_d0_cut_
double elec_d0_cut_
Definition: SusyDQM.h:76
SusyDQM::hRAL_mass_SS_emu_
MonitorElement * hRAL_mass_SS_emu_
Definition: SusyDQM.h:121
custom_jme_cff.nMuons
nMuons
Definition: custom_jme_cff.py:148
SusyDQM::muon_eta_cut_
double muon_eta_cut_
Definition: SusyDQM.h:78
amptDefaultParameters_cff.mu
mu
Definition: amptDefaultParameters_cff.py:16
SusyDQM::hRAL_OSee_monitor_
MonitorElement * hRAL_OSee_monitor_
Definition: SusyDQM.h:125
SusyDQM::hRAL_Iso_muons_
MonitorElement * hRAL_Iso_muons_
Definition: SusyDQM.h:103
reco::MuonIsolation::emEt
float emEt
ecal sum-Et
Definition: MuonIsolation.h:7
custom_jme_cff.nElectrons
nElectrons
Definition: custom_jme_cff.py:149
SusyDQM::hRAL_Electron_monitor_
MonitorElement * hRAL_Electron_monitor_
Definition: SusyDQM.h:124
SusyDQM::muon_nHits_cut_
double muon_nHits_cut_
Definition: SusyDQM.h:79
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
SusyDQM::hRAL_pt_elecs_
MonitorElement * hRAL_pt_elecs_
Definition: SusyDQM.h:106
singleTopDQM_cfi.jets
jets
Definition: singleTopDQM_cfi.py:42
singleTopDQM_cfi.mets
mets
Definition: singleTopDQM_cfi.py:43
edm::Handle
Definition: AssociativeIterator.h:50
SusyDQM::hRAL_N_elecs_
MonitorElement * hRAL_N_elecs_
Definition: SusyDQM.h:105
reco::MuonIsolation
Definition: MuonIsolation.h:5
SusyDQM::hRAL_phi_elecs_
MonitorElement * hRAL_phi_elecs_
Definition: SusyDQM.h:108
TtFullHadEvtBuilder_cfi.sumPt
sumPt
Definition: TtFullHadEvtBuilder_cfi.py:38
SusyDQM::jets_
edm::EDGetTokenT< std::vector< reco::CaloJet > > jets_
Definition: SusyDQM.h:70
reco::MuonIsolation::sumPt
float sumPt
sum-pt of tracks
Definition: MuonIsolation.h:6
SusyDQM::hRAL_mass_SS_mumu_
MonitorElement * hRAL_mass_SS_mumu_
Definition: SusyDQM.h:119
SusyDQM::RAL_jet_min_emf_cut_
double RAL_jet_min_emf_cut_
Definition: SusyDQM.h:91
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
SusyDQM::hRAL_mass_OS_emu_
MonitorElement * hRAL_mass_OS_emu_
Definition: SusyDQM.h:118
SusyDQM::hRAL_Sum_pt_jets_
MonitorElement * hRAL_Sum_pt_jets_
Definition: SusyDQM.h:111
SusyDQM::hRAL_eta_muons_
MonitorElement * hRAL_eta_muons_
Definition: SusyDQM.h:101
singleTopDQM_cfi.elecs
elecs
Definition: singleTopDQM_cfi.py:41
SusyDQM::RAL_met_cut_
double RAL_met_cut_
Definition: SusyDQM.h:95
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:531
SusyDQM::goodSusyMuon
virtual bool goodSusyMuon(const Mu *)
Definition: SusyDQM.h:261
PbPb_ZMuSkimMuonDPG_cff.deltaR
deltaR
Definition: PbPb_ZMuSkimMuonDPG_cff.py:63
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SusyDQM::RAL_jet_pt_cut_
double RAL_jet_pt_cut_
Definition: SusyDQM.h:89
SusyDQM::hRAL_mass_SS_ee_
MonitorElement * hRAL_mass_SS_ee_
Definition: SusyDQM.h:120
SusyDQM::elec_eta_cut_
double elec_eta_cut_
Definition: SusyDQM.h:74
SusyDQM::electrons_
edm::EDGetTokenT< std::vector< reco::GsfElectron > > electrons_
Definition: SusyDQM.h:69
SusyDQM::muons_
edm::EDGetTokenT< std::vector< reco::Muon > > muons_
Definition: SusyDQM.h:68
SusyDQM::goodSusyElectron
virtual bool goodSusyElectron(const Ele *)
Definition: SusyDQM.h:248
SusyDQM::RAL_jet_max_emf_cut_
double RAL_jet_max_emf_cut_
Definition: SusyDQM.h:92
SusyDQM::RAL_jet_sum_pt_cut_
double RAL_jet_sum_pt_cut_
Definition: SusyDQM.h:93
SusyDQM::elec_mva_cut_
double elec_mva_cut_
Definition: SusyDQM.h:75
SusyDQM::parameters_
edm::ParameterSet parameters_
Definition: SusyDQM.h:64
SusyDQM::hRAL_Iso_elecs_
MonitorElement * hRAL_Iso_elecs_
Definition: SusyDQM.h:109
SusyDQM::hRAL_SSmumu_monitor_
MonitorElement * hRAL_SSmumu_monitor_
Definition: SusyDQM.h:130
SusyDQM::met_
edm::EDGetTokenT< std::vector< reco::CaloMET > > met_
Definition: SusyDQM.h:71
SusyDQM::RAL_elec_iso_cut_
double RAL_elec_iso_cut_
Definition: SusyDQM.h:87
SusyDQM::hRAL_eta_elecs_
MonitorElement * hRAL_eta_elecs_
Definition: SusyDQM.h:107
SusyDQM::bs
math::XYZPoint bs
Definition: SusyDQM.h:97
SusyDQM::hRAL_dR_emu_
MonitorElement * hRAL_dR_emu_
Definition: SusyDQM.h:114
SusyDQM::hRAL_SSee_monitor_
MonitorElement * hRAL_SSee_monitor_
Definition: SusyDQM.h:128
SusyDQM::hRAL_mass_OS_ee_
MonitorElement * hRAL_mass_OS_ee_
Definition: SusyDQM.h:117
SusyDQM::hRAL_phi_muons_
MonitorElement * hRAL_phi_muons_
Definition: SusyDQM.h:102
SusyDQM::muon_nChi2_cut_
double muon_nChi2_cut_
Definition: SusyDQM.h:80
SusyDQM::hRAL_SSemu_monitor_
MonitorElement * hRAL_SSemu_monitor_
Definition: SusyDQM.h:129
reco::MuonIsolation::hadEt
float hadEt
hcal sum-Et
Definition: MuonIsolation.h:8
SusyDQM::hRAL_OSemu_monitor_
MonitorElement * hRAL_OSemu_monitor_
Definition: SusyDQM.h:126
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
SusyDQM::moduleName_
std::string moduleName_
Definition: SusyDQM.h:66
SusyDQM::vertex_
edm::EDGetTokenT< reco::VertexCollection > vertex_
Definition: SusyDQM.h:72
SusyDQM::hRAL_Met_
MonitorElement * hRAL_Met_
Definition: SusyDQM.h:112
MET
SusyDQM::hRAL_Muon_monitor_
MonitorElement * hRAL_Muon_monitor_
Definition: SusyDQM.h:123
SusyDQM::hRAL_TriMuon_monitor_
MonitorElement * hRAL_TriMuon_monitor_
Definition: SusyDQM.h:131
HGC3DClusterGenMatchSelector_cfi.dR
dR
Definition: HGC3DClusterGenMatchSelector_cfi.py:7
SusyDQM::hRAL_OSmumu_monitor_
MonitorElement * hRAL_OSmumu_monitor_
Definition: SusyDQM.h:127
PtGreater
Definition: SusyDQM.h:42
SusyDQM::hRAL_mass_OS_mumu_
MonitorElement * hRAL_mass_OS_mumu_
Definition: SusyDQM.h:116
SusyDQM::hRAL_pt_muons_
MonitorElement * hRAL_pt_muons_
Definition: SusyDQM.h:100
edm::InputTag
Definition: InputTag.h:15
SusyDQM::RAL_muon_pt_cut_
double RAL_muon_pt_cut_
Definition: SusyDQM.h:83
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
dqm::implementation::IBooker::book1D
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:98
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7