44 SetName(par->GetName());
49 TGo4Log::Error(
"TYYYEventSource constructor with zero parameter!");
69 return cl->InheritsFrom(TYYYRawEvent::Class());
75 if (evnt==0)
return kFALSE;
77 char sbuf[1024], buffer[1024];
81 fxFile->getline(sbuf,
sizeof(sbuf),
'\n' );
85 SetErrMess(Form(
"End of input file %s", GetName()));
89 }
while(strstr(sbuf,
"#") || strstr(sbuf,
"!") );
96 const char* cursor = sbuf;
99 scanresult = sscanf(cursor,
"%s",buffer);
102 if(scanresult!=0 && scanresult!=-1) {
103 evnt->
fdData[numval] = atof(buffer);
107 cursor+=strlen(buffer)+1;
109 }
while( scanresult!=0 && scanresult!=-1);
128 fxFile =
new std::ifstream(GetName());
132 SetErrMess(Form(
"Eror opening user file:%s",GetName()));
void SetArgs(const char *arg)
void ReAllocate(Int_t newsize)
virtual Bool_t BuildEvent(TGo4EventElement *dest)
void SetCreateStatus(Int_t status)
virtual ~TYYYEventSource()
void SetErrMess(const char *txt)
virtual Bool_t CheckEventClass(TClass *cl)
const char * GetExpression() const
void SetEventStatus(Int_t status)
static void Error(const char *text,...)
static void Info(const char *text,...)