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 15 of file EcalTPGParamReaderFromDB.cc.


Constructor & Destructor Documentation

EcalTPGParamReaderFromDB::EcalTPGParamReaderFromDB ( const edm::ParameterSet ps) [explicit]

Definition at line 38 of file EcalTPGParamReaderFromDB.cc.

References edm::ParameterSet::getParameter(), query::host, query::port, evf::utils::sid, and hcal_dqm_sourceclient-file_cfg::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 51 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 57 of file EcalTPGParamReaderFromDB.cc.

References gather_cfg::cout, alignCSCRings::e, exception, evf::utils::sid, and hcal_dqm_sourceclient-file_cfg::user.

{
        try {
                EcalTPGDBApp app( sid, user, pass);

                //int i ; 
                //app.readTPGPedestals(i);
                //app.writeTPGLUT();
                //app.writeTPGWeights();

        } catch (exception &e) {
                cout << "ERROR:  " << e.what() << endl;
        } catch (...) {
                cout << "Unknown error caught" << endl;
        }

        cout << "All Done." << endl;
}
void EcalTPGParamReaderFromDB::beginJob ( void  ) [private, virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 78 of file EcalTPGParamReaderFromDB.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 84 of file EcalTPGParamReaderFromDB.cc.

                                      {
}

Member Data Documentation

std::string EcalTPGParamReaderFromDB::host [private]

Definition at line 25 of file EcalTPGParamReaderFromDB.cc.

Definition at line 30 of file EcalTPGParamReaderFromDB.cc.

Definition at line 31 of file EcalTPGParamReaderFromDB.cc.

std::string EcalTPGParamReaderFromDB::pass [private]

Definition at line 28 of file EcalTPGParamReaderFromDB.cc.

Definition at line 29 of file EcalTPGParamReaderFromDB.cc.

std::string EcalTPGParamReaderFromDB::sid [private]

Definition at line 26 of file EcalTPGParamReaderFromDB.cc.

std::string EcalTPGParamReaderFromDB::user [private]

Definition at line 27 of file EcalTPGParamReaderFromDB.cc.