CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PlottingDevice.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: PlottingDevice
4 // Class: PlottingDevice
5 //
13 //
14 // Original Author: Jean-Roch Vlimant
15 // Created: Thu May 15 14:37:59 CEST 2008
16 // $Id: PlottingDevice.cc,v 1.6 2009/05/11 14:29:49 llista Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
27 
30 
32 //
33 // class decleration
34 //
35 
38 
40  public:
41  explicit PlottingDevice(const edm::ParameterSet&);
43 
44 
45  private:
46  virtual void beginJob() ;
47  virtual void analyze(const edm::Event&, const edm::EventSetup&);
48  virtual void endJob() ;
49 
50  // ----------member data ---------------------------
51  std::string vHelperInstance_;
52  std::string plotDirectoryName_;
54 };
55 
56 //
57 // constants, enums and typedefs
58 //
59 
60 //
61 // static data member definitions
62 //
63 
64 //
65 // constructors and destructor
66 //
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
81  std::string plotterName = plotPset.getParameter<std::string>("ComponentName");
82  plotter_ = PlotterFactory::get()->create(plotterName, plotPset);
83 }
84 
85 
87 
88 
89 //
90 // member functions
91 //
92 
93 // ------------ method called to for each event ------------
94 void
96 {
98 
100 }
101 
102 
105 
106 //define this as a plug-in
T getParameter(std::string const &) const
Plotter * plotter_
std::string vHelperInstance_
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
int init
Definition: HydjetWrapper.h:63
bool exists(std::string const &parameterName) const
checks if a parameter exists
virtual void analyze(const edm::Event &, const edm::EventSetup &)
int iEvent
Definition: GenABIO.cc:243
virtual void beginJob()
virtual void endJob()
PlottingDevice(const edm::ParameterSet &)
std::string plotDirectoryName_
virtual void fill(std::string subDir, const edm::Event &iEvent)=0
virtual void setDir(std::string dir)=0
T get(const Candidate &c)
Definition: component.h:56