CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
BenchmarkAnalyzer Class Referenceabstract

abtract base class for benchmark analyzers More...

#include <BenchmarkAnalyzer.h>

Inheritance diagram for BenchmarkAnalyzer:
edm::EDAnalyzer CandidateBenchmarkAnalyzer MatchMETBenchmarkAnalyzer METBenchmarkAnalyzer PFCandidateBenchmarkAnalyzer PFCandidateManagerAnalyzer

Public Member Functions

virtual void beginJob ()=0
 
 BenchmarkAnalyzer ()
 
 BenchmarkAnalyzer (const edm::ParameterSet &)
 
virtual ~BenchmarkAnalyzer ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Protected Attributes

std::string benchmarkLabel_
 benchmark label More...
 
edm::InputTag inputLabel_
 input collection More...
 
std::string outputFile_
 name of the output root file More...
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

abtract base class for benchmark analyzers

Definition at line 12 of file BenchmarkAnalyzer.h.

Constructor & Destructor Documentation

BenchmarkAnalyzer::BenchmarkAnalyzer ( )
BenchmarkAnalyzer::BenchmarkAnalyzer ( const edm::ParameterSet parameterSet)
explicit

Definition at line 15 of file BenchmarkAnalyzer.cc.

References benchmarkLabel_, and edm::ParameterSet::getParameter().

16 {
17 
18  inputLabel_ = parameterSet.getParameter<edm::InputTag>("InputCollection");
19  benchmarkLabel_ = parameterSet.getParameter<std::string>("BenchmarkLabel");
20 
21 
22 }
T getParameter(std::string const &) const
std::string benchmarkLabel_
benchmark label
edm::InputTag inputLabel_
input collection
virtual BenchmarkAnalyzer::~BenchmarkAnalyzer ( )
inlinevirtual

Definition at line 17 of file BenchmarkAnalyzer.h.

17 {}

Member Function Documentation

void BenchmarkAnalyzer::beginJob ( void  )
pure virtual

Reimplemented from edm::EDAnalyzer.

Implemented in CandidateBenchmarkAnalyzer, METBenchmarkAnalyzer, PFCandidateBenchmarkAnalyzer, PFCandidateManagerAnalyzer, and MatchMETBenchmarkAnalyzer.

Definition at line 27 of file BenchmarkAnalyzer.cc.

References benchmarkLabel_, gather_cfg::cout, Benchmark::DQM_, cppFunctionSkipper::operator, scaleCards::path, and DQMStore::setCurrentFolder().

Referenced by MatchMETBenchmarkAnalyzer::beginJob(), PFCandidateManagerAnalyzer::beginJob(), PFCandidateBenchmarkAnalyzer::beginJob(), METBenchmarkAnalyzer::beginJob(), and CandidateBenchmarkAnalyzer::beginJob().

28 {
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 }
std::string benchmarkLabel_
benchmark label
static DQMStore * DQM_
Definition: Benchmark.h:39
list path
Definition: scaleCards.py:51
tuple cout
Definition: gather_cfg.py:121
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429

Member Data Documentation

std::string BenchmarkAnalyzer::benchmarkLabel_
protected

benchmark label

Definition at line 30 of file BenchmarkAnalyzer.h.

edm::InputTag BenchmarkAnalyzer::inputLabel_
protected
std::string BenchmarkAnalyzer::outputFile_
protected

name of the output root file

Definition at line 24 of file BenchmarkAnalyzer.h.