47 SetName(par->GetName());
52 TGo4Log::Error(
"TYYYEventSource constructor with zero parameter!");
72 return cl->InheritsFrom(TYYYRawEvent::Class());
78 if (evnt==0)
return kFALSE;
80 char sbuf[1024], buffer[1024];
84 fxFile->getline(sbuf,
sizeof(sbuf),
'\n' );
88 SetErrMess(Form(
"End of input file %s", GetName()));
92 }
while(strstr(sbuf,
"#") || strstr(sbuf,
"!") );
99 const char* cursor = sbuf;
102 scanresult = sscanf(cursor,
"%s",buffer);
105 if(scanresult!=0 && scanresult!=-1) {
106 evnt->
fdData[numval] = atof(buffer);
110 cursor+=strlen(buffer)+1;
112 }
while( scanresult!=0 && scanresult!=-1);
131 fxFile =
new std::ifstream(GetName());
135 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,...)