31 GO4TRACE((15,
"TXXXStore::TXXXStore()", __LINE__, __FILE__));
38 GO4TRACE((15,
"TXXXStore::TXXXStore(TGo4UserStoreParameter* par)", __LINE__, __FILE__));
41 TGo4Log::Error(
"TGo4UserStoreParameter is not specified in TXXXStore constructor");
45 SetName(par->GetName());
47 TString fname = par->GetName();
48 if (!fname.Contains(
".root")) fname.Append(
".root");
50 fxFile = TFile::Open(fname.Data(),
"RECREATE");
51 TGo4Log::Info(
"TXXXStore: Open file %s RECREATE", fname.Data());
53 fxTree =
new TTree(
"Custom",
"Custom go4 store");
62 fxTree->Write(
nullptr, TObject::kOverwrite);
71 GO4TRACE((12,
"TXXXStore::Store(TGo4EventElement *)", __LINE__, __FILE__));
74 if (!custom)
return 1;
The abstract base class for the data elements of which the unpacked events (or detector structure dat...
static void Info(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 1.
static void Error(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 3.
Bool_t fbBranchExists
current event
Int_t Store(TGo4EventElement *event) override
Stores eventelement event into the storage implementation.