#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 (const edm::EventSetup &) |
virtual void | endJob () |
Private Attributes | |
std::string | plotDirectoryName_ |
Plotter * | plotter_ |
std::string | vHelperInstance_ |
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(), DBSPlugin::get(), edm::ParameterSet::getParameter(), init, plotDirectoryName_, plotter_, and vHelperInstance_.
00068 { 00069 vHelperInstance_ = iConfig.getParameter<std::string>("@module_label"); 00070 plotDirectoryName_="PlottingDevice"; 00071 00072 //configure the inputtag distributor 00073 if (iConfig.exists("InputTags")) 00074 edm::Service<InputTagDistributorService>()->init(vHelperInstance_,iConfig.getParameter<edm::ParameterSet>("InputTags")); 00075 00076 //configure the variable helper 00077 edm::Service<VariableHelperService>()->init(vHelperInstance_,iConfig.getParameter<edm::ParameterSet>("Variables")); 00078 00079 //configure the plotting device 00080 edm::ParameterSet plotPset = iConfig.getParameter<edm::ParameterSet>("Plotter"); 00081 std::string plotterName = plotPset.getParameter<std::string>("ComponentName"); 00082 plotter_ = PlotterFactory::get()->create(plotterName, plotPset); 00083 }
PlottingDevice::~PlottingDevice | ( | ) |
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().
00096 { 00097 plotter_->setDir(plotDirectoryName_); 00098 00099 plotter_->fill(plotDirectoryName_, iEvent); 00100 }
void PlottingDevice::beginJob | ( | const edm::EventSetup & | ) | [private, virtual] |
std::string PlottingDevice::plotDirectoryName_ [private] |
Plotter* PlottingDevice::plotter_ [private] |
std::string PlottingDevice::vHelperInstance_ [private] |