16int main(
int argc,
char* argv[])
24 int choice1 = atoi(argv[1]);
25 int choice2 = atoi(argv[2]);
37 cout <<
"ERROR: Cannot open CODA data" << endl;
47 TString mycomputer(
"129.57.32.30");
52 if (coda->
codaOpen(mycomputer, mysession, mymode) != 0) {
53 cout <<
"ERROR: Cannot open ET connection" << endl;
56 }
else if (choice2 == 2) {
59 coda =
new THaEtClient(mycomputer, mysession, mymode);
65 unsigned NUMEVT=20000;
67 for (
unsigned iev = 0; iev < NUMEVT; iev++) {
73 if (choice1 == 1) cout <<
"End of CODA file. Bye bye." << endl;
74 if (choice1 == 2) cout <<
"CODA/ET not running. Bye bye." << endl;
76 cout <<
"ERROR: codaRread status = " << hex << status << endl;
void do_something(UInt_t *data)