CMS 3D CMS Logo

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 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
26 
29 
31 //
32 // class decleration
33 //
34 
37 
39  public:
40  explicit PlottingDevice(const edm::ParameterSet&);
41  ~PlottingDevice() override;
42 
43 
44  private:
45  void beginJob() override ;
46  void analyze(const edm::Event&, const edm::EventSetup&) override;
47  void endJob() override ;
48 
49  // ----------member data ---------------------------
53 };
54 
55 //
56 // constants, enums and typedefs
57 //
58 
59 //
60 // static data member definitions
61 //
62 
63 //
64 // constructors and destructor
65 //
67 {
68  vHelperInstance_ = iConfig.getParameter<std::string>("@module_label");
69  plotDirectoryName_="PlottingDevice";
70 
71  //configure the inputtag distributor
72  if (iConfig.exists("InputTags"))
74 
75  //configure the variable helper
77 
78  //configure the plotting device
80  std::string plotterName = plotPset.getParameter<std::string>("ComponentName");
81  plotter_ = PlotterFactory::get()->create(plotterName, plotPset);
82 }
83 
84 
86 
87 
88 //
89 // member functions
90 //
91 
92 // ------------ method called to for each event ------------
93 void
95 {
97 
99 }
100 
101 
104 
105 //define this as a plug-in
T getParameter(std::string const &) const
Plotter * plotter_
std::string vHelperInstance_
void endJob() override
void beginJob() override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
int init
Definition: HydjetWrapper.h:67
bool exists(std::string const &parameterName) const
checks if a parameter exists
int iEvent
Definition: GenABIO.cc:230
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void analyze(const edm::Event &, const edm::EventSetup &) override
~PlottingDevice() override
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:55