Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:44

0001 #include "DQMOffline/PFTau/plugins/BenchmarkAnalyzer.h"
0002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 #include "FWCore/Utilities/interface/InputTag.h"
0006 
0007 #include "DQMServices/Core/interface/DQMStore.h"
0008 #include "FWCore/ServiceRegistry/interface/Service.h"
0009 
0010 #include <iostream>
0011 #include <string>
0012 
0013 using namespace std;
0014 
0015 BenchmarkAnalyzer::BenchmarkAnalyzer(const edm::ParameterSet &parameterSet) {
0016   inputLabel_ = parameterSet.getParameter<edm::InputTag>("InputCollection");
0017   benchmarkLabel_ = parameterSet.getParameter<std::string>("BenchmarkLabel");
0018 
0019   std::string folder = benchmarkLabel_;
0020 
0021   subsystemname_ = "ParticleFlow";
0022   eventInfoFolder_ = subsystemname_ + "/" + folder;
0023 }
0024 
0025 //
0026 // -- BookHistograms
0027 //
0028 void BenchmarkAnalyzer::bookHistograms(DQMStore::IBooker &ibooker,
0029                                        edm::Run const & /* iRun */,
0030                                        edm::EventSetup const & /* iSetup */) {
0031   ibooker.setCurrentFolder(eventInfoFolder_);
0032   cout << "path set to " << eventInfoFolder_ << endl;
0033 }