Go to the source code of this file.
Definition at line 143 of file HcalOmdsCalibrations.cc.
References dtNoiseDBValidation_cfg::cerr, convertSQLitetoXML_cfg::connect, EcalCondDB::db, alignCSCRings::e, edm::hlt::Exception, HcalDbOmds::getObject(), and query::result.
149 std::auto_ptr<T>
result (
new T ());
154 }
catch (hcal::exception::ConfigurationDatabaseException &
e) {
155 std::cerr <<
"Cannot connect to the database" << std::endl;
157 oracle::occi::Connection * _connection = db -> getConnection();
160 std::cerr <<
"HcalOmdsCalibrations-> Can not read tag name '" << fTag <<
"' from database '" << fAccessor <<
"'" << std::endl;
161 throw cms::Exception(
"ReadError") <<
"Can not read tag name '" << fTag <<
"' from database '" << fAccessor <<
"'" << std::endl;
165 std::cerr <<
"Database connection is null. This should NEVER happen here. Something fishy is going on..." << std::endl;
bool getObject(oracle::occi::Connection *connection, const std::string &fTag, const std::string &fVersion, const int fSubversion, const int fIOVBegin, const std::string &fQuery, HcalPedestals *fObject)
Gather config data from online DB.
const std::string default_query = "" |
|
static |
const std::string default_version = "" |
|
static |
const std::string omds_occi_default_accessor = "occi://CMS_HCL_APPUSER_R@anyhost/cms_omds_lb?PASSWORD=HCAL_Reader_44,LHWM_VERSION=22" |
|
static |