16 #include "Riostream.h"
26 GO4TRACE((15,
"TGo4TreeSource::TGo4TreeSource(const char*)",__LINE__, __FILE__));
33 GO4TRACE((15,
"TGo4TreeSource::TGo4TreeSource(TGo4TreeSourceParameter*)",__LINE__, __FILE__));
41 GO4TRACE((15,
"TGo4TreeSource::TGo4TreeSource()",__LINE__, __FILE__));
46 GO4TRACE((15,
"TGo4TreeSource::~TGo4TreeSource()",__LINE__, __FILE__));
51 for(Int_t ix=current; ix< max; ++ix)
56 std::cout <<
"reached end of branch after "<< z <<
" dummy event retrieves"<<std::endl;
62 std::cout <<
"treesource "<< GetName() <<
" is destroyed after "<< z <<
"dummy retrieves."<< std::endl;
67 GO4TRACE((15,
"TGo4TreeSource::Open()",__LINE__, __FILE__));
70 TString buffer = TString::Format(
"%s.",GetName());
76 TGo4Log::Debug(
" TreeSource: Found existing branch %s ", buffer.Data());
78 ThrowError(77,0,
"!!! ERROR: Branch %s not found!!!",buffer.Data());
87 GO4TRACE((12,
"TGo4TreeSource::BuildEvent(TGo4EventElement*)",__LINE__, __FILE__));
90 if(dest==0)
ThrowError(0,22,
"!!! ERROR BuildEvent: no destination event!!!");
91 if(
fxBranch==0)
ThrowError(0,23,
"!!! ERROR BuildEvent: branch was not initialized !!!");
94 if(
fxBranch->GetEntry(current) == 0)
96 ThrowError(0,24,
"!!! ERROR BuildEvent: getting branch entry failed !!!");
static TGo4MainTree * Instance()
void ThrowError(Int_t creastat, Int_t errstat, const char *message,...)
Int_t GetCurrentIndex() const
virtual ~TGo4TreeSource()
TGo4MainTree * fxSingletonTree
Bool_t BuildEvent(TGo4EventElement *dest)
static void Debug(const char *text,...)