CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalTPGParamReaderFromDB Class Reference
Inheritance diagram for EcalTPGParamReaderFromDB:
edm::EDAnalyzer

Public Member Functions

 EcalTPGParamReaderFromDB (const edm::ParameterSet &)
 
 ~EcalTPGParamReaderFromDB ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

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
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Definition at line 14 of file EcalTPGParamReaderFromDB.cc.

Constructor & Destructor Documentation

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.

38 {
39  host = ps.getParameter<std::string>("host");
40  sid = ps.getParameter<std::string>("sid");
41  user = ps.getParameter<std::string>("user");
42  pass = ps.getParameter<std::string>("pass");
43  port = ps.getParameter<int>("port");
44  min_run = ps.getParameter<int>("min_run");
45  n_run = ps.getParameter<int>("n_run");
46 }
T getParameter(std::string const &) const
EcalTPGParamReaderFromDB::~EcalTPGParamReaderFromDB ( )

Definition at line 50 of file EcalTPGParamReaderFromDB.cc.

51 {
52 }

Member Function Documentation

void EcalTPGParamReaderFromDB::analyze ( const edm::Event ev,
const edm::EventSetup es 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 56 of file EcalTPGParamReaderFromDB.cc.

References gather_cfg::cout, cmsCodeRules.cppFunctionSkipper::exception, pass, sid, and user.

57 {
58  try {
59  EcalTPGDBApp app( sid, user, pass);
60 
61  //int i ;
62  //app.readTPGPedestals(i);
63  //app.writeTPGLUT();
64  //app.writeTPGWeights();
65 
66  } catch (std::exception &e) {
67  std::cout << "ERROR: " << e.what() << std::endl;
68  } catch (...) {
69  std::cout << "Unknown error caught" << std::endl;
70  }
71 
72  std::cout << "All Done." << std::endl;
73 }
tuple cout
Definition: gather_cfg.py:41
void EcalTPGParamReaderFromDB::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 77 of file EcalTPGParamReaderFromDB.cc.

78 {
79 }
void EcalTPGParamReaderFromDB::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 83 of file EcalTPGParamReaderFromDB.cc.

83  {
84 }

Member Data Documentation

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
std::string EcalTPGParamReaderFromDB::sid
private

Definition at line 25 of file EcalTPGParamReaderFromDB.cc.

Referenced by analyze(), and EcalTPGParamReaderFromDB().

std::string EcalTPGParamReaderFromDB::user
private