#include <Workspace/PlottingDevice/src/PlottingDevice.cc>
Public Member Functions | |
PlottingDevice (const edm::ParameterSet &) | |
~PlottingDevice () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
Private Attributes | |
std::string | plotDirectoryName_ |
Plotter * | plotter_ |
std::string | vHelperInstance_ |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 39 of file PlottingDevice.cc.
PlottingDevice::PlottingDevice | ( | const edm::ParameterSet & | iConfig | ) | [explicit] |
Definition at line 67 of file PlottingDevice.cc.
References edm::ParameterSet::exists(), reco::get(), edm::ParameterSet::getParameter(), init, plotDirectoryName_, RecoTauValidation_cfi::plotPset, plotter_, and vHelperInstance_.
{ vHelperInstance_ = iConfig.getParameter<std::string>("@module_label"); plotDirectoryName_="PlottingDevice"; //configure the inputtag distributor if (iConfig.exists("InputTags")) edm::Service<InputTagDistributorService>()->init(vHelperInstance_,iConfig.getParameter<edm::ParameterSet>("InputTags")); //configure the variable helper edm::Service<VariableHelperService>()->init(vHelperInstance_,iConfig.getParameter<edm::ParameterSet>("Variables")); //configure the plotting device edm::ParameterSet plotPset = iConfig.getParameter<edm::ParameterSet>("Plotter"); std::string plotterName = plotPset.getParameter<std::string>("ComponentName"); plotter_ = PlotterFactory::get()->create(plotterName, plotPset); }
PlottingDevice::~PlottingDevice | ( | ) |
Definition at line 86 of file PlottingDevice.cc.
{}
void PlottingDevice::analyze | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 95 of file PlottingDevice.cc.
References Plotter::fill(), plotDirectoryName_, plotter_, and Plotter::setDir().
{ plotter_->setDir(plotDirectoryName_); plotter_->fill(plotDirectoryName_, iEvent); }
void PlottingDevice::beginJob | ( | void | ) | [private, virtual] |
void PlottingDevice::endJob | ( | void | ) | [private, virtual] |
std::string PlottingDevice::plotDirectoryName_ [private] |
Definition at line 52 of file PlottingDevice.cc.
Referenced by analyze(), and PlottingDevice().
Plotter* PlottingDevice::plotter_ [private] |
Definition at line 53 of file PlottingDevice.cc.
Referenced by analyze(), and PlottingDevice().
std::string PlottingDevice::vHelperInstance_ [private] |
Definition at line 51 of file PlottingDevice.cc.
Referenced by PlottingDevice().