50 boost::shared_ptr<edm::ServiceRegistry::Operate>
operate;
63 boost::shared_ptr<edm::Presence> theMessageServicePresence;
65 makePresence(
"MessageServicePresence").release());
103 boost::shared_ptr<std::vector<edm::ParameterSet> > psets(
new std::vector<edm::ParameterSet>);
106 psets->push_back(pSet);
123 me(session),
logger(ilog) {
132 if (
this==&other)
return *
this;
143 std::ostringstream ss;
146 std::vector<std::string>
alltags;
151 std::ostream_iterator<std::string>(ss,
" ")
180 logger->LookupLastEntryByTag(tag,entry,
false);
187 logger->LookupLastEntryByTag(tag,entry,
true);
214 connection->configuration().setAuthenticationPath(authPath);
218 connection->configuration().setMessageLevel( coral::Error );
219 connection->configuration().setPoolAutomaticCleanUp(
false );
220 connection->configuration().setConnectionTimeOut(0);
229 ::putenv(const_cast<char*>(userenv.c_str()));
230 ::putenv(const_cast<char*>(passenv.c_str()));
231 connection->configuration().setMessageLevel( coral::Error );
232 connection->configuration().setPoolAutomaticCleanUp(
false );
233 connection->configuration().setConnectionTimeOut(0);
240 logger->connect( connstr,
true );
262 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.
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)