CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

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

{
        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.

{
}

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 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]

Reimplemented from edm::EDAnalyzer.

Definition at line 77 of file EcalTPGParamReaderFromDB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 83 of file EcalTPGParamReaderFromDB.cc.

                                      {
}

Member Data Documentation

std::string EcalTPGParamReaderFromDB::host [private]

Definition at line 24 of file EcalTPGParamReaderFromDB.cc.

Referenced by EcalTPGParamReaderFromDB().

Definition at line 29 of file EcalTPGParamReaderFromDB.cc.

Referenced by EcalTPGParamReaderFromDB().

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

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