- Timestamp:
- 05/27/11 11:41:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r10845 r10852 97 97 for (vector<string>::const_iterator it=addr.begin(); it!=addr.end(); it++) 98 98 { 99 g_ip[i].port = 5000+i; 100 99 g_ip[i].port = 5000; 101 100 memset(g_ip[i].addr, 0, 100); 102 101 strncpy(g_ip[i].addr, it->c_str(), 99); 103 102 104 103 strcpy(g_ip[i].addr, "127.0.0.1"); 105 106 104 i++; 107 105 } … … 147 145 // -------------- Mapped event builder callbacks ------------------ 148 146 149 int runOpen(uint32_t, RUN_HEAD *, size_t) 150 { 147 int runOpen(uint32_t runid, RUN_HEAD *h, size_t) 148 { 149 cout << "OPEN_FILE #" << runid << endl; 150 cout << " Ver= " << h->Version << endl; 151 cout << " Typ= " << h->RunType << endl; 152 cout << " Nb = " << h->NBoard << endl; 153 cout << " Np = " << h->NPix << endl; 154 cout << " NTm= " << h->NTm << endl; 155 cout << " roi= " << h->Nroi << endl; 156 151 157 return 0; 152 158 } 153 159 154 int runWrite(int, EVENT *, size_t) 155 { 160 int runWrite(int, EVENT *e, size_t) 161 { 162 cout << "WRITE_EVENT" << endl; 163 164 cout << " Evt=" << e->EventNum << endl; 165 cout << " Typ=" << e->TriggerType << endl; 166 cout << " roi=" << e->Roi << endl; 167 cout << " trg=" << e->SoftTrig << endl; 168 cout << " tim=" << e->PCTime << endl; 169 156 170 return 0; 157 171 } … … 159 173 int runClose(int, RUN_TAIL *, size_t) 160 174 { 175 cout << "CLOSE_RUN" << endl; 161 176 return 0; 162 177 }
Note:
See TracChangeset
for help on using the changeset viewer.