CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 dqmBeginRun 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 
64 
65 class HLTScalers : public DQMOneEDAnalyzer<edm::one::WatchLuminosityBlocks> {
66 public:
67  HLTScalers(const edm::ParameterSet &ps);
68  ~HLTScalers() override = default;
69 
70  void dqmBeginRun(const edm::Run &run, const edm::EventSetup &c) override;
71  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
72  void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override;
73  void analyze(const edm::Event &e, const edm::EventSetup &c) override;
75  void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override;
76  void dqmEndRun(const edm::Run &run, const edm::EventSetup &c) override;
77 
78 private:
80  std::string folderName_; // dqm folder name
82  std::vector<std::pair<std::string, std::vector<std::string> > > pairPDPaths_;
84 
97 
99 
100  int nev_; // Number of events processed
101  int nLumi_; // number of lumi blocks
103 };
104 
105 #endif // HLTSCALERS_H
std::vector< std::pair< std::string, std::vector< std::string > > > pairPDPaths_
Definition: HLTScalers.h:82
const edm::EventSetup & c
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: HLTScalers.cc:135
HLTScalers(const edm::ParameterSet &ps)
Definition: HLTScalers.cc:78
MonitorElement * scalersN_
Definition: HLTScalers.h:87
MonitorElement * detailedScalers_
Definition: HLTScalers.h:90
std::string processname_
Definition: HLTScalers.h:81
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
DQM Client Diagnostic should be performed here:
Definition: HLTScalers.cc:287
MonitorElement * hltOverallScaler_
Definition: HLTScalers.h:94
MonitorElement * scalers_
Definition: HLTScalers.h:86
MonitorElement * diagnostic_
Definition: HLTScalers.h:96
~HLTScalers() override=default
MonitorElement * hltBxVsPath_
Definition: HLTScalers.h:93
void dqmBeginRun(const edm::Run &run, const edm::EventSetup &c) override
Definition: HLTScalers.cc:101
MonitorElement * hltCorrelations_
Definition: HLTScalers.h:89
int currentRun_
Definition: HLTScalers.h:102
HLTConfigProvider hltConfig_
Definition: HLTScalers.h:79
MonitorElement * scalersException_
Definition: HLTScalers.h:88
MonitorElement * nLumiBlock_
Definition: HLTScalers.h:92
bool resetMe_
Definition: HLTScalers.h:98
MonitorElement * hltOverallScalerN_
Definition: HLTScalers.h:95
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
Definition: HLTScalers.cc:171
bool sentPaths_
Definition: HLTScalers.h:98
std::string folderName_
Definition: HLTScalers.h:80
bool monitorDaemon_
Definition: HLTScalers.h:98
MonitorElement * hltBx_
Definition: HLTScalers.h:93
MonitorElement * nProc_
Definition: HLTScalers.h:91
MonitorElement * scalersPD_
Definition: HLTScalers.h:85
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: HLTScalers.cc:180
void dqmEndRun(const edm::Run &run, const edm::EventSetup &c) override
Definition: HLTScalers.cc:295
Definition: Run.h:45
edm::EDGetTokenT< edm::TriggerResults > trigResultsSource_
Definition: HLTScalers.h:83