CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BenchmarkAnalyzer.cc
Go to the documentation of this file.
3 
6 
9 
10 #include <string>
11 #include <iostream>
12 
13 using namespace std;
14 
16 {
17 
18  inputLabel_ = parameterSet.getParameter<edm::InputTag>("InputCollection");
19  benchmarkLabel_ = parameterSet.getParameter<std::string>("BenchmarkLabel");
20 
21 
22 }
23 
24 
25 
26 void
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 }
T getParameter(std::string const &) const
virtual void beginJob()=0
static DQMStore * DQM_
Definition: Benchmark.h:39
int path() const
Definition: HLTadd.h:3
string benchmarkLabel_
tuple cout
Definition: gather_cfg.py:41
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:232