CMS 3D CMS Logo

PlottingDevice Class Reference

Description: <one line="" class="" summary>="">. More...

#include <Workspace/PlottingDevice/src/PlottingDevice.cc>

Inheritance diagram for PlottingDevice:

edm::EDAnalyzer

List of all members.

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_
Plotterplotter_
std::string vHelperInstance_


Detailed Description

Description: <one line="" class="" summary>="">.

Implementation: <Notes on="" implementation>="">

Definition at line 39 of file PlottingDevice.cc.


Constructor & Destructor Documentation

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 (  ) 

Definition at line 86 of file PlottingDevice.cc.

00086 {}


Member Function Documentation

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]

Reimplemented from edm::EDAnalyzer.

Definition at line 103 of file PlottingDevice.cc.

00103 {}

void PlottingDevice::endJob ( void   )  [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 104 of file PlottingDevice.cc.

00104 {}


Member Data Documentation

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().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:30:09 2009 for CMSSW by  doxygen 1.5.4