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

rTreeBase Class Reference

A template class with IOfileVI interface to use a ROOT-Tree. More...

#include <rTreeBase.h>

Inheritance diagram for rTreeBase:

rTFileBase IOfileVI List of all members.

Public Methods

 rTreeBase (rCore* r, char* name)
 constructor: it need the main branch class "rEvent" template.

virtual ~rTreeBase ()
 destructor.

virtual void open ()
 open a (read or write) root-tree file and (load or create) the tree. More...

virtual void clear ()
 clear the member variables.

rCore* core ()
 returns the main branch class.

char* className ()
void writeEvent ()
 write current event from the main branch into the root-tree.

void readEvent ()
 read current event data from the root-tree into the main branch.

void skipEvent ()
 skip some events when reading.


Protected Attributes

TTree* m_RTree
 pointer to the root-tree.

rCore* m_core
 main branch class of the tree (template to be instanciated by the user).

UInt_t bufsize
 root file buffer size.

Int_t split
 root file split level.

char* m_class


Detailed Description

template<class rCore> class rTreeBase

A template class with IOfileVI interface to use a ROOT-Tree.

rTreeBase has all the IOfileVI operations defined (open, close, readEvent, writeEvent, etc).
rTreeBase class needs the main branch class of the ROOT tree as a template argument. The name of the class is also needed by ROOT. The template and its name are forced arguments of the constructor!.

Definition at line 30 of file rTreeBase.h.


Constructor & Destructor Documentation

template<class rCore>
rTreeBase<rCore>::rTreeBase<rCore> (
rCore * r,
char * name )

constructor: it need the main branch class "rEvent" template.

Definition at line 36 of file rTreeBase.h.

template<class rCore>
rTreeBase<rCore>::~rTreeBase<rCore> ( ) [inline, virtual]

destructor.

Definition at line 38 of file rTreeBase.h.


Member Function Documentation

template<class rCore>
char * rTreeBase<rCore>::className ( ) [inline]

Definition at line 49 of file rTreeBase.h.

template<class rCore>
void rTreeBase<rCore>::clear ( ) [inline, virtual]

clear the member variables.

Reimplemented from rTFileBase.

Definition at line 65 of file rTreeBase.cpp.

template<class rCore>
rCore * rTreeBase<rCore>::core ( ) [inline]

returns the main branch class.

Definition at line 47 of file rTreeBase.h.

template<class rCore>
void rTreeBase<rCore>::open ( ) [inline, virtual]

open a (read or write) root-tree file and (load or create) the tree.

It set the branchAddess of the tree to the main branch class "rEvent"

Reimplemented from rTFileBase.

Definition at line 7 of file rTreeBase.cpp.

template<class rCore>
void rTreeBase<rCore>::readEvent ( ) [virtual]

read current event data from the root-tree into the main branch.

Reimplemented from IOfileVI.

Definition at line 26 of file rTreeBase.cpp.

template<class rCore>
void rTreeBase<rCore>::skipEvent ( ) [inline, virtual]

skip some events when reading.

Reimplemented from IOfileVI.

Definition at line 57 of file rTreeBase.h.

template<class rCore>
void rTreeBase<rCore>::writeEvent ( ) [virtual]

write current event from the main branch into the root-tree.

Reimplemented from IOfileVI.

Definition at line 46 of file rTreeBase.cpp.


Member Data Documentation

template<class rCore>
UInt_t rTreeBase<rCore>::bufsize [protected]

root file buffer size.

Definition at line 68 of file rTreeBase.h.

template<class rCore>
TTree * rTreeBase<rCore>::m_RTree [protected]

pointer to the root-tree.

Definition at line 62 of file rTreeBase.h.

template<class rCore>
char * rTreeBase<rCore>::m_class [protected]

Definition at line 72 of file rTreeBase.h.

template<class rCore>
rCore * rTreeBase<rCore>::m_core [protected]

main branch class of the tree (template to be instanciated by the user).

Definition at line 65 of file rTreeBase.h.

template<class rCore>
Int_t rTreeBase<rCore>::split [protected]

root file split level.

Definition at line 70 of file rTreeBase.h.


The documentation for this class was generated from the following files:
Generated at Fri Aug 18 12:57:42 2000 for centella framework by doxygen 1.1.3 written by Dimitri van Heesch, © 1997-2000