Changeset 12831
- Timestamp:
- 02/03/12 12:43:23 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilder.c
r12759 r12831 790 790 //(and make sure multiple calls do no harm ....) 791 791 792 int headmem = 0;792 // int headmem = 0; 793 793 int evid; 794 size_t freemem = 0;794 // size_t freemem = 0; 795 795 796 796 evid = mBuffer[i].evNum; 797 freemem = mBuffer[i].evtLen;797 // freemem = mBuffer[i].evtLen; 798 798 //ETIENNE 799 799 ETI_Free(evid, i); … … 807 807 mBuffer[i].buffer = NULL; 808 808 //END ETIENNE 809 headmem = NBOARDS * sizeof (PEVNT_HEADER);809 // headmem = NBOARDS * sizeof (PEVNT_HEADER); 810 810 mBuffer[i].evNum = mBuffer[i].nRoi = -1; 811 811 mBuffer[i].runNum = 0; … … 884 884 int32_t jrd; 885 885 uint gi_SecTime; //time in seconds 886 int boardId, roi[9], drs, px, src, pixS, pixH,pixC, pixR, tmS;886 int boardId, roi[9], drs, px, src, pixS, /*pixH,*/ pixC, pixR, tmS; 887 887 888 888 int goodhed = 0; … … 903 903 factOut (kInfo, -1, str); 904 904 905 int cpu = 7; //read thread905 // int cpu = 7; //read thread 906 906 // cpu_set_t mask; 907 907 … … 909 909 // CPU_ZERO (&mask); 910 910 /* CPU_SET sets only the bit corresponding to cpu. */ 911 cpu = 7;911 // cpu = 7; 912 912 // CPU_SET (cpu, &mask); 913 913 … … 1272 1272 //get index into mBuffer for this event (create if needed) 1273 1273 1274 int actid;1275 if (g_useFTM > 0)1276 actid = rd[i].evtID;1277 else1278 actid = rd[i].ftmID;1274 // int actid; 1275 // if (g_useFTM > 0) 1276 // actid = rd[i].evtID; 1277 // else 1278 // actid = rd[i].ftmID; 1279 1279 1280 1280 evID = mBufEvt (rd[i].evtID, rd[i].runID, roi, i, … … 1346 1346 for (px = 0; px < 9; px++) { //different sort in FAD board..... 1347 1347 for (drs = 0; drs < 4; drs++) { 1348 pixH = rd[i].rBuf->S[src++]; // ID1348 // pixH = rd[i].rBuf->S[src++]; // ID 1349 1349 pixC = rd[i].rBuf->S[src++]; // start-cell 1350 1350 pixR = rd[i].rBuf->S[src++]; // roi … … 1899 1899 1900 1900 pthread_t thread[100]; 1901 int th_ret[100];1901 // int th_ret[100]; 1902 1902 1903 1903 for (long long k = 0; k < gi_maxProc; k++) { 1904 th_ret[k] =pthread_create (&thread[k], NULL, subProc, (void *) k);1904 /*th_ret[k] =*/ pthread_create (&thread[k], NULL, subProc, (void *) k); 1905 1905 } 1906 1906 … … 2498 2498 { 2499 2499 2500 int i, j, imax, status, th_ret[50];2500 int i, /*j,*/ imax, status/*, th_ret[50]*/; 2501 2501 pthread_t thread[50]; 2502 2502 struct timespec xwait; … … 2537 2537 2538 2538 i = 0; 2539 th_ret[i] =pthread_create (&thread[i], NULL, readFAD, NULL);2539 /*th_ret[i] =*/ pthread_create (&thread[i], NULL, readFAD, NULL); 2540 2540 i++; 2541 th_ret[i] =pthread_create (&thread[i], NULL, procEvt, NULL);2541 /*th_ret[i] =*/ pthread_create (&thread[i], NULL, procEvt, NULL); 2542 2542 i++; 2543 th_ret[i] =pthread_create (&thread[i], NULL, writeEvt, NULL);2543 /*th_ret[i] =*/ pthread_create (&thread[i], NULL, writeEvt, NULL); 2544 2544 i++; 2545 2545 imax = i; … … 2567 2567 //wait for all threads to finish 2568 2568 for (i = 0; i < imax; i++) { 2569 j =pthread_join (thread[i], (void **) &status);2569 /*j =*/ pthread_join (thread[i], (void **) &status); 2570 2570 } 2571 2571 -
trunk/FACT++/src/EventBuilderWrapper.h
r12758 r12831 1131 1131 array<T, 42> arr; 1132 1132 1133 bool rc = true;1133 // bool rc = true; 1134 1134 for (int i=0; i<40; i++) 1135 1135 { … … 1158 1158 max = ref; 1159 1159 1160 if (*val!=*ref)1161 rc = false;1160 // if (*val!=*ref) 1161 // rc = false; 1162 1162 } 1163 1163
Note:
See TracChangeset
for help on using the changeset viewer.