![]() |
The Gaudi Framework
v26r4
|
#include <src/NTupleSvc/NTupleSvc.h>
Classes | |
struct | Connection |
Public Member Functions | |
virtual StatusCode | initialize () |
DataSvc overrides: Initialize the service. More... | |
virtual StatusCode | reinitialize () |
DataSvc overrides: reinitialize service. More... | |
virtual StatusCode | finalize () |
DataSvc overrides: stop the service. More... | |
virtual IConversionSvc * | getDataLoader (IRegistry *pReg) |
DataSvc overrides: Retrieve data loader. More... | |
virtual NTuple::Directory * | createDirectory (DataObject *pParent, const std::string &title) |
Create Ntuple directory and register it with the data store. More... | |
virtual NTuple::Directory * | createDirectory (DataObject *pParent, long id) |
Create Ntuple directory and register it with the data store. More... | |
virtual NTuple::Directory * | createDirectory (const std::string &dirPath, long id) |
Create Ntuple directory and register it with the data store. More... | |
virtual NTuple::Directory * | createDirectory (const std::string &dirPath, const std::string &title) |
Create Ntuple directory and register it with the data store. More... | |
virtual NTuple::Directory * | createDirectory (const std::string &fullPath) |
Create Ntuple directory and register it with the data store. More... | |
virtual StatusCode | create (const CLID &typ, const std::string &title, NTuple::Tuple *&refpTuple) |
Create requested N tuple (Hide constructor) More... | |
virtual NTuple::Tuple * | book (const std::string &fullPath, const CLID &type, const std::string &title) |
Book Ntuple and register it with the data store. More... | |
virtual NTuple::Tuple * | book (const std::string &dirPath, const std::string &relPath, const CLID &type, const std::string &title) |
Book Ntuple and register it with the data store. More... | |
virtual NTuple::Tuple * | book (const std::string &dirPath, long id, const CLID &type, const std::string &title) |
Book Ntuple and register it with the data store. More... | |
virtual NTuple::Tuple * | book (DataObject *pParent, const std::string &relPath, const CLID &type, const std::string &title) |
Book Ntuple and register it with the data store. More... | |
virtual NTuple::Tuple * | book (DataObject *pParent, long id, const CLID &type, const std::string &title) |
Book Ntuple and register it with the data store. More... | |
virtual NTuple::Tuple * | access (const std::string &fullPath, const std::string &filename) |
Access N tuple on disk. More... | |
virtual StatusCode | save (const std::string &fullPath) |
Save N tuple to disk. Must be called in order to close the ntuple file properly. More... | |
virtual StatusCode | save (NTuple::Tuple *tuple) |
Save N tuple to disk. Must be called in order to close the ntuple file properly. More... | |
virtual StatusCode | save (DataObject *pParent, const std::string &relPath) |
Save N tuple to disk. Must be called in order to close the ntuple file properly. More... | |
virtual StatusCode | writeRecord (NTuple::Tuple *tuple) |
Write single record to N tuple. More... | |
virtual StatusCode | writeRecord (const std::string &fullPath) |
Write single record to N tuple. More... | |
virtual StatusCode | writeRecord (DataObject *pParent, const std::string &relPath) |
Write single record to N tuple. More... | |
virtual StatusCode | readRecord (NTuple::Tuple *tuple) |
Read single record from N tuple. More... | |
virtual StatusCode | readRecord (const std::string &fullPath) |
Read single record from N tuple. More... | |
virtual StatusCode | readRecord (DataObject *pParent, const std::string &relPath) |
Read single record from N tuple. More... | |
virtual bool | isConnected (const std::string &identifier) const |
Check if a datasource is connected. More... | |
virtual StatusCode | connect (const std::string &ident) |
Add file to list I/O list. More... | |
virtual StatusCode | connect (const std::string &ident, std::string &logname) |
Add file to list I/O list. More... | |
virtual StatusCode | disconnect (const std::string &nam) |
Close open connection. More... | |
virtual StatusCode | disconnectAll () |
Close all open connections. More... | |
NTupleSvc (const std::string &name, ISvcLocator *svc) | |
Standard Constructor. More... | |
virtual | ~NTupleSvc () |
Standard Destructor. More... | |
![]() | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
void * | i_cast (const InterfaceID &tid) const override |
Implementation of IInterface::i_cast. More... | |
StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
Implementation of IInterface::queryInterface. More... | |
std::vector< std::string > | getInterfaceNames () const override |
Implementation of IInterface::getInterfaceNames. More... | |
~extends () override=default | |
Virtual destructor. More... | |
![]() | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
~extend_interfaces () override=default | |
Virtual destructor. More... | |
Protected Types | |
typedef std::vector< std::string > | DBaseEntries |
typedef std::map< std::string, Connection > | Connections |
typedef std::pair< std::string, std::string > | Prop |
Protected Member Functions | |
StatusCode | createService (const std::string &nam, const std::string &typ, const std::vector< Prop > &props, IConversionSvc *&pSvc) |
Create conversion service. More... | |
void | releaseConnection (Connection &c) |
Finalize single service. More... | |
StatusCode | attachTuple (const std::string &filename, const std::string &logname, const char typ, const long t) |
Attach output/input file. More... | |
StatusCode | updateDirectories () |
Update directory data. More... | |
Protected Attributes | |
DBaseEntries | m_output |
Output streams. More... | |
DBaseEntries | m_input |
Input streams. More... | |
Connections | m_connections |
Container of connection points. More... | |
Additional Inherited Members | |
![]() | |
typedef extends | base_class |
Typedef to this class. More... | |
typedef extend_interfaces< Interfaces...> | extend_interfaces_base |
Typedef to the base of this class. More... | |
typedef extends | base_class |
Typedef to this class. More... | |
typedef extend_interfaces< Interfaces...> | extend_interfaces_base |
Typedef to the base of this class. More... | |
![]() | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
take union of the ext_iids of all Interfaces... More... | |
NTuple service.
See the Interface definition files for more detailed documentation of the implementing class. Base class: Gaudi/DataSvc/DataSvc.h Generic N tuple service interface: Gaudi/Interfaces/INTupleSvc.h Generic IAddressCreator interface: Gaudi/Interfaces/IAddressCreator.h Generic IConversionSvc interface: Gaudi/Interfaces/IConversionSvc.h
Definition at line 24 of file NTupleSvc.h.
|
protected |
Definition at line 34 of file NTupleSvc.h.
|
protected |
Definition at line 33 of file NTupleSvc.h.
|
protected |
Definition at line 35 of file NTupleSvc.h.
NTupleSvc::NTupleSvc | ( | const std::string & | name, |
ISvcLocator * | svc | ||
) |
|
virtual |
|
virtual |
|
protected |
Attach output/input file.
Definition at line 470 of file NTupleSvc.cpp.
|
virtual |
Book Ntuple and register it with the data store.
Definition at line 363 of file NTupleSvc.cpp.
|
virtual |
Book Ntuple and register it with the data store.
Definition at line 399 of file NTupleSvc.cpp.
|
virtual |
Book Ntuple and register it with the data store.
Definition at line 407 of file NTupleSvc.cpp.
|
virtual |
Book Ntuple and register it with the data store.
Definition at line 412 of file NTupleSvc.cpp.
|
virtual |
Book Ntuple and register it with the data store.
Definition at line 430 of file NTupleSvc.cpp.
|
virtual |
Add file to list I/O list.
Definition at line 212 of file NTupleSvc.cpp.
|
virtual |
Add file to list I/O list.
Reimplemented in TagCollectionSvc.
Definition at line 217 of file NTupleSvc.cpp.
|
virtual |
Create requested N tuple (Hide constructor)
Eventually allow loading through factory?
Definition at line 342 of file NTupleSvc.cpp.
|
virtual |
Create Ntuple directory and register it with the data store.
Definition at line 438 of file NTupleSvc.cpp.
|
virtual |
Create Ntuple directory and register it with the data store.
Definition at line 453 of file NTupleSvc.cpp.
|
virtual |
Create Ntuple directory and register it with the data store.
Definition at line 458 of file NTupleSvc.cpp.
|
virtual |
Create Ntuple directory and register it with the data store.
Definition at line 463 of file NTupleSvc.cpp.
|
virtual |
Create Ntuple directory and register it with the data store.
Definition at line 494 of file NTupleSvc.cpp.
|
protected |
Create conversion service.
CGL: set the storage type
Definition at line 281 of file NTupleSvc.cpp.
|
virtual |
Close open connection.
Definition at line 186 of file NTupleSvc.cpp.
|
virtual |
Close all open connections.
Definition at line 197 of file NTupleSvc.cpp.
|
virtual |
DataSvc overrides: stop the service.
stop the service.
Definition at line 204 of file NTupleSvc.cpp.
|
virtual |
DataSvc overrides: Retrieve data loader.
DataSvc override: Retrieve data loader.
Definition at line 112 of file NTupleSvc.cpp.
|
virtual |
DataSvc overrides: Initialize the service.
Initialize the service.
Definition at line 75 of file NTupleSvc.cpp.
|
virtual |
Check if a datasource is connected.
Definition at line 106 of file NTupleSvc.cpp.
|
virtual |
Read single record from N tuple.
Definition at line 615 of file NTupleSvc.cpp.
|
virtual |
Read single record from N tuple.
Definition at line 644 of file NTupleSvc.cpp.
|
virtual |
Read single record from N tuple.
Definition at line 651 of file NTupleSvc.cpp.
|
virtual |
DataSvc overrides: reinitialize service.
Initialize the service.
Definition at line 101 of file NTupleSvc.cpp.
|
protected |
|
virtual |
Save N tuple to disk. Must be called in order to close the ntuple file properly.
Definition at line 535 of file NTupleSvc.cpp.
|
virtual |
Save N tuple to disk. Must be called in order to close the ntuple file properly.
Definition at line 543 of file NTupleSvc.cpp.
|
virtual |
Save N tuple to disk. Must be called in order to close the ntuple file properly.
Definition at line 566 of file NTupleSvc.cpp.
|
protected |
Update directory data.
Definition at line 123 of file NTupleSvc.cpp.
|
virtual |
Write single record to N tuple.
Definition at line 573 of file NTupleSvc.cpp.
|
virtual |
Write single record to N tuple.
Definition at line 601 of file NTupleSvc.cpp.
|
virtual |
Write single record to N tuple.
Definition at line 608 of file NTupleSvc.cpp.
|
protected |
Container of connection points.
Definition at line 126 of file NTupleSvc.h.
|
protected |
Input streams.
Definition at line 124 of file NTupleSvc.h.
|
protected |
Output streams.
Definition at line 122 of file NTupleSvc.h.