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