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