Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

NTupleSvc Class Reference

Gaudi N tuple service definition definition. More...

#include <NTupleSvc.h>

Inheritance diagram for NTupleSvc:

DataSvc INTupleSvc IDataSourceMgr List of all members.

Public Methods

virtual StatusCode initialize ()
 DataSvc overrides: Initialize the service. More...

virtual StatusCode finalize ()
 DataSvc overrides: stop the service. More...

virtual StatusCode queryInterface (const IID& riid, void** ppvInterface)
 DataSvc overrides: Query interface. More...

virtual StatusCode loadObject (IDataDirectory* pDirectory)
 DataSvc overrides: Load data object. 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...


Protected Types

typedef std::vector< std::string > DBaseEntries
typedef std::map<std::string,
IConversionSvc*> 
Connections
typedef std::pair<std::string,
std::string> 
Prop

Protected Methods

 NTupleSvc (const std::string& name, ISvcLocator* svc)
 Standard Constructor. More...

virtual ~NTupleSvc ()
 Standard Destructor. More...

StatusCode connectToHistogramPersistency (const std::string& nam, const std::string& svtTyp, const std::vector<Prop>& props, IConversionSvc*& pSvc)
 Create conversion service using histogram persistency. More...

StatusCode createService (const std::string& nam, const std::string& svtTyp, const std::vector<Prop>& props, IConversionSvc*& pSvc)
 Create conversion service. More...

StatusCode attachTuple (const std::string& filename, const std::string& logname, const char typ, unsigned char 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...

std::string m_storeName
 Top level store name. More...

Connections m_connections
 Container of connection points. More...


Friends

class  SvcFactory< NTupleSvc >

Detailed Description

Gaudi N tuple service definition definition.

Description: See the Interface definition files for more detailed documentation of the implementing class.

Dependencies:

History :

    +---------+----------------------------------------------+--------+
    |    Date |                 Comment                      | Who    |
    +---------+----------------------------------------------+--------+
    | 21/04/99| Initial version.                             | MF     |
    +---------+----------------------------------------------+--------+
    
Author: M.Frank Version: 1.0

Definition at line 47 of file NTupleSvc.h.


Member Typedef Documentation

typedef std::map<std::string, IConversionSvc*> NTupleSvc::Connections [protected]
 

Definition at line 55 of file NTupleSvc.h.

typedef std::vector< std::string > NTupleSvc::DBaseEntries [protected]
 

Definition at line 54 of file NTupleSvc.h.

typedef std::pair<std::string,std::string> NTupleSvc::Prop [protected]
 

Definition at line 56 of file NTupleSvc.h.

Referenced by connect().


Constructor & Destructor Documentation

NTupleSvc::NTupleSvc ( const std::string & name,
ISvcLocator * svc ) [protected]
 

Standard Constructor.

Definition at line 59 of file NTupleSvc.cpp.

NTupleSvc::~NTupleSvc ( ) [protected, virtual]
 

Standard Destructor.

Definition at line 68 of file NTupleSvc.cpp.


Member Function Documentation

NTuple::Tuple * NTupleSvc::access ( const std::string & fullPath,
const std::string & filename ) [virtual]
 

Access N tuple on disk.

Definition at line 606 of file NTupleSvc.cpp.

StatusCode NTupleSvc::attachTuple ( const std::string & filename,
const std::string & logname,
const char typ,
unsigned char t ) [protected]
 

Attach output/input file.

Definition at line 535 of file NTupleSvc.cpp.

Referenced by connect().

NTuple::Tuple * NTupleSvc::book ( DataObject * pParent,
long id,
const CLID & type,
const std::string & title ) [virtual]
 

Book Ntuple and register it with the data store.

Definition at line 499 of file NTupleSvc.cpp.

NTuple::Tuple * NTupleSvc::book ( DataObject * pParent,
const std::string & relPath,
const CLID & type,
const std::string & title ) [virtual]
 

Book Ntuple and register it with the data store.

Definition at line 471 of file NTupleSvc.cpp.

NTuple::Tuple * NTupleSvc::book ( const std::string & dirPath,
long id,
const CLID & type,
const std::string & title ) [virtual]
 

Book Ntuple and register it with the data store.

Definition at line 465 of file NTupleSvc.cpp.

NTuple::Tuple * NTupleSvc::book ( const std::string & dirPath,
const std::string & relPath,
const CLID & type,
const std::string & title ) [virtual]
 

Book Ntuple and register it with the data store.

Definition at line 457 of file NTupleSvc.cpp.

NTuple::Tuple * NTupleSvc::book ( const std::string & fullPath,
const CLID & type,
const std::string & title ) [virtual]
 

Book Ntuple and register it with the data store.

Definition at line 443 of file NTupleSvc.cpp.

Referenced by book().

StatusCode NTupleSvc::connect ( const std::string & ident,
std::string & logname ) [virtual]
 

Add file to list I/O list.

Definition at line 244 of file NTupleSvc.cpp.

StatusCode NTupleSvc::connect ( const std::string & ident ) [virtual]
 

Add file to list I/O list.

Definition at line 239 of file NTupleSvc.cpp.

Referenced by initialize().

StatusCode NTupleSvc::connectToHistogramPersistency ( const std::string & nam,
const std::string & svtTyp,
const std::vector< Prop >& props,
IConversionSvc *& pSvc ) [protected]
 

Create conversion service using histogram persistency.

Definition at line 364 of file NTupleSvc.cpp.

Referenced by connect().

StatusCode NTupleSvc::create ( const CLID & typ,
const std::string & title,
NTuple::Tuple *& refpTuple ) [virtual]
 

Create requested N tuple (Hide constructor).

Definition at line 425 of file NTupleSvc.cpp.

Referenced by book().

NTuple::Directory * NTupleSvc::createDirectory ( const std::string & fullPath ) [virtual]
 

Create Ntuple directory and register it with the data store.

Definition at line 564 of file NTupleSvc.cpp.

NTuple::Directory * NTupleSvc::createDirectory ( const std::string & dirPath,
const std::string & title ) [virtual]
 

Create Ntuple directory and register it with the data store.

Definition at line 528 of file NTupleSvc.cpp.

NTuple::Directory * NTupleSvc::createDirectory ( const std::string & dirPath,
long id ) [virtual]
 

Create Ntuple directory and register it with the data store.

Definition at line 522 of file NTupleSvc.cpp.

NTuple::Directory * NTupleSvc::createDirectory ( DataObject * pParent,
long id ) [virtual]
 

Create Ntuple directory and register it with the data store.

Definition at line 516 of file NTupleSvc.cpp.

NTuple::Directory * NTupleSvc::createDirectory ( DataObject * pParent,
const std::string & title ) [virtual]
 

Create Ntuple directory and register it with the data store.

Definition at line 505 of file NTupleSvc.cpp.

Referenced by book(), and createDirectory().

StatusCode NTupleSvc::createService ( const std::string & nam,
const std::string & svtTyp,
const std::vector< Prop >& props,
IConversionSvc *& pSvc ) [protected]
 

Create conversion service.

Definition at line 332 of file NTupleSvc.cpp.

Referenced by connect().

StatusCode NTupleSvc::disconnect ( const std::string & nam ) [virtual]
 

Close open connection.

Definition at line 185 of file NTupleSvc.cpp.

StatusCode NTupleSvc::disconnectAll ( ) [virtual]
 

Close all open connections.

Definition at line 201 of file NTupleSvc.cpp.

Referenced by finalize().

StatusCode NTupleSvc::finalize ( ) [virtual]
 

DataSvc overrides: stop the service.

Definition at line 215 of file NTupleSvc.cpp.

StatusCode NTupleSvc::initialize ( ) [virtual]
 

DataSvc overrides: Initialize the service.

Definition at line 72 of file NTupleSvc.cpp.

bool NTupleSvc::isConnected ( const std::string & identifier ) const [virtual]
 

Check if a datasource is connected.

Definition at line 99 of file NTupleSvc.cpp.

StatusCode NTupleSvc::loadObject ( IDataDirectory * pDirectory ) [virtual]
 

DataSvc overrides: Load data object.

Definition at line 104 of file NTupleSvc.cpp.

StatusCode NTupleSvc::queryInterface ( const IID & riid,
void ** ppvInterface ) [virtual]
 

DataSvc overrides: Query interface.

Definition at line 224 of file NTupleSvc.cpp.

StatusCode NTupleSvc::readRecord ( DataObject * pParent,
const std::string & relPath ) [virtual]
 

Read single record from N tuple.

Definition at line 713 of file NTupleSvc.cpp.

StatusCode NTupleSvc::readRecord ( const std::string & fullPath ) [virtual]
 

Read single record from N tuple.

Definition at line 703 of file NTupleSvc.cpp.

StatusCode NTupleSvc::readRecord ( NTuple::Tuple * tuple ) [virtual]
 

Read single record from N tuple.

Definition at line 689 of file NTupleSvc.cpp.

Referenced by readRecord().

StatusCode NTupleSvc::save ( DataObject * pParent,
const std::string & relPath ) [virtual]
 

Save N tuple to disk. Must be called in order to close the ntuple file properly.

Definition at line 641 of file NTupleSvc.cpp.

StatusCode NTupleSvc::save ( NTuple::Tuple * tuple ) [virtual]
 

Save N tuple to disk. Must be called in order to close the ntuple file properly.

Definition at line 623 of file NTupleSvc.cpp.

StatusCode NTupleSvc::save ( const std::string & fullPath ) [virtual]
 

Save N tuple to disk. Must be called in order to close the ntuple file properly.

Definition at line 612 of file NTupleSvc.cpp.

Referenced by save().

StatusCode NTupleSvc::updateDirectories ( ) [protected]
 

Update directory data.

Definition at line 135 of file NTupleSvc.cpp.

Referenced by finalize().

StatusCode NTupleSvc::writeRecord ( DataObject * pParent,
const std::string & relPath ) [virtual]
 

Write single record to N tuple.

Definition at line 679 of file NTupleSvc.cpp.

StatusCode NTupleSvc::writeRecord ( const std::string & fullPath ) [virtual]
 

Write single record to N tuple.

Definition at line 669 of file NTupleSvc.cpp.

StatusCode NTupleSvc::writeRecord ( NTuple::Tuple * tuple ) [virtual]
 

Write single record to N tuple.

Definition at line 651 of file NTupleSvc.cpp.

Referenced by writeRecord().


Friends And Related Function Documentation

class SvcFactory [friend]
 

Definition at line 53 of file NTupleSvc.h.


Member Data Documentation

Connections NTupleSvc::m_connections [protected]
 

Container of connection points.

Definition at line 146 of file NTupleSvc.h.

DBaseEntries NTupleSvc::m_input [protected]
 

Input streams.

Definition at line 142 of file NTupleSvc.h.

DBaseEntries NTupleSvc::m_output [protected]
 

Output streams.

Definition at line 140 of file NTupleSvc.h.

std::string NTupleSvc::m_storeName [protected]
 

Top level store name.

Definition at line 144 of file NTupleSvc.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:22:34 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000