CMS 3D CMS Logo

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
HLTScalers::dqmBeginRun
void dqmBeginRun(const edm::Run &run, const edm::EventSetup &c) override
Definition: HLTScalers.cc:101
HLTScalers::hltCorrelations_
MonitorElement * hltCorrelations_
Definition: HLTScalers.h:89
HLTScalers::currentRun_
int currentRun_
Definition: HLTScalers.h:102
HLTScalers::scalersException_
MonitorElement * scalersException_
Definition: HLTScalers.h:88
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::Run
Definition: Run.h:45
HLTScalers::hltConfig_
HLTConfigProvider hltConfig_
Definition: HLTScalers.h:79
edm::EDGetTokenT< edm::TriggerResults >
HLTScalers::resetMe_
bool resetMe_
Definition: HLTScalers.h:98
DQMOneEDAnalyzer
Definition: DQMOneEDAnalyzer.h:20
HLTScalers::nLumiBlock_
MonitorElement * nLumiBlock_
Definition: HLTScalers.h:92
DQMStore.h
HLTScalers::beginLuminosityBlock
void beginLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
Definition: HLTScalers.cc:171
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
HLTScalers::hltOverallScalerN_
MonitorElement * hltOverallScalerN_
Definition: HLTScalers.h:95
HLTScalers::folderName_
std::string folderName_
Definition: HLTScalers.h:80
HLTScalers::monitorDaemon_
bool monitorDaemon_
Definition: HLTScalers.h:98
DQMOneEDAnalyzer.h
HLTScalers::hltBx_
MonitorElement * hltBx_
Definition: HLTScalers.h:93
HLTScalers::sentPaths_
bool sentPaths_
Definition: HLTScalers.h:98
HLTScalers::nProc_
MonitorElement * nProc_
Definition: HLTScalers.h:91
HLTScalers::trigResultsSource_
edm::EDGetTokenT< edm::TriggerResults > trigResultsSource_
Definition: HLTScalers.h:83
HLTScalers::scalersPD_
MonitorElement * scalersPD_
Definition: HLTScalers.h:85
HLTScalers::pairPDPaths_
std::vector< std::pair< std::string, std::vector< std::string > > > pairPDPaths_
Definition: HLTScalers.h:82
HLTScalers::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: HLTScalers.cc:180
HLTScalers::dqmEndRun
void dqmEndRun(const edm::Run &run, const edm::EventSetup &c) override
Definition: HLTScalers.cc:295
HLTScalers::nev_
int nev_
Definition: HLTScalers.h:100
edm::ParameterSet
Definition: ParameterSet.h:47
HLTScalers::nLumi_
int nLumi_
Definition: HLTScalers.h:101
HLTScalers::processname_
std::string processname_
Definition: HLTScalers.h:81
HLTScalers::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: HLTScalers.cc:135
HLTScalers
Definition: HLTScalers.h:65
edm::EventSetup
Definition: EventSetup.h:58
HLTConfigProvider.h
HLTScalers::hltOverallScaler_
MonitorElement * hltOverallScaler_
Definition: HLTScalers.h:94
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
InputTag.h
HLTScalers::scalersN_
MonitorElement * scalersN_
Definition: HLTScalers.h:87
HLTScalers::HLTScalers
HLTScalers(const edm::ParameterSet &ps)
Definition: HLTScalers.cc:78
HLTScalers::detailedScalers_
MonitorElement * detailedScalers_
Definition: HLTScalers.h:90
HLTScalers::scalers_
MonitorElement * scalers_
Definition: HLTScalers.h:86
HLTConfigProvider
Definition: HLTConfigProvider.h:29
writedatasetfile.run
run
Definition: writedatasetfile.py:27
HLTScalers::endLuminosityBlock
void endLuminosityBlock(const edm::LuminosityBlock &lumiSeg, const edm::EventSetup &c) override
DQM Client Diagnostic should be performed here:
Definition: HLTScalers.cc:287
Frameworkfwd.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
HLTScalers::diagnostic_
MonitorElement * diagnostic_
Definition: HLTScalers.h:96
HLTScalers::~HLTScalers
~HLTScalers() override=default
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
HLTScalers::hltBxVsPath_
MonitorElement * hltBxVsPath_
Definition: HLTScalers.h:93
edm::Event
Definition: Event.h:73
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37