35 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 !!! ");
73 GO4TRACE((15,
"TGo4TreeStore::TGo4TreeStore(const char*,...)", __LINE__, __FILE__));
75 SetName(par->GetName());
76 TString buffer = TString::Format(
"%s.", par->GetName());
80 fxTree = fxSingletonTree->GetTree();
84 TGo4Log::Debug(
" TreeStore: Found existing branch %s, reset it ", buffer.Data());
89 TGo4Log::Debug(
" TreeStore: Created new branch %s ", buffer.Data());
95 TGo4Log::Debug(
" TreeStore: Set branch to file %s ", buffer.Data());
96 TGo4Log::Info(
"TGo4TreeStore: Open file tree %s UPDATE", buffer.Data());
106 TGo4Log::Debug(
" !!! TreeStore creation ERROR: no event structure !!! ");
112 GO4TRACE((15,
"TGo4TreeStore::TGo4TreeStore()", __LINE__, __FILE__));
118 GO4TRACE((15,
"TGo4TreeStore::~TGo4TreeStore()", __LINE__, __FILE__));
124 GO4TRACE((12,
"TGo4TreeStore::Store(TGo4EventElement *)", __LINE__, __FILE__));
136 TGo4Log::Debug(
" !!! TreeStore::Store ERROR: this event does not match !!! ");
150 GO4TRACE((12,
"TGo4TreeStore::Store(TGo4Parameter*)", __LINE__, __FILE__));
152 TString oldname = cali->GetName();
155 cali->Write(
nullptr, TObject::kOverwrite);
156 cali->SetName(oldname.Data());
164 GO4TRACE((12,
"TGo4TreeStore::SetCompression(Int_t)", __LINE__, __FILE__));
165 fxFile->SetCompressionLevel(comp);
static TGo4MainTree * Instance()
Int_t Store(TGo4EventElement *event) override
static void Info(const char *text,...) GO4_PRINTF_ARGS
TGo4MainTree * fxSingletonTree
static void Debug(const char *text,...) GO4_PRINTF_ARGS
Int_t GetCurrentIndex() const
void SetCompression(Int_t comp)
static const char * fgcFILESUF
void Clear(Option_t *opt="") override
TGo4EventElement * fxEvent