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 // system include files
20 #include <memory>
21 
22 // user include files
25 
28 
30 //
31 // class decleration
32 //
33 
36 
38 public:
39  explicit PlottingDevice(const edm::ParameterSet&);
40 
41 private:
42  void analyze(const edm::Event&, const edm::EventSetup&) override;
43 
44  // ----------member data ---------------------------
47  std::unique_ptr<Plotter> plotter_;
48 };
49 
50 //
51 // constants, enums and typedefs
52 //
53 
54 //
55 // static data member definitions
56 //
57 
58 //
59 // constructors and destructor
60 //
62  vHelperInstance_ = iConfig.getParameter<std::string>("@module_label");
63  plotDirectoryName_ = "PlottingDevice";
64 
65  //configure the inputtag distributor
66  if (iConfig.exists("InputTags"))
69 
70  //configure the variable helper
73 
74  //configure the plotting device
76  std::string plotterName = plotPset.getParameter<std::string>("ComponentName");
77  plotter_ = PlotterFactory::get()->create(plotterName, plotPset);
78 }
79 
80 //
81 // member functions
82 //
83 
84 // ------------ method called to for each event ------------
87 
89 }
90 //define this as a plug-in
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::string vHelperInstance_
bool exists(std::string const &parameterName) const
checks if a parameter exists
int init
Definition: HydjetWrapper.h:66
std::unique_ptr< Plotter > plotter_
int iEvent
Definition: GenABIO.cc:224
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void analyze(const edm::Event &, const edm::EventSetup &) override
PlottingDevice(const edm::ParameterSet &)
#define get
std::string plotDirectoryName_