|
ATLAS Offline Software
|
Go to the documentation of this file.
28 base_class(
name, pSvcLocator),
32 m_dictSvc(
"AthDictLoaderSvc",
name) {
37 delete itr->second; itr->second = 0;
46 return StatusCode::FAILURE;
55 return StatusCode::FAILURE;
58 return StatusCode::SUCCESS;
62 for (ConnMap_t::const_iterator itr =
m_conns.begin(), iend =
m_conns.end(); itr != iend; ++itr) {
63 if (!itr->second->disconnect().isSuccess()) {
95 unsigned long ientry = 0;
105 void* pObj =
type.Construct();
118 std::string fidString, ftype;
120 if( fidString.empty() ) {
126 ConnMap_t::const_iterator fitr =
m_conns.find(fid);
135 return StatusCode::FAILURE;
137 return StatusCode::SUCCESS;
146 return StatusCode::FAILURE;
148 if (!
conn->connectWrite(
"recreate").isSuccess()) {
150 return StatusCode::FAILURE;
153 return StatusCode::SUCCESS;
160 return StatusCode::FAILURE;
164 return StatusCode::FAILURE;
166 return StatusCode::SUCCESS;
175 return StatusCode::FAILURE;
177 if (!
conn->disconnect().isSuccess()) {
179 return StatusCode::FAILURE;
184 return StatusCode::SUCCESS;
193 std::string fidString, ftype;
195 if( fidString.empty() ) {
201 ConnMap_t::const_iterator fitr =
m_conns.find(fid);
JetConstituentVector::iterator iterator
This class provides the implementation of Athena::RootConnection class, similar to Gaudi IDataConnect...
static const Guid & null()
NULL-Guid: static class method.
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
StatusCode initialize()
Gaudi Service Interface method implementations:
This class holds all the necessary information to guide the writing of an object in a physical place.
ServiceHandle< ::IDictLoaderSvc > m_dictSvc
ServiceHandle to the dictionary service.
void lookupFileByPFN(const std::string &pfn, std::string &fid, std::string &tech) const
Get FID and filetype for a given PFN.
const std::string & containerName() const
Access container name.
pool::IFileCatalog * m_catalog
ConnMap_t m_conns
Map of file name keys and connection values.
void registerPFN(const std::string &pfn, const std::string &ftype, std::string &fid)
Register PFN, assign new FID if not given.
virtual ~RootSvc()
Destructor.
StatusCode commit()
Commit data stream to ROOT.
const std::string toString() const
Automatic conversion to string representation.
void commit()
Save catalog to file.
#define ATH_MSG_VERBOSE(x)
RootType getType(const std::type_info &type) const
Load the type (dictionary) from Root.
This class provides a token that identifies in a unique way objects on the persistent storage.
StatusCode write(const void *data, unsigned long &len)
Write root byte buffer to output stream.
StatusCode connect(const std::string &fname)
Connect the file fname to the service.
StatusCode disconnect(const std::string &fname)
Disconnect the file fname from the service.
Some weak symbol referencing magic...
::StatusCode StatusCode
StatusCode definition for legacy code.
Athena::RootConnection * m_wconn
void start()
redirect to init() for Gaudi FC
This file contains the class definition for the RootSvc class.
void setWriteCatalog(const std::string &connect)
Access to the (first) writable file catalog.
const Token * writeObject(const Placement &placement, const RootType &type, const void *pObj)
Write object of a given class to Root.
Athena::RootConnection * connection(const std::string &fname)
Get the RootConnection associated with file fname
StatusCode open(const std::string &fname, const std::string &mode)
Open the file fname with open mode mode
StatusCode commitOutput()
Commit data and flush buffer.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
void destructObject(const RootType &type, void *pObj) const
Destruct a given object of type RootType.
#define ATH_MSG_WARNING(x)
void * readObject(const Token &token, void *&pObj)
Read object from Root.
const Guid & fromString(const std::string &s)
Automatic conversion from string representation.
This file contains the class definition for the Athena::RootConnection class.
StatusCode setContainer(const std::string &container, const std::string &type)
Set the container name and type, creating TTree and TBranch as needed.
void * createObject(const RootType &type) const
Create an object of a given RootType.
This file contains the class definition for the Placement class (migrated from POOL).
This file contains the class definition for the Token class (migrated from POOL).
RootSvc()
Default constructor: