#include <TGo4FileStore.h>
Inheritance diagram for TGo4FileStore:
Public Member Functions | |
TGo4FileStore () | |
TGo4FileStore (const char *name, Int_t splitlevel=1, Int_t compression=1, Bool_t overwrite=kFALSE, Int_t autosavesize=10000000, Int_t bufsize=64000) | |
TGo4FileStore (TGo4FileStoreParameter *par) | |
virtual | ~TGo4FileStore () |
virtual Int_t | Store (TGo4EventElement *event) |
Stores eventelement event into the storage implementation. | |
virtual Int_t | Store (TGo4Parameter *cali) |
Saves a calibration object correllated with the current event into the storage. | |
virtual Int_t | Store (TGo4Condition *conny) |
Saves a condition correllated with the current event into the storage. | |
virtual Int_t | Store (TGo4Fitter *fitter) |
Saves a fitter correllated with the current event into the storage. | |
virtual Int_t | Store (TFolder *fold) |
Saves a complete objects folder correllated with the current event into the storage. | |
void | SetCompression (Int_t comp) |
Set the file compression level. | |
void | SetAutoSave (Int_t bytesinterval) |
Set the tree autosave byte interval. | |
virtual TTree * | GetTree () |
Access to the Tree structure, for framework. | |
Static Public Attributes | |
static const Text_t | fgcEVBRANCHNAME [] = "Go4EventBranch." |
Standard go4 name of the branch used in all treestore and treesource implementations. | |
static const Text_t | fgcFILESUF [] = ".root" |
Standard suffix for file name. | |
static const Text_t | fgcTREESUF [] = "xTree" |
Standard go4 suffix for tree name. | |
static const Int_t | fgiFILESPLITSIZE = 1000000000 |
size in bytes for root tree-filesplit mechanism. | |
Private Member Functions | |
void | WriteToStore (TNamed *ob) |
used by all Store methods to write with referencing event number in name | |
Private Attributes | |
TFile * | fxFile |
TTree * | fxTree |
Bool_t | fbBranchExists |
True if branch already exists. | |
TGo4EventElement * | fxEvent |
Points to event structure to be filled into branch. | |
Int_t | fiSplit |
TBranch splitlevel. | |
Int_t | fiBufsize |
buffer size for tree branch. | |
Int_t | fiFillCount |
counter of filled events. |
In contrast to TreeStore, we do not use the main go4 tree, but an independent one which need not correspond with the entry indices of all previous events. Disadvantage: difficult to correlate to input events; advantage: one entry of this tree may be composed from several subsequent input event entries...
Definition at line 38 of file TGo4FileStore.h.
|
Definition at line 39 of file TGo4FileStore.cxx. References fgiFILESPLITSIZE, fxFile, fxTree, and TRACE. |
|
Definition at line 54 of file TGo4FileStore.cxx. References TGo4Log::Debug(), fgcFILESUF, fgcTREESUF, fgiFILESPLITSIZE, fiFillCount, fxFile, fxTree, and TRACE. |
|
|
Definition at line 170 of file TGo4FileStore.cxx. |
|
Stores eventelement event into the storage implementation. May be a file, a root tree, a socket to a viewer... Implements TGo4EventStore. Definition at line 198 of file TGo4FileStore.cxx. References TGo4Log::Debug(), fbBranchExists, fgcEVBRANCHNAME, TGo4EventStore::fguTXTLEN, fiBufsize, fiFillCount, fiSplit, fxEvent, fxTree, and TRACE. |
|
Saves a calibration object correllated with the current event into the storage.
Reimplemented from TGo4EventStore. Definition at line 261 of file TGo4FileStore.cxx. References WriteToStore(). |
|
Saves a condition correllated with the current event into the storage.
Reimplemented from TGo4EventStore. Definition at line 267 of file TGo4FileStore.cxx. References WriteToStore(). |
|
Saves a fitter correllated with the current event into the storage.
Reimplemented from TGo4EventStore. Definition at line 273 of file TGo4FileStore.cxx. References WriteToStore(). |
|
Saves a complete objects folder correllated with the current event into the storage.
Reimplemented from TGo4EventStore. Definition at line 279 of file TGo4FileStore.cxx. References WriteToStore(). |
|
Set the file compression level. May be changed on the fly. Definition at line 192 of file TGo4FileStore.cxx. |
|
Set the tree autosave byte interval. May be changed on the fly. Definition at line 187 of file TGo4FileStore.cxx. |
|
Access to the Tree structure, for framework.
Reimplemented from TGo4EventStore. Definition at line 90 of file TGo4FileStore.h. References fxTree. |
|
used by all Store methods to write with referencing event number in name
Definition at line 287 of file TGo4FileStore.cxx. References TGo4EventStore::fguTXTLEN, fiFillCount, fxFile, and fxTree. Referenced by Store(). |
|
Standard go4 name of the branch used in all treestore and treesource implementations.
Definition at line 35 of file TGo4FileStore.cxx. Referenced by Store(). |
|
Standard suffix for file name.
Definition at line 34 of file TGo4FileStore.cxx. Referenced by TGo4FileSource::Open(), and TGo4FileStore(). |
|
Standard go4 suffix for tree name.
Definition at line 33 of file TGo4FileStore.cxx. Referenced by TGo4FileStore(). |
|
size in bytes for root tree-filesplit mechanism.
Definition at line 36 of file TGo4FileStore.cxx. Referenced by TGo4FileStore(). |
|
Definition at line 97 of file TGo4FileStore.h. Referenced by SetCompression(), TGo4FileStore(), WriteToStore(), and ~TGo4FileStore(). |
|
Definition at line 99 of file TGo4FileStore.h. Referenced by GetTree(), SetAutoSave(), Store(), TGo4FileStore(), WriteToStore(), and ~TGo4FileStore(). |
|
True if branch already exists. Used for automatic creation of new event branch within Store method. Definition at line 103 of file TGo4FileStore.h. Referenced by Store(). |
|
Points to event structure to be filled into branch.
Definition at line 106 of file TGo4FileStore.h. Referenced by Store(). |
|
TBranch splitlevel.
Definition at line 109 of file TGo4FileStore.h. Referenced by Store(), and TGo4FileStore(). |
|
buffer size for tree branch.
Definition at line 112 of file TGo4FileStore.h. Referenced by Store(), and TGo4FileStore(). |
|
counter of filled events.
Definition at line 115 of file TGo4FileStore.h. Referenced by Store(), TGo4FileStore(), and WriteToStore(). |