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  //int i ;
52  //app.readTPGPedestals(i);
53  //app.writeTPGLUT();
54  //app.writeTPGWeights();
55 }
56 
58 
60 
61 //define this as a plug-in
EcalTPGParamReaderFromDB::n_run
int n_run
Definition: EcalTPGParamReaderFromDB.cc:31
bk::beginJob
void beginJob()
Definition: Breakpoints.cc:14
EcalTPGParamReaderFromDB::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: EcalTPGParamReaderFromDB.cc:48
EcalTPGDBApp.h
EDAnalyzer.h
EcalTPGParamReaderFromDB::~EcalTPGParamReaderFromDB
~EcalTPGParamReaderFromDB() override
Definition: EcalTPGParamReaderFromDB.cc:46
query.host
string host
Definition: query.py:115
EcalTPGParamReaderFromDB::port
int port
Definition: EcalTPGParamReaderFromDB.cc:29
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
MakerMacros.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
EcalTPGParamReaderFromDB::min_run
int min_run
Definition: EcalTPGParamReaderFromDB.cc:30
EcalTPGParamReaderFromDB::host
std::string host
Definition: EcalTPGParamReaderFromDB.cc:25
EcalTPGParamReaderFromDB::endJob
void endJob() override
Definition: EcalTPGParamReaderFromDB.cc:59
EcalTPGParamReaderFromDB::sid
std::string sid
Definition: EcalTPGParamReaderFromDB.cc:26
EcalTPGParamReaderFromDB
Definition: EcalTPGParamReaderFromDB.cc:15
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
query.port
int port
Definition: query.py:116
EcalTPGParamReaderFromDB::pass
std::string pass
Definition: EcalTPGParamReaderFromDB.cc:28
EcalTPGParamReaderFromDB::EcalTPGParamReaderFromDB
EcalTPGParamReaderFromDB(const edm::ParameterSet &)
Definition: EcalTPGParamReaderFromDB.cc:36
analyze
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EventSetup
Definition: EventSetup.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EnviromentSettings.user
user
Definition: EnviromentSettings.py:30
std
Definition: JetResolutionObject.h:76
Frameworkfwd.h
ev
bool ev
Definition: Hydjet2Hadronizer.cc:97
EcalTPGParamReaderFromDB::beginJob
void beginJob() override
Definition: EcalTPGParamReaderFromDB.cc:57
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
ParameterSet.h
edm::Event
Definition: Event.h:73
EcalTPGParamReaderFromDB::user
std::string user
Definition: EcalTPGParamReaderFromDB.cc:27
EcalTPGDBApp
Definition: EcalTPGDBApp.h:16