CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTScalers.h
Go to the documentation of this file.
1 // -*-c++-*-
2 //
3 //
4 // Class to collect HLT scaler information
5 // for Trigger Cross Section Monitor
6 // [wittich 11/07]
7 
8 // Revision 1.19 2011/03/29 09:46:03 rekovic
9 // clean vector pairPDPaths in beginRun and tidy up
10 //
11 // Revision 1.18 2011/03/24 18:25:45 rekovic
12 // Add single 1D plot of streamA content
13 //
14 // Revision 1.17 2010/03/17 20:54:51 wittich
15 // add scalers that I manually reset on beginLumi
16 //
17 // Revision 1.16 2010/02/24 17:43:47 wittich
18 // - keep trying to get path names if it doesn't work first time
19 // - move the Bx histograms out of raw to the toplevel directory.
20 //
21 // Revision 1.15 2010/02/11 00:11:05 wmtan
22 // Adapt to moved framework header
23 //
24 // Revision 1.14 2010/02/02 11:42:53 wittich
25 // new diagnostic histograms
26 //
27 // Revision 1.13 2009/11/20 00:39:21 lorenzo
28 // fixes
29 //
30 // Revision 1.12 2008/09/03 13:59:05 wittich
31 // make HLT DQM path configurable via python parameter,
32 // which defaults to HLT/HLTScalers_EvF
33 //
34 // Revision 1.11 2008/09/03 02:13:47 wittich
35 // - bug fix in L1Scalers
36 // - configurable dqm directory in L1SCalers
37 // - other minor tweaks in HLTScalers
38 //
39 // Revision 1.10 2008/09/02 02:37:21 wittich
40 // - split L1 code from HLTScalers into L1Scalers
41 // - update cfi file accordingly
42 // - make sure to cd to correct directory before booking ME's
43 //
44 // Revision 1.9 2008/08/22 20:56:55 wittich
45 // - add client for HLT Scalers
46 // - Move rate calculation to HLTScalersClient and slim down the
47 // filter-farm part of HLTScalers
48 //
49 // Revision 1.8 2008/08/15 15:40:57 wteo
50 // split hltScalers into smaller histos, calculate rates
51 //
52 // Revision 1.7 2008/08/01 14:37:33 bjbloom
53 // Added ability to specify which paths are cross-correlated
54 //
55 
56 #ifndef HLTSCALERS_H
57 #define HLTSCALERS_H
58 
61 
63 
67 
68 
70 {
71 public:
73  HLTScalers(const edm::ParameterSet& ps);
74 
76  virtual ~HLTScalers() {};
77 
79  void beginJob(void);
80 
81 // /// Endjob
82 // void endJob(void);
83 
85  void beginRun(const edm::Run& run, const edm::EventSetup& c);
86 
88  void endRun(const edm::Run& run, const edm::EventSetup& c);
89 
90 
92  void beginLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
93  const edm::EventSetup& c) ;
94 
97  void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg,
98  const edm::EventSetup& c);
99 
100  void analyze(const edm::Event& e, const edm::EventSetup& c) ;
101 
102 
103 private:
104 
106  std::string folderName_; // dqm folder name
108  std::vector <std::pair<std::string, std::vector<std::string> > > pairPDPaths_;
110 
124 
126 
127  int nev_; // Number of events processed
128  int nLumi_; // number of lumi blocks
130 
131 };
132 
133 #endif // HLTSCALERS_H
std::vector< std::pair< std::string, std::vector< std::string > > > pairPDPaths_
Definition: HLTScalers.h:108
HLTScalers(const edm::ParameterSet &ps)
Constructors.
Definition: HLTScalers.cc:83
MonitorElement * scalersN_
Definition: HLTScalers.h:114
MonitorElement * detailedScalers_
Definition: HLTScalers.h:117
std::string processname_
Definition: HLTScalers.h:107
DQMStore * dbe_
Definition: HLTScalers.h:111
MonitorElement * hltOverallScaler_
Definition: HLTScalers.h:121
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
Definition: HLTScalers.cc:307
MonitorElement * scalers_
Definition: HLTScalers.h:113
MonitorElement * diagnostic_
Definition: HLTScalers.h:123
void beginRun(const edm::Run &run, const edm::EventSetup &c)
BeginRun.
Definition: HLTScalers.cc:320
MonitorElement * hltBxVsPath_
Definition: HLTScalers.h:120
void endRun(const edm::Run &run, const edm::EventSetup &c)
EndRun.
Definition: HLTScalers.cc:368
void beginJob(void)
BeginJob.
Definition: HLTScalers.cc:117
MonitorElement * hltCorrelations_
Definition: HLTScalers.h:116
int currentRun_
Definition: HLTScalers.h:129
HLTConfigProvider hltConfig_
Definition: HLTScalers.h:105
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c)
Begin LumiBlock.
Definition: HLTScalers.cc:295
virtual ~HLTScalers()
Destructor.
Definition: HLTScalers.h:76
MonitorElement * scalersException_
Definition: HLTScalers.h:115
MonitorElement * nLumiBlock_
Definition: HLTScalers.h:119
bool resetMe_
Definition: HLTScalers.h:125
MonitorElement * hltOverallScalerN_
Definition: HLTScalers.h:122
bool sentPaths_
Definition: HLTScalers.h:125
edm::InputTag trigResultsSource_
Definition: HLTScalers.h:109
std::string folderName_
Definition: HLTScalers.h:106
bool monitorDaemon_
Definition: HLTScalers.h:125
MonitorElement * hltBx_
Definition: HLTScalers.h:120
MonitorElement * nProc_
Definition: HLTScalers.h:118
MonitorElement * scalersPD_
Definition: HLTScalers.h:112
void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: HLTScalers.cc:141
Definition: Run.h:41