#include <rTreeBase.h>
Inheritance diagram for rTreeBase:
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 |
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!.
open()
and close()
are overwriten from rTFileBase, in order to set the address of the main branch of the tree to the template class rCore. read()
, write()
from/to a ROOT-tree.
Definition at line 30 of file rTreeBase.h.
|
constructor: it need the main branch class "rEvent" template.
Definition at line 36 of file rTreeBase.h.
|
|
Definition at line 49 of file rTreeBase.h.
|
clear the member variables.
Reimplemented from rTFileBase.
Definition at line 65 of file rTreeBase.cpp.
|
|
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.
|
read current event data from the root-tree into the main branch.
Reimplemented from IOfileVI.
Definition at line 26 of file rTreeBase.cpp.
|
skip some events when reading.
Reimplemented from IOfileVI.
Definition at line 57 of file rTreeBase.h.
|
write current event from the main branch into the root-tree.
Reimplemented from IOfileVI.
Definition at line 46 of file rTreeBase.cpp.
|
|
|
Definition at line 72 of file rTreeBase.h.
|
main branch class of the tree (template to be instanciated by the user).
Definition at line 65 of file rTreeBase.h.
|