Ignore:
Timestamp:
04/15/13 12:07:44 (11 years ago)
Author:
tbretz
Message:
Added a missing factOut; replaced bzero by memset (bzero is deprecated); improved the meaning of some ii[2] output
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilder.c

    r15337 r15340  
    22032203                                  "procEvt: Finished run since new one opened %d",
    22042204                                  runCtrl[j1].runId);
     2205                        factOut (kInfo, -1, str);
    22052206                        runFinish1 (runCtrl[j1].runId);
    22062207                     }
     
    22802281                     if (mBuffer[id].fEvent->StartPix[ip] == -1) {
    22812282                        dest = ip * roi;
    2282                         bzero (&mBuffer[id].fEvent->Adc_Data[dest], roi * 2);
     2283                        memset (&mBuffer[id].fEvent->Adc_Data[dest], 0, roi * 2);
    22832284                     }
    22842285                  }
     
    22872288                     if (mBuffer[id].fEvent->StartTM[it] == -1) {
    22882289                        dest = it * roi + NPIX * roi;
    2289                         bzero (&mBuffer[id].fEvent->Adc_Data[dest], roi * 2);
     2290                        memset (&mBuffer[id].fEvent->Adc_Data[dest], 0, roi * 2);
    22902291                     }
    22912292                  }
     
    26592660{
    26602661            if (runCtrl[j].runId == gi_myRun)
    2661                gi_myRun = g_actTime;
     2662                gi_myRun = g_actTime;
     2663
    26622664            int ii = 0;
    26632665            if (runCtrl[j].closeTime < g_actTime)
    2664                ii = 2;
    2665             else if (runCtrl[j].lastTime < g_actTime - 300)
    2666                ii = 3;
    2667             else if (runCtrl[j].maxEvt <= runCtrl[j].actEvt)
    2668                ii = 4;
     2666               ii |= 1;  // = 2
     2667            /*else*/ if (runCtrl[j].lastTime < g_actTime - 300)
     2668               ii |= 2;  // = 3
     2669            /*else*/ if (runCtrl[j].maxEvt <= runCtrl[j].actEvt)
     2670               ii |= 4;  // = 4
    26692671
    26702672            if (runCtrl[j].procId == 0) {
Note: See TracChangeset for help on using the changeset viewer.