Go to the source code of this file.
|
template<class T > |
std::auto_ptr< T > | produce_impl (const HcalTopology *topo, const std::string &fTag, const std::string &fVersion=default_version, const int fSubversion=1, const int fIOVBegin=1, const std::string &fQuery=default_query, const std::string &fAccessor=omds_occi_default_accessor) |
|
template<class T > |
std::auto_ptr< T > | produce_impl (const std::string &fTag, const std::string &fVersion=default_version, const int fSubversion=1, const int fIOVBegin=1, const std::string &fQuery=default_query, const std::string &fAccessor=omds_occi_default_accessor) |
|
Definition at line 143 of file HcalOmdsCalibrations.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, convertSQLitetoXML_cfg::connect, EcalCondDB::db, alignCSCRings::e, Exception, HcalDbOmds::getObject(), and mps_fire::result.
150 std::auto_ptr<T>
result (
new T (topo));
155 }
catch (hcal::exception::ConfigurationDatabaseException &
e) {
156 std::cerr <<
"Cannot connect to the database" << std::endl;
158 oracle::occi::Connection * _connection = db -> getConnection();
161 std::cerr <<
"HcalOmdsCalibrations-> Can not read tag name '" << fTag <<
"' from database '" << fAccessor <<
"'" << std::endl;
162 throw cms::Exception(
"ReadError") <<
"Can not read tag name '" << fTag <<
"' from database '" << fAccessor <<
"'" << std::endl;
166 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.
Definition at line 171 of file HcalOmdsCalibrations.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, convertSQLitetoXML_cfg::connect, EcalCondDB::db, alignCSCRings::e, Exception, HcalDbOmds::getObject(), and mps_fire::result.
177 std::auto_ptr<T>
result (
new T ());
182 }
catch (hcal::exception::ConfigurationDatabaseException &
e) {
183 std::cerr <<
"Cannot connect to the database" << std::endl;
185 oracle::occi::Connection * _connection = db -> getConnection();
188 std::cerr <<
"HcalOmdsCalibrations-> Can not read tag name '" << fTag <<
"' from database '" << fAccessor <<
"'" << std::endl;
189 throw cms::Exception(
"ReadError") <<
"Can not read tag name '" << fTag <<
"' from database '" << fAccessor <<
"'" << std::endl;
193 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 |