CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

PlottingDevice Class Reference

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

{}

Member Function Documentation

void PlottingDevice::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [private, virtual]
void PlottingDevice::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 103 of file PlottingDevice.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 104 of file PlottingDevice.cc.

{}

Member Data Documentation

std::string PlottingDevice::plotDirectoryName_ [private]

Definition at line 52 of file PlottingDevice.cc.

Referenced by analyze(), and PlottingDevice().

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