1 #include <Event/testEventiterator.h>
2 #include <Event/fileEventiterator.h>
3 #include <Event/listEventiterator.h>
4 #include <Event/oncsEventiterator.h>
5 #include <Event/rcdaqEventiterator.h>
47 if ( theState.streamOpened() )
70 cout <<
"Stream in already open" << endl;
88 cout <<
"Stream in already open" << endl;
103 cout <<
"Could not open file " << filename << endl;
118 cout <<
"Stream in already open" << endl;
126 cout <<
"Could not open file " << filename << endl;
142 cout <<
"Stream in already open" << endl;
154 if ( getenv(
"RCDAQHOST") )
156 host = getenv(
"RCDAQHOST");
169 cout <<
"Could not connect to server " << host.c_str() << endl;
184 cout <<
"Stream in already open" << endl;
192 cout <<
"Could not open list " << filename << endl;
216 cout <<
"must be a positive number" << endl;
274 if ( ( nevents > 0 && ++ncount >= nevents) )
296 cout <<
"No input Stream open" << endl;
302 cout <<
"Already running" << endl;
328 cout <<
"No input Stream open" << endl;
353 if ( ( nevents > 0 && ++ncount >= nevents) )
370 cout <<
"Not running" << endl;
387 cout <<
"No input Stream open" << endl;
393 cout <<
"Still running, stop first" << endl;
414 cout <<
"Locked already" << endl;
426 cout <<
"not locked" << endl;
553 cout <<
" -- pmonitor commands" << endl;
555 cout <<
" pstatus() gives a brief status of pmonitor" << endl;
556 cout <<
" pfileopen(\"filename\") opens a PRDF file" << endl;
557 cout <<
" plistopen(\"filename\") opens a file with a list of prdfs" << endl;
558 cout <<
" ptestopen() opens a test input stream" << endl;
559 cout <<
" pclose() closes the open stream" << endl;
560 cout <<
" pstart(nevt) starts event loop for nevt events in background (nevt=0 -> all events)" << endl;
561 cout <<
" prun(nevt) run nevt events (nevt=0 -> all events)" << endl;
563 cout <<
" pidentify() identify the next event read from the data stream" << endl;
564 cout <<
" pidentify(5) identify the next 5 events read from the data stream" << endl;
565 cout <<
" pidentify(0) identify all events read from the data stream (lots of output!)" << endl;
566 cout <<
" pclearidentify() resets pidentify(0)" << endl;
569 cout <<
" pupdate(TCanvas *c1, int seconds) starts periodic updates of Canvas c1" << endl;
570 cout <<
" pendupdate(TCanvas *c1) stop updating Canvas c1" << endl;
571 cout <<
" pendupdate() stop updating all Canvases that are updating" << endl;
575 cout <<
"--" << endl;
605 TVirtualPad *myPad = ta->
thePad;
611 time_t last_time =
time(0) + my_refreshinterval + 1;
629 if ( x - last_time > my_refreshinterval)
641 void pupdate(TVirtualPad * pad,
const unsigned int refresh)
658 cout <<
"this is implemented in root v6 only" << endl;
669 cout <<
"this is implemented in root v6 only" << endl;
680 while ( ! ( s == myPad->cd(i)) )