CMS 3D CMS Logo

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

#include <monitor.h>

Classes

struct  Entry
 
struct  hypo_monitor
 

Public Member Functions

 EventMonitor ()
 

Public Attributes

hypo_monitor monitor
 

Detailed Description

Definition at line 10 of file monitor.h.

Constructor & Destructor Documentation

EventMonitor::EventMonitor ( )

Definition at line 28 of file monitor.cc.

References EventMonitor::hypo_monitor::count(), HWWFunctions::EE, HWWFunctions::EM, HWWFunctions::MM, and monitor.

29 {
30  //Constructor sets order of selections in the monitor.
31  //This ensures that the selections in the dqm histograms
32  //will always be in the same order.
33  std::vector<HypothesisType> hypType;
34  hypType.push_back(MM);
35  hypType.push_back(EE);
36  hypType.push_back(EM);
37  hypType.push_back(ME);
38 
39  for(unsigned int hypIdx = 0; hypIdx < hypType.size(); hypIdx++){
40 
41  monitor.count(hypType.at(hypIdx), "total events" , 0.0);
42  monitor.count(hypType.at(hypIdx), "baseline" , 0.0);
43  monitor.count(hypType.at(hypIdx), "opposite sign" , 0.0);
44  monitor.count(hypType.at(hypIdx), "full lepton selection" , 0.0);
45  monitor.count(hypType.at(hypIdx), "extra lepton veto" , 0.0);
46  monitor.count(hypType.at(hypIdx), "met > 20 GeV" , 0.0);
47  monitor.count(hypType.at(hypIdx), "mll > 12 GeV" , 0.0);
48  monitor.count(hypType.at(hypIdx), "|mll - mZ| > 15 GeV" , 0.0);
49  monitor.count(hypType.at(hypIdx), "minMET > 20 GeV" , 0.0);
50  monitor.count(hypType.at(hypIdx), "minMET > 40 GeV for ee/mm" , 0.0);
51  monitor.count(hypType.at(hypIdx), "dPhiDiLepJet < 165 dg for ee/mm" , 0.0);
52  monitor.count(hypType.at(hypIdx), "SoftMuons==0" , 0.0);
53  monitor.count(hypType.at(hypIdx), "top veto" , 0.0);
54  monitor.count(hypType.at(hypIdx), "ptll > 45 GeV" , 0.0);
55  monitor.count(hypType.at(hypIdx), "njets == 0" , 0.0);
56  monitor.count(hypType.at(hypIdx), "max(lep1.pt(),lep2.pt())>30" , 0.0);
57  monitor.count(hypType.at(hypIdx), "min(lep1.pt(),lep2.pt())>25" , 0.0);
58  monitor.count(hypType.at(hypIdx), "njets == 1" , 0.0);
59  monitor.count(hypType.at(hypIdx), "njets == 2 or 3" , 0.0);
60  monitor.count(hypType.at(hypIdx), "abs(jet1.eta())<4.7 && abs(jet2.eta())<4.7", 0.0);
61  monitor.count(hypType.at(hypIdx), "no central jets" , 0.0);
62 
63  }
64 }
Definition: ME.h:11
hypo_monitor monitor
Definition: monitor.h:28
void count(HypothesisType type, const char *name, double weight=1.0)
Definition: monitor.cc:11

Member Data Documentation

hypo_monitor EventMonitor::monitor

Definition at line 28 of file monitor.h.

Referenced by HWWAnalyzer::analyze(), EventMonitor(), and HWWAnalyzer::FillHistograms().