CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
PlottingDevice Class Reference

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

Inheritance diagram for PlottingDevice:
edm::EDAnalyzer

Public Member Functions

 PlottingDevice (const edm::ParameterSet &)
 
 ~PlottingDevice ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

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_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

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_, plotter_, and vHelperInstance_.

68 {
69  vHelperInstance_ = iConfig.getParameter<std::string>("@module_label");
70  plotDirectoryName_="PlottingDevice";
71 
72  //configure the inputtag distributor
73  if (iConfig.exists("InputTags"))
75 
76  //configure the variable helper
78 
79  //configure the plotting device
80  edm::ParameterSet plotPset = iConfig.getParameter<edm::ParameterSet>("Plotter");
81  std::string plotterName = plotPset.getParameter<std::string>("ComponentName");
82  plotter_ = PlotterFactory::get()->create(plotterName, plotPset);
83 }
T getParameter(std::string const &) const
Plotter * plotter_
std::string vHelperInstance_
int init
Definition: HydjetWrapper.h:63
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::string plotDirectoryName_
T get(const Candidate &c)
Definition: component.h:56
PlottingDevice::~PlottingDevice ( )

Definition at line 86 of file PlottingDevice.cc.

86 {}

Member Function Documentation

void PlottingDevice::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 95 of file PlottingDevice.cc.

References Plotter::fill(), plotDirectoryName_, plotter_, and Plotter::setDir().

96 {
98 
100 }
Plotter * plotter_
std::string plotDirectoryName_
virtual void fill(std::string subDir, const edm::Event &iEvent)=0
virtual void setDir(std::string dir)=0
void PlottingDevice::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 103 of file PlottingDevice.cc.

103 {}
void PlottingDevice::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 104 of file PlottingDevice.cc.

104 {}

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