Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
DQMOffline
PFTau
plugins
BenchmarkAnalyzer.cc
Go to the documentation of this file.
1
#include "
DQMOffline/PFTau/plugins/BenchmarkAnalyzer.h
"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "
FWCore/Utilities/interface/InputTag.h
"
6
7
#include "
DQMServices/Core/interface/DQMStore.h
"
8
#include "
FWCore/ServiceRegistry/interface/Service.h
"
9
10
#include <string>
11
#include <iostream>
12
13
using namespace
std;
14
15
BenchmarkAnalyzer::BenchmarkAnalyzer
(
const
edm::ParameterSet
& parameterSet)
16
{
17
18
inputLabel_ = parameterSet.
getParameter
<
edm::InputTag
>(
"InputCollection"
);
19
benchmarkLabel_
= parameterSet.
getParameter
<std::string>(
"BenchmarkLabel"
);
20
21
22
}
23
24
25
26
void
27
BenchmarkAnalyzer::beginJob
()
28
{
29
Benchmark::DQM_
=
edm::Service<DQMStore>
().
operator
->();
30
if
(!
Benchmark::DQM_
) {
31
throw
"Please initialize the DQM service in your cfg"
;
32
}
33
34
// part of the following could be put in the base class
35
string
path
=
"PFTask/"
+
benchmarkLabel_
;
36
Benchmark::DQM_
->
setCurrentFolder
(path.c_str());
37
cout
<<
"path set to "
<<path<<endl;
38
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
MessageLogger.h
edm::Service< DQMStore >
BenchmarkAnalyzer::beginJob
virtual void beginJob()=0
Definition:
BenchmarkAnalyzer.cc:27
cppFunctionSkipper.operator
string operator
Definition:
cppFunctionSkipper.py:10
Benchmark::DQM_
static DQMStore * DQM_
Definition:
Benchmark.h:39
BenchmarkAnalyzer.h
ParameterSet.h
scaleCards.path
list path
Definition:
scaleCards.py:51
DQMStore.h
Service.h
benchmarkLabel_
string benchmarkLabel_
Definition:
PFJetBenchmarkAnalyzer.cc:75
edm::InputTag
Definition:
InputTag.h:12
InputTag.h
edm::ParameterSet
Definition:
ParameterSet.h:35
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
DQMStore::setCurrentFolder
void setCurrentFolder(const std::string &fullpath)
Definition:
DQMStore.cc:429
BenchmarkAnalyzer::BenchmarkAnalyzer
BenchmarkAnalyzer()
Generated for CMSSW Reference Manual by
1.8.5