CMS 3D CMS Logo

EcalTPGParamReaderFromDB Class Reference

Inheritance diagram for EcalTPGParamReaderFromDB:

edm::EDAnalyzer

List of all members.

Public Member Functions

 EcalTPGParamReaderFromDB (const edm::ParameterSet &)
 ~EcalTPGParamReaderFromDB ()

Private Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
virtual void beginJob (const edm::EventSetup &)
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


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.

00038 {
00039         host    = ps.getParameter<std::string>("host");
00040         sid     = ps.getParameter<std::string>("sid");
00041         user    = ps.getParameter<std::string>("user");
00042         pass    = ps.getParameter<std::string>("pass");
00043         port    = ps.getParameter<int>("port");
00044         min_run = ps.getParameter<int>("min_run");
00045         n_run   = ps.getParameter<int>("n_run");
00046 }

EcalTPGParamReaderFromDB::~EcalTPGParamReaderFromDB (  ) 

Definition at line 50 of file EcalTPGParamReaderFromDB.cc.

00051 {
00052 }


Member Function Documentation

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 GenMuonPlsPt100GeV_cfg::cout, e, lat::endl(), exception, pass, sid, and user.

00057 {
00058         try {
00059                 EcalTPGDBApp app( sid, user, pass);
00060 
00061                 //int i ; 
00062                 //app.readTPGPedestals(i);
00063                 //app.writeTPGLUT();
00064                 //app.writeTPGWeights();
00065 
00066         } catch (exception &e) {
00067                 cout << "ERROR:  " << e.what() << endl;
00068         } catch (...) {
00069                 cout << "Unknown error caught" << endl;
00070         }
00071 
00072         cout << "All Done." << endl;
00073 }

void EcalTPGParamReaderFromDB::beginJob ( const edm::EventSetup  )  [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 77 of file EcalTPGParamReaderFromDB.cc.

00078 {
00079 }

void EcalTPGParamReaderFromDB::endJob ( void   )  [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 83 of file EcalTPGParamReaderFromDB.cc.

00083                                       {
00084 }


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]

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().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:19:59 2009 for CMSSW by  doxygen 1.5.4