GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#include <TGo4FileStore.h>
Public Member Functions | |
TGo4FileStore () | |
TGo4FileStore (const char *name, Int_t splitlevel=1, Int_t compression=1, Bool_t overwrite=kFALSE, Int_t autosavesize=10000, Int_t bufsize=64000) | |
TGo4FileStore (TGo4FileStoreParameter *par) | |
virtual | ~TGo4FileStore () |
virtual Int_t | Store (TGo4EventElement *event) |
virtual Int_t | Store (TGo4Parameter *cali) |
virtual Int_t | Store (TGo4Condition *conny) |
virtual Int_t | Store (TGo4Fitter *fitter) |
virtual Int_t | Store (TFolder *fold) |
void | SetCompression (Int_t comp) |
void | SetAutoSave (Int_t interval) |
virtual TTree * | GetTree () |
Public Member Functions inherited from TGo4EventStore | |
TGo4EventStore () | |
TGo4EventStore (const char *name) | |
virtual | ~TGo4EventStore () |
virtual void | Clear (Option_t *opt="") |
Static Public Member Functions | |
static void | SetMaxTreeSize (Long64_t sz) |
static Long64_t | GetMaxTreeSize () |
Static Public Attributes | |
static const char * | fgcEVBRANCHNAME = "Go4EventBranch." |
static const char * | fgcFILESUF = ".root" |
static const char * | fgcTREESUF = "xTree" |
static Long64_t | fgiFILESPLITSIZE = 1900000000 |
Private Member Functions | |
void | WriteToStore (TNamed *ob) |
Private Attributes | |
TFile * | fxFile |
TTree * | fxTree |
Bool_t | fbBranchExists |
TGo4EventElement * | fxEvent |
Int_t | fiSplit |
Int_t | fiBufsize |
Int_t | fiFillCount |
Additional Inherited Members | |
Protected Types inherited from TGo4EventStore | |
enum | { fguTXTLEN = 256 } |
Event store which fills entries to an own root TTree in a TFile. 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 36 of file TGo4FileStore.h.
TGo4FileStore::TGo4FileStore | ( | ) |
Definition at line 33 of file TGo4FileStore.cxx.
References fgiFILESPLITSIZE, and GO4TRACE.
TGo4FileStore::TGo4FileStore | ( | const char * | name, |
Int_t | splitlevel = 1 , |
||
Int_t | compression = 1 , |
||
Bool_t | overwrite = kFALSE , |
||
Int_t | autosavesize = 10000 , |
||
Int_t | bufsize = 64000 |
||
) |
Definition at line 49 of file TGo4FileStore.cxx.
References TGo4Log::Debug(), fgcFILESUF, fgcTREESUF, fgiFILESPLITSIZE, fiFillCount, fxFile, fxTree, GO4TRACE, and TGo4Log::Info().
TGo4FileStore::TGo4FileStore | ( | TGo4FileStoreParameter * | par | ) |
Definition at line 102 of file TGo4FileStore.cxx.
References TGo4Log::Debug(), TGo4Log::Error(), fgcFILESUF, fgcTREESUF, fgiFILESPLITSIZE, fiBufsize, fiFillCount, fiSplit, fxFile, fxTree, TGo4FileStoreParameter::GetAutosaveSize(), TGo4FileStoreParameter::GetBufsize(), TGo4FileStoreParameter::GetCompression(), TGo4FileStoreParameter::GetSplitlevel(), GO4TRACE, TGo4Log::Info(), and TGo4FileStoreParameter::IsOverwriteMode().
|
virtual |
Definition at line 158 of file TGo4FileStore.cxx.
|
static |
Definition at line 265 of file TGo4FileStore.cxx.
References fgiFILESPLITSIZE.
|
inlinevirtual |
Access to the Tree structure, for framework
Reimplemented from TGo4EventStore.
Definition at line 93 of file TGo4FileStore.h.
References fxTree.
void TGo4FileStore::SetAutoSave | ( | Int_t | interval | ) |
Set the tree autosave interval. May be changed on the fly. for new ROOT versions: interval>0 means number of entries, interval<0: number of bytes
Definition at line 171 of file TGo4FileStore.cxx.
void TGo4FileStore::SetCompression | ( | Int_t | comp | ) |
Set the file compression level. May be changed on the fly.
Definition at line 177 of file TGo4FileStore.cxx.
|
static |
Definition at line 260 of file TGo4FileStore.cxx.
References fgiFILESPLITSIZE.
Referenced by main().
|
virtual |
Stores eventelement event into the storage implementation. May be a file, a root tree, a socket to a viewer...
Implements TGo4EventStore.
Definition at line 183 of file TGo4FileStore.cxx.
References TGo4Log::Debug(), fbBranchExists, fgcEVBRANCHNAME, fiBufsize, fiFillCount, fiSplit, fxEvent, fxTree, GO4TRACE, and TGo4EventElement::makeBranch().
|
virtual |
Saves a calibration object correllated with the current event into the storage.
Reimplemented from TGo4EventStore.
Definition at line 220 of file TGo4FileStore.cxx.
References WriteToStore().
|
virtual |
Saves a condition correllated with the current event into the storage.
Reimplemented from TGo4EventStore.
Definition at line 226 of file TGo4FileStore.cxx.
References WriteToStore().
|
virtual |
Saves a fitter correllated with the current event into the storage.
Reimplemented from TGo4EventStore.
Definition at line 232 of file TGo4FileStore.cxx.
References WriteToStore().
|
virtual |
Saves a complete objects folder correllated with the current event into the storage.
Reimplemented from TGo4EventStore.
Definition at line 238 of file TGo4FileStore.cxx.
References WriteToStore().
|
private |
used by all Store methods to write with referencing event number in name
Definition at line 246 of file TGo4FileStore.cxx.
References fiFillCount, fxFile, and fxTree.
Referenced by Store().
|
private |
True if branch already exists. Used for automatic creation of new event branch within Store method.
Definition at line 106 of file TGo4FileStore.h.
Referenced by Store().
|
static |
Standard go4 name of the branch used in all treestore and treesource implementations.
Definition at line 81 of file TGo4FileStore.h.
Referenced by Store().
|
static |
Standard suffix for file name
Definition at line 84 of file TGo4FileStore.h.
Referenced by TGo4FileSource::ProducesFilesList(), and TGo4FileStore().
|
static |
Standard go4 suffix for tree name
Definition at line 87 of file TGo4FileStore.h.
Referenced by TGo4FileStore().
|
static |
size in bytes for root tree-filesplit mechanism.
Definition at line 90 of file TGo4FileStore.h.
Referenced by GetMaxTreeSize(), SetMaxTreeSize(), and TGo4FileStore().
|
private |
buffer size for tree branch.
Definition at line 115 of file TGo4FileStore.h.
Referenced by Store(), and TGo4FileStore().
|
private |
counter of filled events.
Definition at line 118 of file TGo4FileStore.h.
Referenced by Store(), TGo4FileStore(), and WriteToStore().
|
private |
TBranch splitlevel.
Definition at line 112 of file TGo4FileStore.h.
Referenced by Store(), and TGo4FileStore().
|
private |
Points to event structure to be filled into branch.
Definition at line 109 of file TGo4FileStore.h.
Referenced by Store().
|
private |
Definition at line 100 of file TGo4FileStore.h.
Referenced by SetCompression(), TGo4FileStore(), WriteToStore(), and ~TGo4FileStore().
|
private |
Definition at line 102 of file TGo4FileStore.h.
Referenced by GetTree(), SetAutoSave(), Store(), TGo4FileStore(), WriteToStore(), and ~TGo4FileStore().