Public Member Functions | |
EcalTPGParamReaderFromDB (const edm::ParameterSet &) | |
~EcalTPGParamReaderFromDB () | |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
virtual void | beginJob () |
virtual void | endJob () |
Private Attributes | |
std::string | host |
int | min_run |
int | n_run |
std::string | pass |
int | port |
std::string | sid |
std::string | user |
Definition at line 14 of file EcalTPGParamReaderFromDB.cc.
EcalTPGParamReaderFromDB::EcalTPGParamReaderFromDB | ( | const edm::ParameterSet & | ps | ) | [explicit] |
Definition at line 37 of file EcalTPGParamReaderFromDB.cc.
References edm::ParameterSet::getParameter(), host, min_run, n_run, pass, port, sid, and user.
{ host = ps.getParameter<std::string>("host"); sid = ps.getParameter<std::string>("sid"); user = ps.getParameter<std::string>("user"); pass = ps.getParameter<std::string>("pass"); port = ps.getParameter<int>("port"); min_run = ps.getParameter<int>("min_run"); n_run = ps.getParameter<int>("n_run"); }
EcalTPGParamReaderFromDB::~EcalTPGParamReaderFromDB | ( | ) |
Definition at line 50 of file EcalTPGParamReaderFromDB.cc.
{ }
void EcalTPGParamReaderFromDB::analyze | ( | const edm::Event & | ev, |
const edm::EventSetup & | es | ||
) | [private, virtual] |
Implements edm::EDAnalyzer.
Definition at line 56 of file EcalTPGParamReaderFromDB.cc.
References gather_cfg::cout, exception, pass, sid, and user.
{ try { EcalTPGDBApp app( sid, user, pass); //int i ; //app.readTPGPedestals(i); //app.writeTPGLUT(); //app.writeTPGWeights(); } catch (std::exception &e) { std::cout << "ERROR: " << e.what() << std::endl; } catch (...) { std::cout << "Unknown error caught" << std::endl; } std::cout << "All Done." << std::endl; }
void EcalTPGParamReaderFromDB::beginJob | ( | void | ) | [private, virtual] |
void EcalTPGParamReaderFromDB::endJob | ( | void | ) | [private, virtual] |
std::string EcalTPGParamReaderFromDB::host [private] |
Definition at line 24 of file EcalTPGParamReaderFromDB.cc.
Referenced by EcalTPGParamReaderFromDB().
int EcalTPGParamReaderFromDB::min_run [private] |
Definition at line 29 of file EcalTPGParamReaderFromDB.cc.
Referenced by EcalTPGParamReaderFromDB().
int EcalTPGParamReaderFromDB::n_run [private] |
Definition at line 30 of file EcalTPGParamReaderFromDB.cc.
Referenced by EcalTPGParamReaderFromDB().
std::string EcalTPGParamReaderFromDB::pass [private] |
Definition at line 27 of file EcalTPGParamReaderFromDB.cc.
Referenced by analyze(), and EcalTPGParamReaderFromDB().
int EcalTPGParamReaderFromDB::port [private] |
Definition at line 28 of file EcalTPGParamReaderFromDB.cc.
Referenced by EcalTPGParamReaderFromDB().
std::string EcalTPGParamReaderFromDB::sid [private] |
Definition at line 25 of file EcalTPGParamReaderFromDB.cc.
Referenced by analyze(), and EcalTPGParamReaderFromDB().
std::string EcalTPGParamReaderFromDB::user [private] |
Definition at line 26 of file EcalTPGParamReaderFromDB.cc.
Referenced by analyze(), and EcalTPGParamReaderFromDB().