35 fxBranch(0), fxEvent(event), fiSplit(splitlevel), fiBufsize(bufsize)
37 GO4TRACE((15,
"TGo4TreeStore::TGo4TreeStore(const char*,...)", __LINE__, __FILE__));
39 TString buffer = TString::Format(
"%s.", name);
47 TGo4Log::Debug(
" TreeStore: Found existing branch %s , reset it ", name);
55 buffer = TString::Format(
"%s%s", filename,
fgcFILESUF);
56 fxFile = TFile::Open(buffer.Data(),
"UPDATE",
"Go4 tree store", compression);
59 TGo4Log::Info(
"TGo4TreeStore: Open file tree %s UPDATE", buffer.Data());
66 TGo4Log::Debug(
" !!! TreeStore creation ERROR: no event structure !!! ");
72 fxBranch(0), fxEvent(event), fiSplit(par->fiSplit), fiBufsize(par->fiBufsize)
74 GO4TRACE((15,
"TGo4TreeStore::TGo4TreeStore(const char*,...)", __LINE__, __FILE__));
76 SetName(par->GetName());
77 TString buffer = TString::Format(
"%s.", par->GetName());
81 fxTree=fxSingletonTree->GetTree();
85 TGo4Log::Debug(
" TreeStore: Found existing branch %s , reset it ", buffer.Data());
90 TGo4Log::Debug(
" TreeStore: Created new branch %s ", buffer.Data());
97 TGo4Log::Debug(
" TreeStore: Set branch to file %s ", buffer.Data());
98 TGo4Log::Info(
"TGo4TreeStore: Open file tree %s UPDATE", buffer.Data());
108 TGo4Log::Debug(
" !!! TreeStore creation ERROR: no event structure !!! ");
114 fxBranch(0), fxEvent(0), fiSplit(0), fiBufsize(0)
116 GO4TRACE((15,
"TGo4TreeStore::TGo4TreeStore()", __LINE__, __FILE__));
123 GO4TRACE((15,
"TGo4TreeStore::~TGo4TreeStore()", __LINE__, __FILE__));
131 GO4TRACE((12,
"TGo4TreeStore::Store(TGo4EventElement*)", __LINE__, __FILE__));
143 TGo4Log::Debug(
" !!! TreeStore::Store ERROR: this event does not match !!! ");
157 GO4TRACE((12,
"TGo4TreeStore::Store(TGo4EventCalibration*)", __LINE__, __FILE__));
159 TString oldname = cali->GetName();
162 cali->Write(0, TObject::kOverwrite);
163 cali->SetName(oldname.Data());
171 GO4TRACE((12,
"TGo4TreeStore::SetCompression(Int_t)", __LINE__, __FILE__));
172 fxFile->SetCompressionLevel(comp);
static TGo4MainTree * Instance()
TGo4MainTree * fxSingletonTree
void SetCompression(Int_t comp)
static const char * fgcFILESUF
virtual void Clear(Option_t *t="")
Int_t GetCurrentIndex() const
virtual Int_t Store(TGo4EventElement *event)
TGo4EventElement * fxEvent
static void Info(const char *text,...)
static void Debug(const char *text,...)