51 boost::shared_ptr<edm::ServiceRegistry::Operate>
operate;
64 boost::shared_ptr<edm::Presence> theMessageServicePresence;
66 makePresence(
"MessageServicePresence").release());
104 boost::shared_ptr<std::vector<edm::ParameterSet> > psets(
new std::vector<edm::ParameterSet>);
106 pSet.
addParameter(
"@service_type",std::string(
"SiteLocalConfigService"));
107 psets->push_back(pSet);
124 me(session),
logger(ilog) {
133 if (
this==&other)
return *
this;
144 std::ostringstream ss;
147 std::vector<std::string>
alltags;
152 std::ostream_iterator<std::string>(ss,
" ")
159 std::string token=metadata_svc.
getToken(tag);
181 logger->LookupLastEntryByTag(tag,entry,
false);
188 logger->LookupLastEntryByTag(tag,entry,
true);
215 connection->configuration().setAuthenticationPath(authPath);
219 connection->configuration().setMessageLevel( coral::Error );
220 connection->configuration().setPoolAutomaticCleanUp(
false );
221 connection->configuration().setConnectionTimeOut(0);
228 std::string userenv(std::string(
"CORAL_AUTH_USER=")+user);
229 std::string passenv(std::string(
"CORAL_AUTH_PASSWORD=")+pass);
230 ::putenv(const_cast<char*>(userenv.c_str()));
231 ::putenv(const_cast<char*>(passenv.c_str()));
232 connection->configuration().setMessageLevel( coral::Error );
233 connection->configuration().setPoolAutomaticCleanUp(
false );
234 connection->configuration().setConnectionTimeOut(0);
241 logger->connect( connstr,
true );
259 std::string
const & gname,
260 std::string
const &
prefix,
261 std::string
const & postfix)
const {
263 session.
open( connstr,
true );
boost::shared_ptr< DbConnection > connection
CondDB getDB(std::string const &db)
IOVProxy iov(std::string const &tag) const
cond::LogDBEntry lastLogEntryOK(std::string const &tag) const
GlobalTag const & globalTag(std::string const &connstr, std::string const &gname, std::string const &prefix, std::string const &postfix) const
static PluginManager & configure(const Config &)
DbTransaction & transaction()
void open(const std::string &connectionString, bool readOnly=false)
IOVProxy iovWithLib(std::string const &tag) const
void getTagCollection(const std::string &globaltag, std::set< cond::TagMetadata > &result)
int commit()
commit transaction.
void commitTransaction() const
void startTransaction() const
std::string allTags() const
static bool isAvailable()
CondDB & operator=(const CondDB &other)
cond::LogDBEntry lastLogEntry(std::string const &tag) const
int start(bool readOnly=false)
start transaction
IOVElementProxy payLoad(std::string const &token) const
boost::shared_ptr< cond::Logger > logger
PluginManager::Config config()
void clear(CLHEP::HepGenMatrix &m)
Helper function: Reset all elements of a matrix to 0.
std::pair< std::string, MonitorElement * > entry
void addParameter(std::string const &name, T const &value)
static const std::string COND_WRITER_ROLE
static ServiceToken createSet(std::vector< ParameterSet > &)
std::string iovToken(std::string const &tag) const
static const std::string COND_READER_ROLE
static PresenceFactory * get()
void closeSession() const
void startReadOnlyTransaction() const
boost::shared_ptr< edm::ServiceRegistry::Operate > operate
CondDB getReadOnlyDB(std::string const &db)
boost::shared_ptr< impl::FWMagic > magic
boost::shared_ptr< cond::Logger > logger
void setLogger(std::string const &connstr)