Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
using namespace
edm;
41
using namespace
std;
42
43
class
L1TEfficiencyPlotHandler
{
44
45
public
:
46
47
L1TEfficiencyPlotHandler
(
std::string
dir
,
std::string
plotName) :
48
m_dir(dir), m_plotName(plotName), m_effHisto(0) { };
49
50
L1TEfficiencyPlotHandler
(
const
L1TEfficiencyPlotHandler
&handler);
51
52
~L1TEfficiencyPlotHandler
() { };
53
54
// book efficiency histo
55
void
book(
DQMStore::IBooker
&ibooker,
DQMStore::IGetter
&igetter);
56
57
// compute efficiency
58
void
computeEfficiency(
DQMStore::IBooker
&ibooker,
DQMStore::IGetter
&igetter);
59
60
private
:
61
62
std::string
m_dir
;
63
std::string
m_plotName
;
64
65
MonitorElement
*
m_effHisto
;
66
67
};
68
69
//
70
// DQM class declaration
71
//
72
73
class
L1TEfficiency_Harvesting
:
public
DQMEDHarvester
{
74
75
public
:
76
77
L1TEfficiency_Harvesting
(
const
edm::ParameterSet
& ps);
// Constructor
78
virtual
~
L1TEfficiency_Harvesting
();
// Destructor
79
80
protected
:
81
82
virtual
void
dqmEndJob(
DQMStore::IBooker
&ibooker,
DQMStore::IGetter
&igetter)
override
;
83
virtual
void
dqmEndLuminosityBlock(
DQMStore::IGetter
&igetter,
edm::LuminosityBlock
const
& lumiBlock,
edm::EventSetup
const
&
c
);
84
85
private
:
86
87
// bool
88
bool
m_verbose
;
89
90
std::vector<L1TEfficiencyPlotHandler>
m_plotHandlers
;
91
92
};
93
94
#endif
MessageLogger.h
L1TEfficiencyPlotHandler::L1TEfficiencyPlotHandler
L1TEfficiencyPlotHandler(std::string dir, std::string plotName)
Definition:
L1TEfficiency_Harvesting.h:47
Event.h
edm::LuminosityBlock
Definition:
LuminosityBlock.h:43
MakerMacros.h
DQMEDHarvester.h
L1TEfficiencyPlotHandler
Definition:
L1TEfficiency_Harvesting.h:43
EnergyCorrector.c
tuple c
Definition:
EnergyCorrector.py:43
Frameworkfwd.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
L1TEfficiency_Harvesting::m_plotHandlers
std::vector< L1TEfficiencyPlotHandler > m_plotHandlers
Definition:
L1TEfficiency_Harvesting.h:90
ParameterSet.h
DQMEDHarvester
Definition:
DQMEDHarvester.h:15
L1TEfficiency_Harvesting::m_verbose
bool m_verbose
Definition:
L1TEfficiency_Harvesting.h:88
DQMStore::IGetter
Definition:
DQMStore.h:190
L1TEfficiencyPlotHandler::~L1TEfficiencyPlotHandler
~L1TEfficiencyPlotHandler()
Definition:
L1TEfficiency_Harvesting.h:52
DQMStore.h
ESHandle.h
L1TEfficiencyPlotHandler::m_plotName
std::string m_plotName
Definition:
L1TEfficiency_Harvesting.h:63
Service.h
edm::EventSetup
Definition:
EventSetup.h:44
L1TEfficiencyPlotHandler::m_dir
std::string m_dir
Definition:
L1TEfficiency_Harvesting.h:62
EDAnalyzer.h
MonitorElement
Definition:
MonitorElement.h:37
MonitorElement.h
LuminosityBlock.h
edm::ParameterSet
Definition:
ParameterSet.h:35
dir
dbl *** dir
Definition:
mlp_gen.cc:35
L1TEfficiency_Harvesting
Definition:
L1TEfficiency_Harvesting.h:73
DQMStore::IBooker
Definition:
DQMStore.h:90
L1TEfficiencyPlotHandler::m_effHisto
MonitorElement * m_effHisto
Definition:
L1TEfficiency_Harvesting.h:65
Generated for CMSSW Reference Manual by
1.8.5