abtract base class for benchmark analyzers More...
#include <BenchmarkAnalyzer.h>
Public Member Functions | |
virtual void | beginJob ()=0 |
BenchmarkAnalyzer (const edm::ParameterSet &) | |
BenchmarkAnalyzer () | |
virtual | ~BenchmarkAnalyzer () |
Protected Attributes | |
std::string | benchmarkLabel_ |
benchmark label | |
edm::InputTag | inputLabel_ |
input collection | |
std::string | outputFile_ |
name of the output root file |
abtract base class for benchmark analyzers
Definition at line 12 of file BenchmarkAnalyzer.h.
BenchmarkAnalyzer::BenchmarkAnalyzer | ( | ) |
BenchmarkAnalyzer::BenchmarkAnalyzer | ( | const edm::ParameterSet & | parameterSet | ) | [explicit] |
Definition at line 15 of file BenchmarkAnalyzer.cc.
References benchmarkLabel_, and edm::ParameterSet::getParameter().
{ inputLabel_ = parameterSet.getParameter<edm::InputTag>("InputCollection"); benchmarkLabel_ = parameterSet.getParameter<std::string>("BenchmarkLabel"); }
virtual BenchmarkAnalyzer::~BenchmarkAnalyzer | ( | ) | [inline, virtual] |
Definition at line 17 of file BenchmarkAnalyzer.h.
{}
void BenchmarkAnalyzer::beginJob | ( | void | ) | [pure virtual] |
Reimplemented from edm::EDAnalyzer.
Implemented in CandidateBenchmarkAnalyzer, MatchMETBenchmarkAnalyzer, METBenchmarkAnalyzer, PFCandidateBenchmarkAnalyzer, and PFCandidateManagerAnalyzer.
Definition at line 27 of file BenchmarkAnalyzer.cc.
References benchmarkLabel_, gather_cfg::cout, Benchmark::DQM_, cmsCodeRules::cppFunctionSkipper::operator, getHLTPrescaleColumns::path, and DQMStore::setCurrentFolder().
{ Benchmark::DQM_ = edm::Service<DQMStore>().operator->(); if(!Benchmark::DQM_) { throw "Please initialize the DQM service in your cfg"; } // part of the following could be put in the base class string path = "PFTask/" + benchmarkLabel_ ; Benchmark::DQM_->setCurrentFolder(path.c_str()); cout<<"path set to "<<path<<endl; }
std::string BenchmarkAnalyzer::benchmarkLabel_ [protected] |
benchmark label
Definition at line 30 of file BenchmarkAnalyzer.h.
edm::InputTag BenchmarkAnalyzer::inputLabel_ [protected] |
input collection
Definition at line 27 of file BenchmarkAnalyzer.h.
Referenced by METBenchmarkAnalyzer::analyze(), PFCandidateManagerAnalyzer::analyze(), CandidateBenchmarkAnalyzer::analyze(), MatchMETBenchmarkAnalyzer::analyze(), and PFCandidateBenchmarkAnalyzer::analyze().
std::string BenchmarkAnalyzer::outputFile_ [protected] |
name of the output root file
Definition at line 24 of file BenchmarkAnalyzer.h.