1 #ifndef GAUDI_NTUPLESVC_H 2 #define GAUDI_NTUPLESVC_H 1 123 #endif // GAUDI_NTUPLESVC_H std::map< std::string, Connection > Connections
void releaseConnection(Connection &c)
Finalize single service.
std::vector< std::string > DBaseEntries
StatusCode writeRecord(NTuple::Tuple *tuple) override
Write single record to N tuple.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
const std::string & name() const override
Retrieve name of the service.
Implementation of property with value of concrete type.
StatusCode initialize() override
DataSvc overrides: Initialize the service.
StatusCode reinitialize() override
DataSvc overrides: reinitialize service.
NTuple::Tuple * book(const std::string &fullPath, const CLID &type, const std::string &title) override
Book Ntuple and register it with the data store.
NTuple::Tuple * access(const std::string &fullPath, const std::string &filename) override
Access N tuple on disk.
Connection(IConversionSvc *s)
StatusCode disconnect(const std::string &nam) override
Close open connection.
StatusCode updateDirectories()
Update directory data.
StatusCode createService(const std::string &nam, const std::string &typ, const std::vector< Prop > &props, IConversionSvc *&pSvc)
Create conversion service.
This class is used for returning status codes from appropriate routines.
std::pair< std::string, std::string > Prop
StatusCode readRecord(NTuple::Tuple *tuple) override
Read single record from N tuple.
NTupleSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Gaudi::Property< DBaseEntries > m_output
NTuple::Directory * createDirectory(DataObject *pParent, const std::string &title) override
Create Ntuple directory and register it with the data store.
bool isConnected(const std::string &identifier) const override
Check if a datasource is connected.
The IRegistry represents the entry door to the environment any data object residing in a transient da...
unsigned int CLID
Class ID definition.
Abstract base class which allows the user to interact with the actual N tuple implementation.
StatusCode finalize() override
DataSvc overrides: stop the service.
IConversionSvc * getDataLoader(IRegistry *pReg) override
DataSvc overrides: Retrieve data loader.
Base class used to extend a class implementing other interfaces.
StatusCode save(const std::string &fullPath) override
Save N tuple to disk. Must be called in order to close the ntuple file properly.
Gaudi::Property< DBaseEntries > m_input
StatusCode connect(const std::string &ident) override
Add file to list I/O list.
StatusCode create(const CLID &typ, const std::string &title, NTuple::Tuple *&refpTuple) override
Create requested N tuple (Hide constructor)
Small class representing an N tuple directory in the transient store.
StatusCode disconnectAll() override
Close all open connections.
StatusCode attachTuple(const std::string &filename, const std::string &logname, const char typ, const long t)
Attach output/input file.
A DataObject is the base class of any identifiable object on any data store.
Connection(const Connection &c)
Connections m_connections
Container of connection points.