ATLAS Offline Software
Loading...
Searching...
No Matches
PoolSvc Class Reference

This class provides the interface to the LCG POOL persistency software. More...

#include <PoolSvc.h>

Inheritance diagram for PoolSvc:
Collaboration diagram for PoolSvc:

Classes

class  ContextLock

Public Member Functions

virtual StatusCode initialize () override
 Required of all Gaudi services:
virtual StatusCode io_reinit () override
virtual StatusCode start () override
 Required of all Gaudi services:
virtual StatusCode stop () override
virtual StatusCode finalize () override
 Required of all Gaudi services:
virtual StatusCode io_finalize () override
virtual TokenregisterForWrite (const Placement *placement, const void *obj, const RootType &classDesc) override
virtual void setObjPtr (void *&obj, const Token *token) override
virtual unsigned int getOutputContext (const std::string &label) override
virtual unsigned int getInputContext (const std::string &label, unsigned int maxFile=0) override
virtual std::map< std::string, unsigned int > getInputContextMap () const override
virtual unsigned int getInputContextMapSize () const override
virtual const coral::Context * context () const override
virtual void loadComponent (const std::string &compName) override
virtual void setShareMode (bool shareCat) override
virtual const pool::IFileCatalogcatalog () const override
virtual void lookupBestPfn (const std::string &token, std::string &pfn, std::string &type) const override
virtual void renamePfn (const std::string &pf, const std::string &newpf) override
virtual pool::ICollectioncreateCollection (const std::string &connection, const std::string &collectionName, const pool::DbType &collectionType=pool::POOL_StorageType.type(), unsigned int contextId=IPoolSvc::kInputStream) const override
virtual TokengetToken (const std::string &connection, const std::string &collection, const unsigned long ientry) const override
virtual StatusCode connect (pool::ITransaction::Type type, unsigned int contextId=IPoolSvc::kInputStream) override
 Connect to a logical database unit; PersistencySvc is chosen according to transaction type (accessmode).
virtual StatusCode commit (unsigned int contextId=IPoolSvc::kInputStream) const override
 Commit data for a given contextId and flush buffer.
virtual StatusCode commitAndHold (unsigned int contextId=IPoolSvc::kInputStream) const override
 Commit data for a given contextId and hold buffer.
virtual StatusCode disconnect (unsigned int contextId=IPoolSvc::kInputStream) const override
 Disconnect PersistencySvc associated with a contextId.
virtual StatusCode disconnectDb (const std::string &connection, unsigned int contextId=IPoolSvc::kInputStream) const override
 Disconnect single Database.
virtual StatusCode getAttribute (const std::string &optName, std::string &data, long tech, unsigned int contextId=IPoolSvc::kInputStream) const override
 Get POOL attributes - domain.
virtual StatusCode getAttribute (const std::string &optName, std::string &data, long tech, const std::string &dbName, const std::string &contName="", unsigned int contextId=IPoolSvc::kInputStream) const override
 Get POOL attributes - db/file, container/collection.
virtual StatusCode setAttribute (const std::string &optName, const std::string &data, long tech, unsigned int contextId=IPoolSvc::kOutputStream) const override
 Set POOL attributes - domain.
virtual StatusCode setAttribute (const std::string &optName, const std::string &data, long tech, const std::string &dbName, const std::string &contName="", unsigned int contextId=IPoolSvc::kOutputStream) const override
 Set POOL attributes - db/file, container/collection.
virtual StatusCode setFrontierCache (const std::string &conn) override
 Setup Frontier cache for given logical or physical connection name.
virtual ~PoolSvc ()
 Destructor.

Private Types

typedef std::recursive_mutex CallMutex

Private Member Functions

void clearState ()
pool::IFileCatalogcreateCatalog ()
void patchCatalog (const std::string &pfn, pool::IDatabase &dbH) const
StatusCode setupPersistencySvc ()
std::unique_ptr< pool::IDatabasegetDbHandle (unsigned int contextId, const std::string &dbName) const
 Get Database handle.
std::unique_ptr< pool::IContainergetContainerHandle (pool::IDatabase *dbH, const std::string &contName) const
 Get Container handle.
std::string poolCondPath (const std::string &leaf)
 Resolve a file using ATLAS_POOLCOND_PATH.

Private Attributes

CallMutex m_pool_mut
coral::Context * m_context {nullptr}
bool m_shareCat {false}
pool::IFileCatalogm_catalog {nullptr}
std::vector< pool::PersistencySvc::ISession * > m_dbSessionVec
std::vector< CallMutex * > m_pers_mut
std::map< std::string, unsigned int > m_inputContextLabel
std::map< std::string, unsigned int > m_outputContextLabel
std::string m_mainOutputLabel {}
std::map< unsigned int, unsigned int > m_contextMaxFile
std::map< unsigned int, std::list< Guid > > m_guidLists ATLAS_THREAD_SAFE
Gaudi::Property< std::string > m_fileOpen {this,"FileOpen","overwrite"}
 FileOpen, the open mode for the file ("append" or "overwrite").
Gaudi::Property< int > m_dbAgeLimit {this,"MaxFilesOpen",0}
 MaxFilesOpen, option to have PoolSvc limit the number of open Input Files: default = 0 (No files are closed automatically)
Gaudi::Property< std::string > m_writeCatalog {this,"WriteCatalog","xmlcatalog_file:PoolFileCatalog.xml"}
 WriteCatalog, the file catalog to be used to register output files (also default input catalog): default = "" (use POOL default).
Gaudi::Property< std::vector< std::string > > m_readCatalog {this,"ReadCatalog",{},"List of catalog files to read from","OrderedSet<std::string>"}
 ReadCatalog, the list of additional POOL input file catalogs to consult: default = empty vector.
Gaudi::Property< bool > m_useROOTIMT {this,"UseROOTImplicitMT",true}
 Use ROOT Implicit MultiThreading, default = true.
Gaudi::Property< bool > m_useROOTMaxTree {this,"UseROOTIncreaseVMaxTree",false}
 Increase virtual TTree size to avoid backreads in multithreading, default = false.
Gaudi::Property< bool > m_attemptCatalogPatch {this,"AttemptCatalogPatch",true}
 AttemptCatalogPatch, option to create catalog: default = false.
Gaudi::Property< int > m_retrialPeriod {this,"ConnectionRetrialPeriod",300}
 ConnectionRetrialPeriod, retry period for CORAL Connection Service: default = 30 seconds.
Gaudi::Property< int > m_retrialTimeOut {this,"ConnectionRetrialTimeOut",3600}
 ConnectionRetrialTimeOut, the retrial time out for CORAL Connection Service: default = 300 seconds.
Gaudi::Property< int > m_timeOut {this,"ConnectionTimeOut",5}
 ConnectionTimeOut, the time out for CORAL Connection Service: default = 5 seconds.
Gaudi::Property< bool > m_connClean {this,"ConnectionCleanUp",false}
 ConnectionCleanUp - whether to use CORAL connection management thread: default = false.
Gaudi::Property< int > m_frontierComp {this,"FrontierCompression",5}
 Frontier proprties, compression level and list of schemas to be refreshed: default = 5.
Gaudi::Property< std::vector< std::string > > m_frontierRefresh {this,"FrontierRefreshSchema",{}}
Gaudi::Property< bool > m_sortReplicas {this,"SortReplicas",true}
 Use DBReplicaSvc to sort database connections, default = true.
Gaudi::Property< std::string > m_defaultContainerType {this, "DefaultContainerType", "ROOTTREEINDEX"}
 Default ROOT container type.

Detailed Description

This class provides the interface to the LCG POOL persistency software.

Definition at line 36 of file PoolSvc.h.

Member Typedef Documentation

◆ CallMutex

typedef std::recursive_mutex PoolSvc::CallMutex
private

Definition at line 205 of file PoolSvc.h.

Constructor & Destructor Documentation

◆ ~PoolSvc()

PoolSvc::~PoolSvc ( )
virtual

Destructor.

Definition at line 931 of file PoolSvc.cxx.

931 {
932}

Member Function Documentation

◆ catalog()

const pool::IFileCatalog * PoolSvc::catalog ( ) const
overridevirtual
Returns
the file catalog.

Definition at line 405 of file PoolSvc.cxx.

405 {
406 return(m_catalog);
407}
pool::IFileCatalog * m_catalog
Definition PoolSvc.h:222

◆ clearState()

void PoolSvc::clearState ( )
private

Definition at line 238 of file PoolSvc.cxx.

238 {
239 std::lock_guard<CallMutex> lock(m_pool_mut);
240 // Cleanup persistency service
241 for (const auto& dbSession : m_dbSessionVec) {
242 delete dbSession;
243 }
244 m_dbSessionVec.clear();
245 for (const auto& persistencyMutex : m_pers_mut) {
246 delete persistencyMutex;
247 }
248 m_mainOutputLabel.clear();
249 m_inputContextLabel.clear();
250 m_outputContextLabel.clear();
251 m_pers_mut.clear();
252 if (m_catalog != nullptr) {
253 m_catalog->commit();
254 delete m_catalog; m_catalog = nullptr;
255 }
256}
CallMutex m_pool_mut
Definition PoolSvc.h:219
std::map< std::string, unsigned int > m_outputContextLabel
Definition PoolSvc.h:226
std::vector< CallMutex * > m_pers_mut
Definition PoolSvc.h:224
std::map< std::string, unsigned int > m_inputContextLabel
Definition PoolSvc.h:225
std::string m_mainOutputLabel
Definition PoolSvc.h:227
std::vector< pool::PersistencySvc::ISession * > m_dbSessionVec
Definition PoolSvc.h:223

◆ commit()

StatusCode PoolSvc::commit ( unsigned int contextId = IPoolSvc::kInputStream) const
overridevirtual

Commit data for a given contextId and flush buffer.

Parameters
contextId[IN] poolStream to be commited.

Definition at line 590 of file PoolSvc.cxx.

590 {
591 if (contextId >= m_dbSessionVec.size()) {
592 return(StatusCode::FAILURE);
593 }
594 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
595 auto session = m_dbSessionVec[contextId];
596 if (session != nullptr && session->transaction().isActive()) {
597 if (!session->commit()) {
598 ATH_MSG_ERROR("POOL commit failed " << session);
599 return(StatusCode::FAILURE);
600 }
601 if (session->transaction().type() == pool::ITransaction::READ) {
602 session->disconnectAll();
603 }
604 }
605 return(StatusCode::SUCCESS);
606}
#define ATH_MSG_ERROR(x)

◆ commitAndHold()

StatusCode PoolSvc::commitAndHold ( unsigned int contextId = IPoolSvc::kInputStream) const
overridevirtual

Commit data for a given contextId and hold buffer.

Parameters
contextId[IN] poolStream to be commited.

Definition at line 608 of file PoolSvc.cxx.

608 {
609 if (contextId >= m_dbSessionVec.size()) {
610 return(StatusCode::FAILURE);
611 }
612 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
613 pool::PersistencySvc::ISession* session = m_dbSessionVec[contextId];
614 if (session != nullptr && session->transaction().isActive()) {
615 if (!session->commitAndHold()) {
616 ATH_MSG_ERROR("POOL commitAndHold failed " << session);
617 return(StatusCode::FAILURE);
618 }
619 }
620 return(StatusCode::SUCCESS);
621}
virtual bool commitAndHold()=0
Commits the holds transaction.
virtual bool isActive() const =0
Checks if the transaction is active.
virtual ITransaction & transaction()=0
Returns the transaction interface.

◆ connect()

StatusCode PoolSvc::connect ( pool::ITransaction::Type type,
unsigned int contextId = IPoolSvc::kInputStream )
overridevirtual

Connect to a logical database unit; PersistencySvc is chosen according to transaction type (accessmode).

Definition at line 558 of file PoolSvc.cxx.

558 {
559 if (type != pool::ITransaction::READ) {
560 if (contextId >= m_dbSessionVec.size()) {
561 ATH_MSG_WARNING("connect: Using default output Stream instead of id = " << contextId);
562 contextId = IPoolSvc::kOutputStream;
563 }
564 } else {
565 if (contextId > m_dbSessionVec.size()) {
566 ATH_MSG_WARNING("connect: Using default input Stream instead of id = " << contextId);
567 contextId = IPoolSvc::kInputStream;
568 } else if (contextId == m_dbSessionVec.size()) {
569 ATH_MSG_INFO("Connecting to InputStream for: " << contextId);
570 contextId = this->getInputContext("");
571 }
572 }
573 if (contextId >= m_dbSessionVec.size()) {
574 return(StatusCode::FAILURE);
575 }
576 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
577 auto session = m_dbSessionVec[contextId];
578 // Connect to a logical database using the pre-defined technology and dbID
579 if (session->transaction().isActive()) {
580 return(StatusCode::SUCCESS);
581 }
582 if (!session->start(type)) {
583 ATH_MSG_ERROR("connect failed session = " << session << " type = " << type);
584 return(StatusCode::FAILURE);
585 }
586
587 return(StatusCode::SUCCESS);
588}
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
@ kOutputStream
Definition IPoolSvc.h:40
@ kInputStream
Definition IPoolSvc.h:40
virtual unsigned int getInputContext(const std::string &label, unsigned int maxFile=0) override
Definition PoolSvc.cxx:358

◆ context()

const coral::Context * PoolSvc::context ( ) const
overridevirtual
Returns
the context.

Definition at line 393 of file PoolSvc.cxx.

393 {
394 return(m_context);
395}
coral::Context * m_context
Definition PoolSvc.h:220

◆ createCatalog()

pool::IFileCatalog * PoolSvc::createCatalog ( )
private

Definition at line 892 of file PoolSvc.cxx.

892 {
893 pool::IFileCatalog* ctlg = new pool::IFileCatalog;
894 ctlg->removeCatalog("*");
895 for (auto& catalog : m_readCatalog.value()) {
896 ATH_MSG_DEBUG("POOL ReadCatalog is " << catalog);
897 if (catalog.compare(0, 8,"apcfile:") == 0 || catalog.compare(0, 7, "prfile:") == 0) {
898 std::string::size_type cpos = catalog.find(':');
899 // check for file accessed via ATLAS_POOLCOND_PATH
900 std::string file = poolCondPath(catalog.substr(cpos + 1));
901 if (!file.empty()) {
902 ATH_MSG_INFO("Resolved path (via ATLAS_POOLCOND_PATH) is " << file);
903 ctlg->addReadCatalog("file:" + file);
904 } else {
905 // As backup, check for file accessed via PathResolver
906 file = PathResolver::find_file(catalog.substr(cpos + 1), "DATAPATH");
907 if (!file.empty()) {
908 ATH_MSG_INFO("Resolved path (via DATAPATH) is " << file);
909 ctlg->addReadCatalog("file:" + file);
910 } else {
911 ATH_MSG_INFO("Unable find catalog "
912 << catalog
913 << " in $ATLAS_POOLCOND_PATH and $DATAPATH");
914 }
915 }
916 } else {
917 ctlg->addReadCatalog(catalog);
918 }
919 }
920 try {
921 ATH_MSG_INFO("POOL WriteCatalog is " << m_writeCatalog.value());
922 ctlg->setWriteCatalog(m_writeCatalog.value());
923 } catch(std::exception& e) {
924 ATH_MSG_ERROR("setWriteCatalog - caught exception: " << e.what());
925 return(nullptr); // This catalog is not setup properly!
926 }
927 return(ctlg);
928}
#define ATH_MSG_DEBUG(x)
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
std::string poolCondPath(const std::string &leaf)
Resolve a file using ATLAS_POOLCOND_PATH.
Definition PoolSvc.cxx:978
Gaudi::Property< std::vector< std::string > > m_readCatalog
ReadCatalog, the list of additional POOL input file catalogs to consult: default = empty vector.
Definition PoolSvc.h:242
virtual const pool::IFileCatalog * catalog() const override
Definition PoolSvc.cxx:405
Gaudi::Property< std::string > m_writeCatalog
WriteCatalog, the file catalog to be used to register output files (also default input catalog): defa...
Definition PoolSvc.h:240
void addReadCatalog(const std::string &connect)
Add new catalog, identified by name, to the existing ones.
void removeCatalog(const std::string &connect)
Remove catalog identified by name from the existing ones. * or '' removes all.
void setWriteCatalog(const std::string &connect)
Establish the writable catalog, identified by name.
TFile * file

◆ createCollection()

pool::ICollection * PoolSvc::createCollection ( const std::string & connection,
const std::string & collectionName,
const pool::DbType & collectionType = pool::POOL_StorageType.type(),
unsigned int contextId = IPoolSvc::kInputStream ) const
overridevirtual
Returns
a pointer to a Pool Collection.
Parameters
collectionType[IN] string containing the collection type.
connection[IN] string containing the connection.
collectionName[IN] string containing the persistent name of the collection.
contextId[IN] id for PoolSvc persistency service to use for input.

Definition at line 442 of file PoolSvc.cxx.

445 {
446 ATH_MSG_DEBUG("createCollection() type=" << collectionType.storageName() << ", connection=" << connection
447 << ", name=" << collectionName << ", contextID=" << contextId);
448 if (contextId >= m_dbSessionVec.size()) {
449 ATH_MSG_WARNING("createCollection: Using default input Stream instead of id = " << contextId);
450 contextId = IPoolSvc::kInputStream;
451 }
452 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
453 // Check POOL FileCatalog entry.
454 bool insertFile = false;
455 if (connection.compare(0, 4, "PFN:") == 0) {
456 std::string fid, fileType;
457 m_catalog->lookupFileByPFN(connection.substr(4), fid, fileType);
458 if (fid.empty()) { // No entry in file catalog
459 insertFile = true;
460 ATH_MSG_INFO("File is not in Catalog! Attempt to open it anyway.");
461 }
462 }
463 if (collectionType.majorType() == pool::POOL_StorageType.type()) {
464 // Check whether Collection Container exists.
465 std::unique_ptr<pool::IDatabase> dbH = getDbHandle(contextId, connection);
466 if (dbH == nullptr) {
467 ATH_MSG_INFO("Failed to get Session/DatabaseHandle to create POOL collection.");
468 return(nullptr);
469 }
470 try {
471 if (dbH->openMode() == pool::IDatabase::CLOSED) {
472 dbH->connectForRead();
473 }
474 std::map<unsigned int, unsigned int>::const_iterator maxFileIter = m_contextMaxFile.find(contextId);
475 if (maxFileIter != m_contextMaxFile.end() && maxFileIter->second > 0 && !dbH->fid().empty()) {
476 const Guid guid(dbH->fid());
477 m_guidLists[contextId].remove(guid);
478 m_guidLists[contextId].push_back(guid);
479 while (m_guidLists[contextId].size() > maxFileIter->second + 1) {
480 this->disconnectDb("FID:" + m_guidLists[contextId].begin()->toString(), contextId).ignore();
481 }
482 }
483 } catch (std::exception& e) {
484 ATH_MSG_INFO("Failed to open container to check POOL collection - trying.");
485 }
486 }
487
488 // access to these variables is locked below:
489 pool::CollectionService collSvc ATLAS_THREAD_SAFE = pool::CollectionService();
490 pool::ICollection* collPtr ATLAS_THREAD_SAFE = nullptr;
491
492 // Try to open APR EventTags Collection in the input file
493 std::scoped_lock sc_lock(m_pool_mut);
494 std::string error_text;
495 try {
496 collPtr = collSvc.open(collectionName, collectionType, connection, m_dbSessionVec[contextId]);
497 } catch (std::exception &e) {
498 collPtr = nullptr;
499 error_text = e.what();
500 }
501 if( !collPtr ) {
502 std::unique_ptr<pool::IDatabase> dbH = getDbHandle(contextId, connection);
503 if (dbH != nullptr && !dbH->fid().empty()) {
504 return(nullptr); // no events
505 }
506 throw std::runtime_error( "Failed to open APR Collection: " + error_text + ", PoolSvc::createCollection");
507 }
508 if (insertFile && m_attemptCatalogPatch.value()) {
509 std::unique_ptr<pool::IDatabase> dbH = getDbHandle(contextId, connection);
510 if (dbH == nullptr) {
511 ATH_MSG_INFO("Failed to create FileCatalog entry.");
512 } else if (dbH->fid().empty()) {
513 ATH_MSG_INFO("Cannot retrieve the FID of an existing POOL database: '"
514 << connection << "' - FileCatalog will NOT be updated.");
515 } else {
516 patchCatalog(connection.substr(4), *dbH);
517 }
518 }
519 // For multithreaded processing (with multiple events in flight),
520 // increase virtual tree size to accomodate back reads
521 if (m_useROOTMaxTree && Gaudi::Concurrency::ConcurrencyFlags::numConcurrentEvents() > 1) {
522 if (!this->setAttribute("TREE_MAX_VIRTUAL_SIZE", "-1", pool::ROOT_StorageType.type(), connection.substr(4), "CollectionTree", IPoolSvc::kInputStream).isSuccess()) {
523 ATH_MSG_WARNING("Failed to increase maximum virtual TTree size.");
524 }
525 }
526
527 return(collPtr);
528}
void patchCatalog(const std::string &pfn, pool::IDatabase &dbH) const
Definition PoolSvc.cxx:530
virtual StatusCode setAttribute(const std::string &optName, const std::string &data, long tech, unsigned int contextId=IPoolSvc::kOutputStream) const override
Set POOL attributes - domain.
Definition PoolSvc.cxx:737
Gaudi::Property< bool > m_useROOTMaxTree
Increase virtual TTree size to avoid backreads in multithreading, default = false.
Definition PoolSvc.h:246
virtual StatusCode disconnectDb(const std::string &connection, unsigned int contextId=IPoolSvc::kInputStream) const override
Disconnect single Database.
Definition PoolSvc.cxx:645
std::map< unsigned int, unsigned int > m_contextMaxFile
Definition PoolSvc.h:228
std::unique_ptr< pool::IDatabase > getDbHandle(unsigned int contextId, const std::string &dbName) const
Get Database handle.
Definition PoolSvc.cxx:934
Gaudi::Property< bool > m_attemptCatalogPatch
AttemptCatalogPatch, option to create catalog: default = false.
Definition PoolSvc.h:249
std::map< unsigned int, std::list< Guid > > m_guidLists ATLAS_THREAD_SAFE
Definition PoolSvc.h:230
const std::string storageName() const
Human readable storage type.
int majorType() const
Access to major type.
Definition DbType.h:67
int type() const
Access to full type.
Definition DbType.h:65
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
static const DbType ROOT_StorageType
Definition DbType.h:85
static const DbType POOL_StorageType
Definition DbType.h:84

◆ disconnect()

StatusCode PoolSvc::disconnect ( unsigned int contextId = IPoolSvc::kInputStream) const
overridevirtual

Disconnect PersistencySvc associated with a contextId.

Parameters
contextId[IN] poolStream to be disconnected.

Definition at line 623 of file PoolSvc.cxx.

623 {
624 ATH_MSG_DEBUG("Disconnect request for contextId=" << contextId);
625 if (contextId >= m_dbSessionVec.size()) {
626 return(StatusCode::SUCCESS);
627 }
628 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
629 pool::PersistencySvc::ISession* session = m_dbSessionVec[contextId];
630 if (session != nullptr && session->transaction().isActive()) {
631 if (!commit(contextId).isSuccess()) {
632 ATH_MSG_ERROR("disconnect failed to commit " << session);
633 return(StatusCode::FAILURE);
634 }
635 if (session->disconnectAll()) {
636 ATH_MSG_DEBUG("Disconnected PersistencySvc session");
637 } else {
638 ATH_MSG_ERROR("disconnect failed to diconnect PersistencySvc");
639 return(StatusCode::FAILURE);
640 }
641 }
642 return(StatusCode::SUCCESS);
643}
virtual StatusCode commit(unsigned int contextId=IPoolSvc::kInputStream) const override
Commit data for a given contextId and flush buffer.
Definition PoolSvc.cxx:590
virtual bool disconnectAll()=0
Explicitly disconnects all the databases.

◆ disconnectDb()

StatusCode PoolSvc::disconnectDb ( const std::string & connection,
unsigned int contextId = IPoolSvc::kInputStream ) const
overridevirtual

Disconnect single Database.

Parameters
connection[IN] connection string for Database to be disconnected.
contextId[IN] context id of database to be disconnected.

Definition at line 645 of file PoolSvc.cxx.

645 {
646 if (contextId >= m_dbSessionVec.size()) {
647 return(StatusCode::SUCCESS);
648 }
649 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
650 std::unique_ptr<pool::IDatabase> dbH = getDbHandle(contextId, connection);
651 if (dbH == nullptr) {
652 ATH_MSG_ERROR("Failed to get Session/DatabaseHandle.");
653 return(StatusCode::FAILURE);
654 }
655 std::map<unsigned int, unsigned int>::const_iterator maxFileIter = m_contextMaxFile.find(contextId);
656 if (maxFileIter != m_contextMaxFile.end() && maxFileIter->second > 0) {
657 m_guidLists[contextId].remove(Guid(dbH->fid()));
658 }
659 dbH->disconnect();
660 return(StatusCode::SUCCESS);
661}

◆ finalize()

StatusCode PoolSvc::finalize ( )
overridevirtual

Required of all Gaudi services:

Definition at line 258 of file PoolSvc.cxx.

258 {
259 clearState();
260 return(::AthService::finalize());
261}
void clearState()
Definition PoolSvc.cxx:238

◆ getAttribute() [1/2]

StatusCode PoolSvc::getAttribute ( const std::string & optName,
std::string & data,
long tech,
const std::string & dbName,
const std::string & contName = "",
unsigned int contextId = IPoolSvc::kInputStream ) const
overridevirtual

Get POOL attributes - db/file, container/collection.

Definition at line 686 of file PoolSvc.cxx.

691 {
692 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
693 std::unique_ptr<pool::IDatabase> dbH = getDbHandle(contextId, dbName);
694 if (dbH == nullptr) {
695 ATH_MSG_DEBUG("getAttribute: Failed to get Session/DatabaseHandle to get POOL property.");
696 return(StatusCode::FAILURE);
697 }
698 if (dbH->openMode() == pool::IDatabase::CLOSED) {
699 if (m_dbSessionVec[contextId]->defaultConnectionPolicy().writeModeForNonExisting() != pool::DatabaseConnectionPolicy::RAISE_ERROR) {
700 dbH->setTechnology(tech);
701 dbH->connectForWrite();
702 } else {
703 dbH->connectForRead();
704 }
705 }
706 std::ostringstream oss;
707 if (contName.empty()) {
708 if (data == "DbLonglong") {
709 oss << std::dec << dbH->technologySpecificAttributes().attribute<long long int>(optName);
710 } else if (data == "double") {
711 oss << std::dec << dbH->technologySpecificAttributes().attribute<double>(optName);
712 } else if (data == "string") {
713 oss << dbH->technologySpecificAttributes().attribute<char*>(optName);
714 } else {
715 oss << std::dec << dbH->technologySpecificAttributes().attribute<int>(optName);
716 }
717 ATH_MSG_INFO("Database (" << dbH->pfn() << ") attribute [" << optName << "]" << ": " << oss.str());
718 } else {
719 std::unique_ptr<pool::IContainer> contH = getContainerHandle(dbH.get(), contName);
720 if (contH == nullptr) {
721 ATH_MSG_DEBUG("Failed to get ContainerHandle to get POOL property.");
722 return(StatusCode::FAILURE);
723 }
724 if (data == "DbLonglong") {
725 oss << std::dec << contH->technologySpecificAttributes().attribute<long long int>(optName);
726 } else if (data == "double") {
727 oss << std::dec << contH->technologySpecificAttributes().attribute<double>(optName);
728 } else {
729 oss << std::dec << contH->technologySpecificAttributes().attribute<int>(optName);
730 }
731 ATH_MSG_INFO("Container attribute [" << contName << "." << optName << "]: " << oss.str());
732 }
733 data = oss.str();
734 return(StatusCode::SUCCESS);
735}
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
std::unique_ptr< pool::IContainer > getContainerHandle(pool::IDatabase *dbH, const std::string &contName) const
Get Container handle.
Definition PoolSvc.cxx:961

◆ getAttribute() [2/2]

StatusCode PoolSvc::getAttribute ( const std::string & optName,
std::string & data,
long tech,
unsigned int contextId = IPoolSvc::kInputStream ) const
overridevirtual

Get POOL attributes - domain.

Definition at line 663 of file PoolSvc.cxx.

666 {
667 if (contextId >= m_dbSessionVec.size()) {
668 ATH_MSG_WARNING("getAttribute: Using default input Stream instead of id = " << contextId);
669 contextId = IPoolSvc::kInputStream;
670 }
671 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
672 pool::ISession* sesH = m_dbSessionVec[contextId];
673 std::ostringstream oss;
674 if (data == "DbLonglong") {
675 oss << std::dec << sesH->technologySpecificAttributes(tech).attribute<long long int>(optName);
676 } else if (data == "double") {
677 oss << std::dec << sesH->technologySpecificAttributes(tech).attribute<double>(optName);
678 } else {
679 oss << std::dec << sesH->technologySpecificAttributes(tech).attribute<int>(optName);
680 }
681 data = oss.str();
682 ATH_MSG_INFO("Domain attribute [" << optName << "]" << ": " << data);
683 return(StatusCode::SUCCESS);
684}
T attribute(const std::string &attributeName, const std::string &option="")
Templated method to retrieve an attribute.
virtual const ITechnologySpecificAttributes & technologySpecificAttributes(long technology) const =0
Returns the object holding the technology specific attributes for a given technology domain.

◆ getContainerHandle()

std::unique_ptr< pool::IContainer > PoolSvc::getContainerHandle ( pool::IDatabase * dbH,
const std::string & contName ) const
private

Get Container handle.

Definition at line 961 of file PoolSvc.cxx.

961 {
962 pool::IContainer* contH = nullptr;
963 if (dbH == nullptr) {
964 ATH_MSG_DEBUG("No DatabaseHandle to get Container.");
965 return(nullptr);
966 }
967 if (dbH->openMode() == pool::IDatabase::CLOSED) {
968 dbH->connectForRead();
969 }
970 if (contName.find("DataHeader") != std::string::npos) {
971 contH = dbH->containerHandle(contName.substr(0, contName.find("_p")));
972 } else {
973 contH = dbH->containerHandle(contName);
974 }
975 return(std::unique_ptr<pool::IContainer>(contH));
976}
virtual OpenMode openMode() const =0
Returns the opening mode. It can be used to check whether the database is connected.
virtual void connectForRead()=0
Connects explicitly to the database for read operations.
virtual IContainer * containerHandle(const std::string &name)=0
Returns a pointer to a container object. The user acquires ownership of that object.

◆ getDbHandle()

std::unique_ptr< pool::IDatabase > PoolSvc::getDbHandle ( unsigned int contextId,
const std::string & dbName ) const
private

Get Database handle.

Definition at line 934 of file PoolSvc.cxx.

934 {
935 if (contextId >= m_dbSessionVec.size()) {
936 ATH_MSG_WARNING("getDbHandle: Using default input Stream instead of id = " << contextId);
937 contextId = IPoolSvc::kInputStream;
938 }
939 pool::ISession* sesH = m_dbSessionVec[contextId];
940 if (!sesH->transaction().isActive()) {
942 if (m_dbSessionVec[contextId]->defaultConnectionPolicy().writeModeForNonExisting() != pool::DatabaseConnectionPolicy::RAISE_ERROR) {
943 transMode = pool::ITransaction::UPDATE;
944 }
945 ATH_MSG_DEBUG("Start transaction, type = " << transMode);
946 if (!sesH->transaction().start(transMode)) {
947 ATH_MSG_WARNING("Failed to start transaction, type = " << transMode);
948 return(nullptr);
949 }
950 }
951 if (dbName.compare(0, 4,"PFN:") == 0) {
953 } else if (dbName.compare(0, 4, "LFN:") == 0) {
955 } else if (dbName.compare(0, 4,"FID:") == 0) {
957 }
959}
Type
Transaction type enumeration.
virtual bool start(Type type=READ)=0
Starts a new transaction. Returns the success of the operation.
virtual std::unique_ptr< IDatabase > databaseHandle(const std::string &dbName, DatabaseSpecification::NameType dbNameType)=0
Returns a pointer to a database object. The user acquires ownership of that object.
@ FID
Physical File Name.
Definition IDatabase.h:25
@ LFN
File IDentifier.
Definition IDatabase.h:26

◆ getInputContext()

unsigned int PoolSvc::getInputContext ( const std::string & label,
unsigned int maxFile = 0 )
overridevirtual
Returns
an Id for an input context (POOL persistency service) and create it if needed.
Parameters
label[IN] string label to name new context and allow sharing (returns existing contextId)
maxFile[IN] maximum number of open input files.

Definition at line 358 of file PoolSvc.cxx.

358 {
359 std::lock_guard<CallMutex> lock(m_pool_mut);
360 if (!label.empty()) {
361 std::map<std::string, unsigned int>::const_iterator contextIter = m_inputContextLabel.find(label);
362 if (contextIter != m_inputContextLabel.end()) {
363 if (maxFile > 0) {
364 m_contextMaxFile[contextIter->second] = maxFile;
365 }
366 return(contextIter->second);
367 }
368 }
369 const unsigned int id = m_dbSessionVec.size();
370 m_dbSessionVec.push_back( pool::PersistencySvc::createSession(*m_catalog).release() );
371 m_pers_mut.push_back(new CallMutex);
372 if (!connect(pool::ITransaction::READ, id).isSuccess()) {
373 ATH_MSG_WARNING("Failed to connect Input PersistencySvc: " << id);
375 }
376 if (!label.empty()) {
377 m_inputContextLabel.insert(std::pair<std::string, unsigned int>(label, id));
378 }
379 m_contextMaxFile.insert(std::pair<unsigned int, int>(id, maxFile));
380 return(id);
381}
virtual StatusCode connect(pool::ITransaction::Type type, unsigned int contextId=IPoolSvc::kInputStream) override
Connect to a logical database unit; PersistencySvc is chosen according to transaction type (accessmod...
Definition PoolSvc.cxx:558
std::recursive_mutex CallMutex
Definition PoolSvc.h:205
std::string label(const std::string &format, int i)
Definition label.h:19
std::unique_ptr< ISession > createSession(IFileCatalog &catalog)

◆ getInputContextMap()

std::map< std::string, unsigned int > PoolSvc::getInputContextMap ( ) const
overridevirtual
Returns
copy of the map of all labelled input contexts.

Definition at line 383 of file PoolSvc.cxx.

383 {
384 std::lock_guard<CallMutex> lock(m_pool_mut);
385 return(m_inputContextLabel);
386}

◆ getInputContextMapSize()

unsigned int PoolSvc::getInputContextMapSize ( ) const
overridevirtual
Returns
size of the map of all labelled input contexts.

Definition at line 388 of file PoolSvc.cxx.

388 {
389 std::lock_guard<CallMutex> lock(m_pool_mut);
390 return(m_inputContextLabel.size());
391}

◆ getOutputContext()

unsigned int PoolSvc::getOutputContext ( const std::string & label)
overridevirtual
Returns
an Id for an output context (POOL persistency service) and create it if needed.
Parameters
label[IN] string label to name new context and allow sharing (returns existing contextId)

Definition at line 327 of file PoolSvc.cxx.

327 {
328 std::lock_guard<CallMutex> lock(m_pool_mut);
329 if (m_mainOutputLabel.empty()) {
331 m_outputContextLabel.insert(std::pair<std::string, unsigned int>(label, IPoolSvc::kOutputStream));
332 }
333 if (label == m_mainOutputLabel || label.empty()) {
335 }
336 std::map<std::string, unsigned int>::const_iterator contextIter = m_outputContextLabel.find(label);
337 if (contextIter != m_outputContextLabel.end()) {
338 return(contextIter->second);
339 }
340 const unsigned int id = m_dbSessionVec.size();
341 m_dbSessionVec.push_back(pool::PersistencySvc::createSession(*m_catalog).release());
342 m_pers_mut.push_back(new CallMutex);
343 pool::DatabaseConnectionPolicy policy;
346 if (m_fileOpen.value() == "update") {
348 }
349 m_dbSessionVec[id]->setDefaultConnectionPolicy(policy);
350 if (!m_dbSessionVec[id]->technologySpecificAttributes(pool::ROOT_StorageType.type()).setAttribute<int>("DEFAULT_CONTAINER_TYPE", pool::DbType::getType(m_defaultContainerType).type())) {
351 ATH_MSG_WARNING("Failed to set ROOT default container type via PersistencySvc for id " << id);
353 }
354 m_outputContextLabel.insert(std::pair<std::string, unsigned int>(label, id));
355 return(id);
356}
Gaudi::Property< std::string > m_defaultContainerType
Default ROOT container type.
Definition PoolSvc.h:264
Gaudi::Property< std::string > m_fileOpen
FileOpen, the open mode for the file ("append" or "overwrite").
Definition PoolSvc.h:234
bool setWriteModeForExisting(Mode mode)
Sets the opening mode when an existing database is opened for writing.
bool setWriteModeForNonExisting(Mode mode)
Sets the opening mode when a non existing database is opened for writing Acceptable values are RAISE_...
static DbType getType(const std::string &name)
Access known storage type object by name.

◆ getToken()

Token * PoolSvc::getToken ( const std::string & connection,
const std::string & collection,
const unsigned long ientry ) const
overridevirtual
Returns
a token for a container entry.
Parameters
connection[IN] string containing the connection/file name.
collection[IN] string containing the persistent name of the collection.
ientry[IN] entry number for the token to be returned

Definition at line 538 of file PoolSvc.cxx.

540 {
541 std::lock_guard<CallMutex> lock(*m_pers_mut[IPoolSvc::kInputStream]);
542 std::unique_ptr<pool::IDatabase> dbH = getDbHandle(IPoolSvc::kInputStream, connection);
543 if (dbH == nullptr) {
544 return(nullptr);
545 }
546 if (dbH->openMode() == pool::IDatabase::CLOSED) {
547 dbH->connectForRead();
548 }
549 std::unique_ptr<pool::IContainer> contH = getContainerHandle(dbH.get(), collection);
550 if (contH == nullptr) {
551 return(nullptr);
552 }
553 auto tokenIter = std::unique_ptr<pool::ITokenIterator>(contH->tokens());
554 // the Token returned by the iterator has the refCount already increased
555 return tokenIter->seek(ientry)? tokenIter->next() : nullptr;
556}

◆ initialize()

StatusCode PoolSvc::initialize ( )
overridevirtual

Required of all Gaudi services:

Definition at line 56 of file PoolSvc.cxx.

56 {
57 ATH_CHECK(::AthService::initialize());
58
59 // Register this service for 'I/O' events
60 ServiceHandle<IIoComponentMgr> iomgr("IoComponentMgr", name());
61 ATH_CHECK(iomgr.retrieve());
62 ATH_CHECK(iomgr->io_register(this));
63 // Register input file's names with the I/O manager, unless in SharedWrite mode, set by AthenaPoolCnvSvc
64 bool allGood = true;
65 for (const auto& catalog : m_readCatalog.value()) {
66 if (catalog.starts_with("xmlcatalog_file:")) {
67 const std::string fileName = catalog.substr(16);
68 if (!iomgr->io_register(this, IIoComponentMgr::IoMode::READ, fileName, fileName).isSuccess()) {
69 ATH_MSG_FATAL("could not register [" << catalog << "] for input !");
70 allGood = false;
71 } else {
72 ATH_MSG_INFO("io_register[" << this->name() << "](" << catalog << ") [ok]");
73 }
74 }
75 }
76 if (m_writeCatalog.value().starts_with("xmlcatalog_file:")) {
77 const std::string fileName = m_writeCatalog.value().substr(16);
78 if (!iomgr->io_register(this, IIoComponentMgr::IoMode::WRITE, fileName, fileName).isSuccess()) {
79 ATH_MSG_FATAL("could not register [" << m_writeCatalog.value() << "] for input !");
80 allGood = false;
81 } else {
82 ATH_MSG_INFO("io_register[" << this->name() << "](" << m_writeCatalog.value() << ") [ok]");
83 }
84 }
85 if (!allGood) {
86 return(StatusCode::FAILURE);
87 }
88 m_context = &coral::Context::instance();
89 if (m_context == nullptr) {
90 ATH_MSG_FATAL("Failed to access CORAL Context");
91 return(StatusCode::FAILURE);
92 }
93 coral::ConnectionService conSvcH;
94 coral::IConnectionServiceConfiguration& csConfig = conSvcH.configuration();
95 csConfig.setConnectionRetrialPeriod(m_retrialPeriod);
96 csConfig.setConnectionRetrialTimeOut(m_retrialTimeOut);
97 if (m_connClean) {
98 csConfig.enablePoolAutomaticCleanUp();
99 csConfig.setConnectionTimeOut(m_timeOut);
100 } else {
101 csConfig.disablePoolAutomaticCleanUp();
102 csConfig.setConnectionTimeOut(0);
103 }
104 ATH_MSG_INFO("Set connectionsvc retry/timeout/IDLE timeout to "
106 << "/"
108 << "/"
109 << m_timeOut
110 << " seconds with connection cleanup "
111 << (csConfig.isPoolAutomaticCleanUpEnabled() ? "enabled" : "disabled"));
112 // set Frontier web cache compression level
113 coral::IWebCacheControl& webCache = conSvcH.webCacheControl();
114 webCache.setCompressionLevel(m_frontierComp);
115 ATH_MSG_INFO("Frontier compression level set to " << webCache.compressionLevel());
116 if (m_sortReplicas) {
117 // set replica sorter - get service
118 ServiceHandle<IDBReplicaSvc> replicasvc("DBReplicaSvc", name());
119 if (replicasvc.retrieve().isSuccess()) {
120 csConfig.setReplicaSortingAlgorithm(*replicasvc);
121 ATH_MSG_INFO("Successfully setup replica sorting algorithm");
122 } else {
123 ATH_MSG_WARNING("Cannot setup replica sorting algorithm");
124 }
125 }
126 MSG::Level athLvl = msg().level();
127 ATH_MSG_DEBUG("OutputLevel is " << (int)athLvl);
129 return(setupPersistencySvc());
130}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_FATAL(x)
Gaudi::Property< int > m_retrialTimeOut
ConnectionRetrialTimeOut, the retrial time out for CORAL Connection Service: default = 300 seconds.
Definition PoolSvc.h:253
Gaudi::Property< int > m_timeOut
ConnectionTimeOut, the time out for CORAL Connection Service: default = 5 seconds.
Definition PoolSvc.h:255
Gaudi::Property< int > m_retrialPeriod
ConnectionRetrialPeriod, retry period for CORAL Connection Service: default = 30 seconds.
Definition PoolSvc.h:251
Gaudi::Property< bool > m_sortReplicas
Use DBReplicaSvc to sort database connections, default = true.
Definition PoolSvc.h:262
Gaudi::Property< bool > m_connClean
ConnectionCleanUp - whether to use CORAL connection management thread: default = false.
Definition PoolSvc.h:257
Gaudi::Property< int > m_frontierComp
Frontier proprties, compression level and list of schemas to be refreshed: default = 5.
Definition PoolSvc.h:259
StatusCode setupPersistencySvc()
Definition PoolSvc.cxx:174
bool allGood
Loop over the SDOs & Digits.
static void setLevel(MSG::Level l)
Definition DbPrint.h:20
MsgStream & msg
Definition testRead.cxx:32

◆ io_finalize()

StatusCode PoolSvc::io_finalize ( )
overridevirtual

Definition at line 263 of file PoolSvc.cxx.

263 {
264 ATH_MSG_INFO("I/O finalization...");
265 for (size_t i = 0; i < m_dbSessionVec.size(); i++) {
266 if (m_dbSessionVec[i]->defaultConnectionPolicy().writeModeForNonExisting() != pool::DatabaseConnectionPolicy::RAISE_ERROR &&
267 !disconnect(i).isSuccess()) {
268 ATH_MSG_WARNING("Cannot disconnect output Stream " << i);
269 }
270 }
271 clearState();
272 return(StatusCode::SUCCESS);
273}
virtual StatusCode disconnect(unsigned int contextId=IPoolSvc::kInputStream) const override
Disconnect PersistencySvc associated with a contextId.
Definition PoolSvc.cxx:623

◆ io_reinit()

StatusCode PoolSvc::io_reinit ( )
overridevirtual

Definition at line 133 of file PoolSvc.cxx.

133 {
134 ATH_MSG_INFO("I/O reinitialization...");
135 ServiceHandle<IIoComponentMgr> iomgr("IoComponentMgr", name());
136 if (!iomgr.retrieve().isSuccess()) {
137 ATH_MSG_FATAL("Could not retrieve IoComponentMgr !");
138 return(StatusCode::FAILURE);
139 }
140 if (!iomgr->io_hasitem(this)) {
141 ATH_MSG_FATAL("IoComponentMgr does not know about myself !");
142 return(StatusCode::FAILURE);
143 }
144 std::vector<std::string> readcat = m_readCatalog.value();
145 for (std::size_t icat = 0, imax = readcat.size(); icat < imax; icat++) {
146 if (readcat[icat].compare(0, 16, "xmlcatalog_file:") == 0) {
147 std::string fileName = readcat[icat].substr(16);
148 if (iomgr->io_contains(this, fileName)) {
149 if (!iomgr->io_retrieve(this, fileName).isSuccess()) {
150 ATH_MSG_FATAL("Could not retrieve new value for [" << fileName << "] !");
151 return(StatusCode::FAILURE);
152 }
153 readcat[icat] = "xmlcatalog_file:" + fileName;
154 }
155 }
156 }
157 // all good... copy over.
158 m_readCatalog = readcat;
159 if (m_writeCatalog.value().compare(0, 16, "xmlcatalog_file:") == 0) {
160 std::string fileName = m_writeCatalog.value().substr(16);
161 if (iomgr->io_contains(this, fileName)) {
162 if (!iomgr->io_retrieve(this, fileName).isSuccess()) {
163 ATH_MSG_FATAL("Could not retrieve new value for [" << fileName << "] !");
164 return(StatusCode::FAILURE);
165 }
166 if (!m_shareCat) {
167 m_writeCatalog.setValue("xmlcatalog_file:" + fileName);
168 }
169 }
170 }
171 return(setupPersistencySvc());
172}
int imax(int i, int j)
bool m_shareCat
Definition PoolSvc.h:221
std::pair< int, int > compare(const AmgSymMatrix(N) &m1, const AmgSymMatrix(N) &m2, double precision=1e-9, bool relative=false)
compare two matrices, returns the indices of the first element that fails the condition,...

◆ loadComponent()

void PoolSvc::loadComponent ( const std::string & compName)
overridevirtual
Returns
void
Parameters
compName[IN] string name of the component to be loaded.

Definition at line 397 of file PoolSvc.cxx.

397 {
398 m_context->loadComponent(compName);
399}

◆ lookupBestPfn()

void PoolSvc::lookupBestPfn ( const std::string & token,
std::string & pfn,
std::string & type ) const
overridevirtual
Returns
void
Parameters
token[IN] filename/token string to be translated
pfn[OUT] string PFN of database
type[OUT] string filetype of database

Definition at line 409 of file PoolSvc.cxx.

409 {
410 std::string dbID;
411 if (token.compare(0, 4, "PFN:") == 0) {
412 m_catalog->lookupFileByPFN(token.substr(4), dbID, type); // PFN -> FID
413 } else if (token.compare(0, 4, "LFN:") == 0) {
414 m_catalog->lookupFileByLFN(token.substr(4), dbID); // LFN -> FID
415 } else if (token.compare(0, 4, "FID:") == 0) {
416 dbID = token.substr(4);
417 } else if (token.size() > Guid::stringSize()) { // full token
418 Token tok;
419 tok.fromString(token);
420 dbID = tok.dbID().toString();
421 } else { // guid only
422 dbID = token;
423 }
424 m_catalog->getFirstPFN(dbID, pfn, type); // FID -> best PFN
425}
constexpr void toString(std::span< char, StrLen > buf, bool uppercase=true) const noexcept
Automatic conversion to string representation.
static constexpr int stringSize()
Definition Guid.h:61
Token & fromString(const std::string_view from)
Build from the string representation of a token.
Definition Token.cxx:147
const Guid & dbID() const
Access database identifier.
Definition Token.h:64

◆ patchCatalog()

void PoolSvc::patchCatalog ( const std::string & pfn,
pool::IDatabase & dbH ) const
private

Definition at line 530 of file PoolSvc.cxx.

530 {
531 std::scoped_lock lock(m_pool_mut);
533 std::string fid = dbH.fid();
534 pool::IFileCatalog* catalog_locked ATLAS_THREAD_SAFE = m_catalog;
535 catalog_locked->registerPFN(pfn, "ROOT_All", fid);
536}
virtual bool setTechnology(long technology)=0
Sets the technology identifier for this database.
virtual const std::string & fid()=0
Returns the file identifier of this database.

◆ poolCondPath()

std::string PoolSvc::poolCondPath ( const std::string & leaf)
private

Resolve a file using ATLAS_POOLCOND_PATH.

Definition at line 978 of file PoolSvc.cxx.

978 {
979 // look for files at $ATLAS_POOLCOND_PATH/<leaf>
980 // return full filename if exists, or empty string if not
981 const char* cpath = std::getenv("ATLAS_POOLCOND_PATH");
982 if (cpath && strcmp(cpath, "") != 0) {
983 const std::string testpath = std::string(cpath) + "/" + leaf;
984
985 // Try to open file for reading. Note that a simple stat call may return
986 // a wrong result if the file is residing on an auto-mounted FS (ATR-28801).
987 if (FILE* fp = std::fopen(testpath.c_str(), "r")) {
988 std::fclose(fp);
989 return testpath;
990 }
991 }
992 return {};
993}

◆ registerForWrite()

Token * PoolSvc::registerForWrite ( const Placement * placement,
const void * obj,
const RootType & classDesc )
overridevirtual
Returns
a token to a Data Object written to Pool.
Parameters
placement[IN] pointer to the placement hint.
obj[IN] pointer to the Data Object to be written to Pool.
classDesc[IN] pointer to the Seal class description for the Data Object.

Definition at line 275 of file PoolSvc.cxx.

277 {
278 unsigned int contextId = IPoolSvc::kOutputStream;
279 const std::string& auxString = placement->auxString();
280 if (!auxString.empty()) {
281 if (auxString.compare(0, 6, "[CTXT=") == 0) {
282 ::sscanf(auxString.c_str(), "[CTXT=%08X]", &contextId);
283 } else if (auxString.compare(0, 8, "[CLABEL=") == 0) {
284 contextId = this->getOutputContext(auxString);
285 }
286 if (contextId >= m_dbSessionVec.size()) {
287 ATH_MSG_WARNING("registerForWrite: Using default output Stream instead of id = " << contextId);
288 contextId = IPoolSvc::kOutputStream;
289 }
290 }
291 std::lock_guard<CallMutex> lock(*m_pers_mut[contextId]);
292 Token* token = m_dbSessionVec[contextId]->registerForWrite(*placement, obj, classDesc);
293 if (token == nullptr) {
294 ATH_MSG_WARNING("Cannot write object: " << placement->containerName());
295 }
296 return(token);
297}
const std::string & auxString() const
Access auxiliary string.
Definition Placement.h:40
const std::string & containerName() const
Access container name.
Definition Placement.h:32
virtual unsigned int getOutputContext(const std::string &label) override
Definition PoolSvc.cxx:327

◆ renamePfn()

void PoolSvc::renamePfn ( const std::string & pf,
const std::string & newpf )
overridevirtual
Returns
void
Parameters
pf[IN] filename to be renamed
newpf[IN] new filename

Definition at line 427 of file PoolSvc.cxx.

427 {
428 std::string dbID, type;
429 m_catalog->lookupFileByPFN(pf, dbID, type);
430 if (dbID.empty()) {
431 ATH_MSG_WARNING("Failed to lookup: " << pf << " in FileCatalog");
432 return;
433 }
434 m_catalog->lookupFileByPFN(newpf, dbID, type);
435 if (!dbID.empty()) {
436 ATH_MSG_INFO("Found: " << newpf << " in FileCatalog");
437 return;
438 }
439 m_catalog->renamePFN(pf, newpf);
440}

◆ setAttribute() [1/2]

StatusCode PoolSvc::setAttribute ( const std::string & optName,
const std::string & data,
long tech,
const std::string & dbName,
const std::string & contName = "",
unsigned int contextId = IPoolSvc::kOutputStream ) const
overridevirtual

Set POOL attributes - db/file, container/collection.

Definition at line 761 of file PoolSvc.cxx.

766 {
767 if (contextId >= m_dbSessionVec.size()) {
768 ATH_MSG_WARNING("setAttribute: Using default output Stream instead of id = " << contextId);
769 contextId = IPoolSvc::kOutputStream;
770 }
771 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
772 std::unique_ptr<pool::IDatabase> dbH = getDbHandle(contextId, dbName);
773 if (dbH == nullptr) {
774 ATH_MSG_DEBUG("Failed to get Session/DatabaseHandle to set POOL property.");
775 return(StatusCode::FAILURE);
776 }
777 if (dbH->openMode() == pool::IDatabase::CLOSED) {
778 if (m_dbSessionVec[contextId]->defaultConnectionPolicy().writeModeForNonExisting() != pool::DatabaseConnectionPolicy::RAISE_ERROR) {
779 dbH->setTechnology(tech);
780 dbH->connectForWrite();
781 } else {
782 dbH->connectForRead();
783 }
784 }
785 bool retError = false;
786 std::string objName;
787 bool hasTTreeName = (contName.length() > 6 && contName.compare(0, 6, "TTree=") == 0);
788 if (contName.empty() || hasTTreeName || m_dbSessionVec[contextId]->defaultConnectionPolicy().writeModeForNonExisting() == pool::DatabaseConnectionPolicy::RAISE_ERROR) {
789 objName = hasTTreeName ? contName.substr(6) : contName;
790 if( !isNumber(data) ) {
791 retError = dbH->technologySpecificAttributes().setAttribute(optName, data.c_str(), objName);
792 } else if( data[data.size() - 1] == 'L' ) {
793 retError = dbH->technologySpecificAttributes().setAttribute<long long int>(optName, atoll(data.c_str()), objName);
794 } else {
795 retError = dbH->technologySpecificAttributes().setAttribute<int>(optName, atoi(data.c_str()), objName);
796 }
797 if (!retError) {
798 ATH_MSG_DEBUG("Failed to set POOL property, " << optName << " to " << data);
799 return(StatusCode::FAILURE);
800 }
801 } else {
802 std::unique_ptr<pool::IContainer> contH = getContainerHandle(dbH.get(), contName);
803 if (contH == nullptr) {
804 ATH_MSG_DEBUG("Failed to get ContainerHandle to set POOL property.");
805 return(StatusCode::FAILURE);
806 }
807 if (auto p = contName.find('('); p != std::string::npos) {
808 objName = contName.substr(p + 1); // Get BranchName between parenthesis
809 objName.erase(objName.find(')'));
810 } else if (auto p = contName.find("::"); p != std::string::npos) {
811 objName = contName.substr(p + 2); // Split off Tree name
812 } else if (auto p = contName.find('_'); p != std::string::npos) {
813 objName = contName.substr(p + 1); // Split off "POOLContainer"
814 objName.erase(objName.find('/')); // Split off key
815 }
816 std::string::size_type off = 0;
817 while ((off = objName.find_first_of("<>/")) != std::string::npos) {
818 objName[off] = '_'; // Replace special chars (e.g. templates)
819 }
820 if (data[data.size() - 1] == 'L') {
821 retError = contH->technologySpecificAttributes().setAttribute<long long int>(optName, atoll(data.c_str()), objName);
822 } else {
823 retError = contH->technologySpecificAttributes().setAttribute<int>(optName, atoi(data.c_str()), objName);
824 }
825 if (!retError) {
826 ATH_MSG_DEBUG("Failed to set POOL container property, " << optName << " for " << contName << " : " << objName << " to " << data);
827 return(StatusCode::FAILURE);
828 }
829 }
830 return(StatusCode::SUCCESS);
831}
bool isNumber(const std::string &s)
Definition PoolSvc.cxx:51
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...

◆ setAttribute() [2/2]

StatusCode PoolSvc::setAttribute ( const std::string & optName,
const std::string & data,
long tech,
unsigned int contextId = IPoolSvc::kOutputStream ) const
overridevirtual

Set POOL attributes - domain.

Definition at line 737 of file PoolSvc.cxx.

740 {
741 if (contextId >= m_dbSessionVec.size()) {
742 ATH_MSG_WARNING("setAttribute: Using default output Stream instead of id = " << contextId);
743 contextId = IPoolSvc::kOutputStream;
744 }
745 ContextLock lock(contextId, m_pool_mut, m_pers_mut);
746 pool::ISession* sesH = m_dbSessionVec[contextId];
747 if (data[data.size() - 1] == 'L') {
748 if (!sesH->technologySpecificAttributes(tech).setAttribute<long long int>(optName, atoll(data.c_str()))) {
749 ATH_MSG_DEBUG("Failed to set POOL property, " << optName << " to " << data);
750 return(StatusCode::FAILURE);
751 }
752 } else {
753 if (!sesH->technologySpecificAttributes(tech).setAttribute<int>(optName, atoi(data.c_str()))) {
754 ATH_MSG_DEBUG("Failed to set POOL property, " << optName << " to " << data);
755 return(StatusCode::FAILURE);
756 }
757 }
758 return(StatusCode::SUCCESS);
759}
bool setAttribute(const std::string &attributeName, const T &atttibuteValue, const std::string &option="")
Templated method to set an attribute.

◆ setFrontierCache()

StatusCode PoolSvc::setFrontierCache ( const std::string & conn)
overridevirtual

Setup Frontier cache for given logical or physical connection name.

Definition at line 833 of file PoolSvc.cxx.

833 {
834 std::lock_guard<CallMutex> lock(m_pool_mut);
835 ATH_MSG_VERBOSE("setFrontierCache called for connection:" << conn);
836 // setup the Frontier cache information for the given logical or physical connection string
837 // first determine if the connection is logical (no ':')
838 std::vector<std::string> physcons;
839 if (conn.find(':') == std::string::npos) {
840 // if logical, have to lookup list of physical replicas, and consider each
841 // need the CORAL ILookupSvc interface which must be loaded if needed
842 const std::string lookSvcStr("CORAL/Services/XMLLookupService");
843 coral::IHandle<coral::ILookupService> lookSvcH = m_context->query<coral::ILookupService>();
844 if (!lookSvcH.isValid()) {
845 m_context->loadComponent(lookSvcStr);
846 lookSvcH = m_context->query<coral::ILookupService>();
847 }
848 if (!lookSvcH.isValid()) {
849 ATH_MSG_ERROR("Cannot locate " << lookSvcStr);
850 return(StatusCode::FAILURE);
851 }
852 coral::IDatabaseServiceSet* dbset = lookSvcH->lookup(conn, coral::ReadOnly);
853 if (dbset != nullptr) {
854 for (int irep = 0, nrep = dbset->numberOfReplicas(); irep < nrep; ++irep) {
855 const std::string pcon = dbset->replica(irep).connectionString();
856 if (pcon.compare(0, 9, "frontier:") == 0) {
857 physcons.push_back(std::move(pcon));
858 }
859 }
860 delete dbset; dbset = nullptr;
861 } else {
862 ATH_MSG_DEBUG("setFrontierCache: Could not find any replicas for " << conn);
863 }
864 } else if (conn.compare(0, 9, "frontier:") == 0) {
865 physcons.push_back(conn);
866 }
867 // check if any replicas will try and use frontier
868 if (physcons.size() == 0) {
869 return(StatusCode::SUCCESS);
870 }
871 coral::ConnectionService conSvcH;
872 // for each frontier replica, define the web cache info
873 // get the WebCacheControl interface via ConnectionSvc
874 // note ConnectionSvc should already be loaded by initialize
875 coral::IWebCacheControl& webCache = conSvcH.webCacheControl();
876 for (const auto& physcon : physcons) {
877 const auto& refreshList = m_frontierRefresh.value();
878 if (std::find(refreshList.begin(), refreshList.end(), physcon) == refreshList.end()
879 && std::find(refreshList.begin(), refreshList.end(), conn) == refreshList.end()) {
880 // set that a table DUMMYTABLE should be refreshed - indicates that everything
881 // else in the schema should not be
882 webCache.refreshTable(physcon, "DUMMYTABLE");
883 } else {
884 // set the schema to be refreshed
885 webCache.refreshSchemaInfo(physcon);
886 }
887 ATH_MSG_DEBUG("Cache flag for connection " << physcon << " set to " << webCache.webCacheInfo(physcon).isSchemaInfoCached());
888 }
889 return(StatusCode::SUCCESS);
890}
#define ATH_MSG_VERBOSE(x)
Gaudi::Property< std::vector< std::string > > m_frontierRefresh
Definition PoolSvc.h:260

◆ setObjPtr()

void PoolSvc::setObjPtr ( void *& obj,
const Token * token )
overridevirtual
Returns
void
Parameters
obj[OUT] pointer to the Data Object.
token[IN] token of the Data Object for which a Pool Ref is filled.

Definition at line 299 of file PoolSvc.cxx.

299 {
300 unsigned int contextId = IPoolSvc::kInputStream;
301 const std::string& auxString = token->auxString();
302 if (!auxString.empty()) {
303 if (auxString.compare(0, 6, "[CTXT=") == 0) {
304 ::sscanf(auxString.c_str(), "[CTXT=%08X]", &contextId);
305 } else if (auxString.compare(0, 8, "[CLABEL=") == 0) {
306 contextId = this->getInputContext(auxString);
307 }
308 if (contextId >= m_dbSessionVec.size()) {
309 ATH_MSG_WARNING("setObjPtr: Using default input Stream instead of id = " << contextId);
310 contextId = IPoolSvc::kInputStream;
311 }
312 }
313 ATH_MSG_VERBOSE("setObjPtr: token=" << token->toString() << ", auxString=" << auxString << ", contextID=" << contextId);
314 // Get Context ID/label from Token
315 std::lock_guard<CallMutex> lock(*m_pers_mut[contextId]);
316 obj = m_dbSessionVec[contextId]->readObject(*token, obj);
317 std::map<unsigned int, unsigned int>::const_iterator maxFileIter = m_contextMaxFile.find(contextId);
318 if (maxFileIter != m_contextMaxFile.end() && maxFileIter->second > 0) {
319 m_guidLists[contextId].remove(token->dbID());
320 m_guidLists[contextId].push_back(token->dbID());
321 while (m_guidLists[contextId].size() > maxFileIter->second) {
322 this->disconnectDb("FID:" + m_guidLists[contextId].begin()->toString(), contextId).ignore();
323 }
324 }
325}
const std::string & auxString() const
Access auxiliary string.
Definition Token.h:91
virtual const std::string toString() const
Retrieve the string representation of the token.
Definition Token.cxx:134

◆ setShareMode()

void PoolSvc::setShareMode ( bool shareCat)
overridevirtual
Returns
void
Parameters
shareCat[IN] bool to share the file catalog.

Definition at line 401 of file PoolSvc.cxx.

401 {
402 m_shareCat = shareCat;
403}

◆ setupPersistencySvc()

StatusCode PoolSvc::setupPersistencySvc ( )
private

Definition at line 174 of file PoolSvc.cxx.

174 {
175 clearState();
176 ATH_MSG_INFO("Setting up APR FileCatalog and Streams");
178 if (m_catalog != nullptr) {
179 m_catalog->start();
180 } else {
181 ATH_MSG_FATAL("Failed to setup POOL File Catalog.");
182 return(StatusCode::FAILURE);
183 }
184 // Setup a persistency services
185 m_dbSessionVec.push_back(pool::PersistencySvc::createSession(*m_catalog).release()); // Read Service
186 m_pers_mut.push_back(new CallMutex);
187 if (!m_dbSessionVec[IPoolSvc::kInputStream]->technologySpecificAttributes(pool::ROOT_StorageType.type()).setAttribute<bool>("ENABLE_THREADSAFETY", true)) {
188 ATH_MSG_FATAL("Failed to enable thread safety in ROOT via PersistencySvc.");
189 return(StatusCode::FAILURE);
190 }
191 m_contextMaxFile.insert(std::pair<unsigned int, int>(IPoolSvc::kInputStream, m_dbAgeLimit));
193 ATH_MSG_FATAL("Failed to connect Input PersistencySvc.");
194 return(StatusCode::FAILURE);
195 }
196 m_dbSessionVec.push_back(pool::PersistencySvc::createSession(*m_catalog).release()); // Write Service
197 m_pers_mut.push_back(new CallMutex);
198 pool::DatabaseConnectionPolicy policy;
201 if (m_fileOpen.value() == "update") {
203 }
204 m_dbSessionVec[IPoolSvc::kOutputStream]->setDefaultConnectionPolicy(policy);
206 ATH_MSG_FATAL("Failed to set ROOT default container type via PersistencySvc.");
207 return(StatusCode::FAILURE);
208 }
209
210 return(StatusCode::SUCCESS);
211}
pool::IFileCatalog * createCatalog()
Definition PoolSvc.cxx:892
Gaudi::Property< int > m_dbAgeLimit
MaxFilesOpen, option to have PoolSvc limit the number of open Input Files: default = 0 (No files are ...
Definition PoolSvc.h:237

◆ start()

StatusCode PoolSvc::start ( )
overridevirtual

Required of all Gaudi services:

Definition at line 213 of file PoolSvc.cxx.

213 {
214 // Switiching on ROOT implicit multi threading for AthenaMT
215 if (m_useROOTIMT && Gaudi::Concurrency::ConcurrencyFlags::numThreads() > 1) {
216 if (!m_dbSessionVec[IPoolSvc::kInputStream]->technologySpecificAttributes(pool::ROOT_StorageType.type()).setAttribute<int>("ENABLE_IMPLICITMT", Gaudi::Concurrency::ConcurrencyFlags::numThreads() - 1)) {
217 ATH_MSG_FATAL("Failed to enable implicit multithreading in ROOT via PersistencySvc.");
218 return(StatusCode::FAILURE);
219 }
220 ATH_MSG_INFO("Enabled implicit multithreading in ROOT via PersistencySvc to: " << Gaudi::Concurrency::ConcurrencyFlags::numThreads() - 1);
221 }
222 return(StatusCode::SUCCESS);
223}
Gaudi::Property< bool > m_useROOTIMT
Use ROOT Implicit MultiThreading, default = true.
Definition PoolSvc.h:244

◆ stop()

StatusCode PoolSvc::stop ( )
overridevirtual

Definition at line 225 of file PoolSvc.cxx.

225 {
226 ATH_MSG_VERBOSE("stop()");
227 bool retError = false;
228 for (unsigned int contextId = 0, imax = m_dbSessionVec.size(); contextId < imax; contextId++) {
229 if (!disconnect(contextId).isSuccess()) {
230 ATH_MSG_FATAL("Cannot disconnect Stream: " << contextId);
231 retError = true;
232 }
233 }
234 return(retError ? StatusCode::FAILURE : StatusCode::SUCCESS);
235}

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::map<unsigned int, std::list<Guid> > m_guidLists PoolSvc::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 230 of file PoolSvc.h.

◆ m_attemptCatalogPatch

Gaudi::Property<bool> PoolSvc::m_attemptCatalogPatch {this,"AttemptCatalogPatch",true}
private

AttemptCatalogPatch, option to create catalog: default = false.

Definition at line 249 of file PoolSvc.h.

249{this,"AttemptCatalogPatch",true};

◆ m_catalog

pool::IFileCatalog* PoolSvc::m_catalog {nullptr}
private

Definition at line 222 of file PoolSvc.h.

222{nullptr};

◆ m_connClean

Gaudi::Property<bool> PoolSvc::m_connClean {this,"ConnectionCleanUp",false}
private

ConnectionCleanUp - whether to use CORAL connection management thread: default = false.

Definition at line 257 of file PoolSvc.h.

257{this,"ConnectionCleanUp",false};

◆ m_context

coral::Context* PoolSvc::m_context {nullptr}
private

Definition at line 220 of file PoolSvc.h.

220{nullptr};

◆ m_contextMaxFile

std::map<unsigned int, unsigned int> PoolSvc::m_contextMaxFile
private

Definition at line 228 of file PoolSvc.h.

◆ m_dbAgeLimit

Gaudi::Property<int> PoolSvc::m_dbAgeLimit {this,"MaxFilesOpen",0}
private

MaxFilesOpen, option to have PoolSvc limit the number of open Input Files: default = 0 (No files are closed automatically)

Definition at line 237 of file PoolSvc.h.

237{this,"MaxFilesOpen",0};

◆ m_dbSessionVec

std::vector<pool::PersistencySvc::ISession*> PoolSvc::m_dbSessionVec
private

Definition at line 223 of file PoolSvc.h.

◆ m_defaultContainerType

Gaudi::Property<std::string> PoolSvc::m_defaultContainerType {this, "DefaultContainerType", "ROOTTREEINDEX"}
private

Default ROOT container type.

Definition at line 264 of file PoolSvc.h.

264{this, "DefaultContainerType", "ROOTTREEINDEX"};

◆ m_fileOpen

Gaudi::Property<std::string> PoolSvc::m_fileOpen {this,"FileOpen","overwrite"}
private

FileOpen, the open mode for the file ("append" or "overwrite").

Definition at line 234 of file PoolSvc.h.

234{this,"FileOpen","overwrite"};

◆ m_frontierComp

Gaudi::Property<int> PoolSvc::m_frontierComp {this,"FrontierCompression",5}
private

Frontier proprties, compression level and list of schemas to be refreshed: default = 5.

Definition at line 259 of file PoolSvc.h.

259{this,"FrontierCompression",5};

◆ m_frontierRefresh

Gaudi::Property<std::vector<std::string> > PoolSvc::m_frontierRefresh {this,"FrontierRefreshSchema",{}}
private

Definition at line 260 of file PoolSvc.h.

260{this,"FrontierRefreshSchema",{}};

◆ m_inputContextLabel

std::map<std::string, unsigned int> PoolSvc::m_inputContextLabel
private

Definition at line 225 of file PoolSvc.h.

◆ m_mainOutputLabel

std::string PoolSvc::m_mainOutputLabel {}
private

Definition at line 227 of file PoolSvc.h.

227{};

◆ m_outputContextLabel

std::map<std::string, unsigned int> PoolSvc::m_outputContextLabel
private

Definition at line 226 of file PoolSvc.h.

◆ m_pers_mut

std::vector<CallMutex*> PoolSvc::m_pers_mut
private

Definition at line 224 of file PoolSvc.h.

◆ m_pool_mut

CallMutex PoolSvc::m_pool_mut
mutableprivate

Definition at line 219 of file PoolSvc.h.

◆ m_readCatalog

Gaudi::Property<std::vector<std::string> > PoolSvc::m_readCatalog {this,"ReadCatalog",{},"List of catalog files to read from","OrderedSet<std::string>"}
private

ReadCatalog, the list of additional POOL input file catalogs to consult: default = empty vector.

Definition at line 242 of file PoolSvc.h.

242{this,"ReadCatalog",{},"List of catalog files to read from","OrderedSet<std::string>"};

◆ m_retrialPeriod

Gaudi::Property<int> PoolSvc::m_retrialPeriod {this,"ConnectionRetrialPeriod",300}
private

ConnectionRetrialPeriod, retry period for CORAL Connection Service: default = 30 seconds.

Definition at line 251 of file PoolSvc.h.

251{this,"ConnectionRetrialPeriod",300};

◆ m_retrialTimeOut

Gaudi::Property<int> PoolSvc::m_retrialTimeOut {this,"ConnectionRetrialTimeOut",3600}
private

ConnectionRetrialTimeOut, the retrial time out for CORAL Connection Service: default = 300 seconds.

Definition at line 253 of file PoolSvc.h.

253{this,"ConnectionRetrialTimeOut",3600};

◆ m_shareCat

bool PoolSvc::m_shareCat {false}
private

Definition at line 221 of file PoolSvc.h.

221{false};

◆ m_sortReplicas

Gaudi::Property<bool> PoolSvc::m_sortReplicas {this,"SortReplicas",true}
private

Use DBReplicaSvc to sort database connections, default = true.

Definition at line 262 of file PoolSvc.h.

262{this,"SortReplicas",true};

◆ m_timeOut

Gaudi::Property<int> PoolSvc::m_timeOut {this,"ConnectionTimeOut",5}
private

ConnectionTimeOut, the time out for CORAL Connection Service: default = 5 seconds.

Definition at line 255 of file PoolSvc.h.

255{this,"ConnectionTimeOut",5};

◆ m_useROOTIMT

Gaudi::Property<bool> PoolSvc::m_useROOTIMT {this,"UseROOTImplicitMT",true}
private

Use ROOT Implicit MultiThreading, default = true.

Definition at line 244 of file PoolSvc.h.

244{this,"UseROOTImplicitMT",true};

◆ m_useROOTMaxTree

Gaudi::Property<bool> PoolSvc::m_useROOTMaxTree {this,"UseROOTIncreaseVMaxTree",false}
private

Increase virtual TTree size to avoid backreads in multithreading, default = false.

Definition at line 246 of file PoolSvc.h.

246{this,"UseROOTIncreaseVMaxTree",false};

◆ m_writeCatalog

Gaudi::Property<std::string> PoolSvc::m_writeCatalog {this,"WriteCatalog","xmlcatalog_file:PoolFileCatalog.xml"}
private

WriteCatalog, the file catalog to be used to register output files (also default input catalog): default = "" (use POOL default).

Definition at line 240 of file PoolSvc.h.

240{this,"WriteCatalog","xmlcatalog_file:PoolFileCatalog.xml"};

The documentation for this class was generated from the following files: