Changeset 16579 for trunk/FACT++/src
- Timestamp:
- 06/02/13 15:48:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilder.h
r16569 r16579 115 115 116 116 timeval time; 117 uint8_t Errors[4];118 117 119 118 PEVNT_HEADER *FADhead; // Pointer to the whole allocated memory … … 130 129 { 131 130 //flag all boards as unused 132 std::fill(board, board+NBOARDS, -1);131 std::fill(board, board+NBOARDS, -1); 133 132 } 134 133 /* … … 177 176 fEvent = reinterpret_cast<EVENT*>(FADhead+NBOARDS); 178 177 179 memset( fEvent->Adc_Data, 0, (NPIX+NTMARK)*2*nRoi);178 memset(FADhead, 0, (NPIX+NTMARK)*2*nRoi+NBOARDS*sizeof(PEVNT_HEADER)+sizeof(EVENT)); 180 179 181 180 //flag all pixels as unused, flag all TMark as unused … … 183 182 std::fill(fEvent->StartTM, fEvent->StartTM +NTMARK, -1); 184 183 185 fEvent->SoftTrig = 0;186 184 fEvent->Roi = nRoi; 187 185 fEvent->RoiTM = nRoiTM;
Note:
See TracChangeset
for help on using the changeset viewer.