CMS 3D CMS Logo

Public Member Functions | Protected Attributes

BenchmarkAnalyzer Class Reference

abtract base class for benchmark analyzers More...

#include <BenchmarkAnalyzer.h>

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

List of all members.

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

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().

{

  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.

{}

Member Function Documentation

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;
}

Member Data Documentation

std::string BenchmarkAnalyzer::benchmarkLabel_ [protected]

benchmark label

Definition at line 30 of file BenchmarkAnalyzer.h.

std::string BenchmarkAnalyzer::outputFile_ [protected]

name of the output root file

Definition at line 24 of file BenchmarkAnalyzer.h.