CMS 3D CMS Logo

EcalTPGParamReaderFromDB.cc
Go to the documentation of this file.
1 // system include files
2 #include <memory>
3 
4 // user include files
7 
10 
12 
13 using namespace std;
14 
16 public:
18  ~EcalTPGParamReaderFromDB() override;
19 
20 private:
21  void beginJob() override;
22  void analyze(const edm::Event&, const edm::EventSetup&) override;
23  void endJob() override;
24 
29  int port;
30  int min_run;
31  int n_run;
32 };
33 
35 
37  host = ps.getParameter<std::string>("host");
38  sid = ps.getParameter<std::string>("sid");
39  user = ps.getParameter<std::string>("user");
40  pass = ps.getParameter<std::string>("pass");
41  port = ps.getParameter<int>("port");
42  min_run = ps.getParameter<int>("min_run");
43  n_run = ps.getParameter<int>("n_run");
44 }
45 
47 
49  EcalTPGDBApp app(sid, user, pass);
50 }
51 
53 
55 
56 //define this as a plug-in
EcalTPGParamReaderFromDB(const edm::ParameterSet &)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
string host
Definition: query.py:115
int port
Definition: query.py:116
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
void beginJob()
Definition: Breakpoints.cc:14
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
void analyze(const edm::Event &, const edm::EventSetup &) override