Main Page
Namespaces
Classes
Package Documentation
DQMOffline
L1Trigger
interface
L1TEfficiency_Harvesting.h
Go to the documentation of this file.
1
#ifndef DQMOFFLINE_L1TRIGGER_L1TEFFICIENCYHARVESTING_H
2
#define DQMOFFLINE_L1TRIGGER_L1TEFFICIENCYHARVESTING_H
3
11
// system include files
12
#include <memory>
13
#include <unistd.h>
14
15
// user include files
16
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
17
#include "
FWCore/Framework/interface/EDAnalyzer.h
"
18
#include "
FWCore/Framework/interface/ESHandle.h
"
19
#include "
FWCore/Framework/interface/Event.h
"
20
#include "
FWCore/Framework/interface/LuminosityBlock.h
"
21
#include "
FWCore/Framework/interface/MakerMacros.h
"
22
23
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
24
25
#include "
DQMServices/Core/interface/DQMStore.h
"
26
#include "
DQMServices/Core/interface/MonitorElement.h
"
27
#include "
FWCore/ServiceRegistry/interface/Service.h
"
28
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
29
#include "
DQMServices/Core/interface/DQMEDHarvester.h
"
30
31
#include <TString.h>
32
33
#include <iostream>
34
#include <fstream>
35
#include <vector>
36
37
//
38
// Efficiency helper class declaration
39
//
40
41
class
L1TEfficiencyPlotHandler
{
42
43
public
:
44
45
L1TEfficiencyPlotHandler
(
std::string
dir
,
std::string
plotName) :
46
m_dir
(dir),
m_plotName
(plotName),
m_effHisto
(0) { };
47
48
L1TEfficiencyPlotHandler
(
const
L1TEfficiencyPlotHandler
&handler);
49
50
~L1TEfficiencyPlotHandler
() { };
51
52
// book efficiency histo
53
void
book
(
DQMStore::IBooker
&ibooker,
DQMStore::IGetter
&igetter);
54
55
// compute efficiency
56
void
computeEfficiency
(
DQMStore::IBooker
&ibooker,
DQMStore::IGetter
&igetter);
57
58
private
:
59
60
std::string
m_dir
;
61
std::string
m_plotName
;
62
63
MonitorElement
*
m_effHisto
;
64
65
};
66
67
//
68
// DQM class declaration
69
//
70
71
class
L1TEfficiency_Harvesting
:
public
DQMEDHarvester
{
72
73
public
:
74
75
L1TEfficiency_Harvesting
(
const
edm::ParameterSet
& ps);
// Constructor
76
virtual
~
L1TEfficiency_Harvesting
();
// Destructor
77
78
protected
:
79
80
virtual
void
dqmEndJob(
DQMStore::IBooker
&ibooker,
DQMStore::IGetter
&igetter)
override
;
81
virtual
void
dqmEndLuminosityBlock(
DQMStore::IGetter
&igetter,
edm::LuminosityBlock
const
& lumiBlock,
edm::EventSetup
const
&
c
);
82
using
DQMEDHarvester::dqmEndLuminosityBlock
;
83
84
private
:
85
86
// bool
87
bool
m_verbose
;
88
89
std::vector<L1TEfficiencyPlotHandler>
m_plotHandlers
;
90
91
};
92
93
#endif
MessageLogger.h
L1TEfficiencyPlotHandler::L1TEfficiencyPlotHandler
L1TEfficiencyPlotHandler(std::string dir, std::string plotName)
Definition:
L1TEfficiency_Harvesting.h:45
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
Event.h
edm::LuminosityBlock
Definition:
LuminosityBlock.h:45
MakerMacros.h
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
DQMEDHarvester.h
L1TEfficiencyPlotHandler
Definition:
L1TEfficiency_Harvesting.h:41
Frameworkfwd.h
L1TEfficiency_Harvesting::m_plotHandlers
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers
Definition:
L1TEfficiency_Harvesting.h:89
ParameterSet.h
DQMEDHarvester
Definition:
DQMEDHarvester.h:15
L1TEfficiency_Harvesting::m_verbose
bool m_verbose
Definition:
L1TEfficiency_Harvesting.h:87
DQMStore::IGetter
Definition:
DQMStore.h:190
L1TEfficiencyPlotHandler::~L1TEfficiencyPlotHandler
~L1TEfficiencyPlotHandler()
Definition:
L1TEfficiency_Harvesting.h:50
DQMStore.h
ESHandle.h
L1TEfficiencyPlotHandler::m_plotName
std::string m_plotName
Definition:
L1TEfficiency_Harvesting.h:61
Service.h
edm::EventSetup
Definition:
EventSetup.h:45
L1TEfficiencyPlotHandler::m_dir
std::string m_dir
Definition:
L1TEfficiency_Harvesting.h:60
EDAnalyzer.h
MonitorElement
Definition:
MonitorElement.h:37
L1TEfficiencyPlotHandler::book
void book(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition:
L1TEfficiency_Harvesting.cc:40
MonitorElement.h
LuminosityBlock.h
edm::ParameterSet
Definition:
ParameterSet.h:36
dir
dbl *** dir
Definition:
mlp_gen.cc:35
L1TEfficiency_Harvesting
Definition:
L1TEfficiency_Harvesting.h:71
DQMStore::IBooker
Definition:
DQMStore.h:90
L1TEfficiencyPlotHandler::computeEfficiency
void computeEfficiency(DQMStore::IBooker &ibooker, DQMStore::IGetter &igetter)
Definition:
L1TEfficiency_Harvesting.cc:135
DQMEDHarvester::dqmEndLuminosityBlock
virtual void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
Definition:
DQMEDHarvester.h:32
L1TEfficiencyPlotHandler::m_effHisto
MonitorElement * m_effHisto
Definition:
L1TEfficiency_Harvesting.h:63
Generated for CMSSW Reference Manual by
1.8.11