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 edm::EDConsumerBase 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
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

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
 
- 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::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

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_, edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.

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, cmsHarvester::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:40
tuple path
else: Piece not in the list, fine.
tuple cout
Definition: gather_cfg.py:121
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:655

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.