![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
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()) {
76 *ppvInterface =
dynamic_cast<IRootSvc*
>(
this);
79 return ::AthService::queryInterface(riid, ppvInterface);
82 return StatusCode::SUCCESS;
106 unsigned long ientry = 0;
116 void* pObj =
type.Construct();
129 std::string fidString, ftype;
131 if( fidString.empty() ) {
137 ConnMap_t::const_iterator fitr =
m_conns.find(fid);
146 return StatusCode::FAILURE;
148 return StatusCode::SUCCESS;
157 return StatusCode::FAILURE;
159 if (!
conn->connectWrite(
"recreate").isSuccess()) {
161 return StatusCode::FAILURE;
164 return StatusCode::SUCCESS;
171 return StatusCode::FAILURE;
175 return StatusCode::FAILURE;
177 return StatusCode::SUCCESS;
186 return StatusCode::FAILURE;
188 if (!
conn->disconnect().isSuccess()) {
190 return StatusCode::FAILURE;
195 return StatusCode::SUCCESS;
204 std::string fidString, ftype;
206 if( fidString.empty() ) {
212 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.
static const InterfaceID & interfaceID()
Retrieve interface ID.
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.
StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
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:
This class provides the interface to the ROOT software.