Ignore:
Timestamp:
09/13/11 14:45:19 (13 years ago)
Author:
tbretz
Message:
Updated to the latest event builder version which includes runEnd and runStart to control the memory of the processing threads.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilderWrapper.h

    r12070 r12091  
    735735    array<uint16_t,2> fVecRoi;
    736736
    737     int eventCheck(uint32_t runNr, PEVNT_HEADER *fadhd, EVENT *event)
     737    int eventCheck(uint32_t runNr, PEVNT_HEADER *fadhd, EVENT *event, int iboard)
    738738    {
    739739        /*
     
    908908    }
    909909
    910     int subProcEvt(int threadID, PEVNT_HEADER *fadhd, EVENT *event, int8_t */*buffer*/)
     910    int subProcEvt(int threadID, PEVNT_HEADER *fadhd, EVENT *event, int16_t iboard, void */*buffer*/)
    911911    {
    912912        switch (threadID)
     
    12921292    }
    12931293
     1294    // -----
     1295
     1296    void *runStart(uint32_t irun, RUN_HEAD *runhd, size_t len)
     1297    {
     1298        return NULL;
     1299    }
     1300
     1301    int subProcEvt(int threadID, PEVNT_HEADER *fadhd, EVENT *event, int16_t mboard, void *runPtr)
     1302    {
     1303        return EventBuilderWrapper::This->subProcEvt(threadID, fadhd, event, mboard, runPtr);
     1304    }
     1305
     1306    int runEnd(uint32_t, void *runPtr)
     1307    {
     1308        return 0;
     1309    }
     1310
     1311    // -----
     1312
     1313    int eventCheck(uint32_t runNr, PEVNT_HEADER *fadhd, EVENT *event, int mboard)
     1314    {
     1315        return EventBuilderWrapper::This->eventCheck(runNr, fadhd, event, mboard);
     1316    }
     1317
     1318    void gotNewRun(int runnr, PEVNT_HEADER *headers)
     1319    {
     1320        return EventBuilderWrapper::This->gotNewRun(runnr, headers);
     1321    }
     1322
     1323    // -----
     1324
    12941325    void factOut(int severity, int err, const char *message)
    12951326    {
     
    13071338    }
    13081339
     1340    // ------
     1341
    13091342    void debugHead(int socket, int/*board*/, void *buf)
    13101343    {
     
    13231356        EventBuilderWrapper::This->debugRead(isock, ibyte, event, ftmevt, runno, state, tsec, tusec);
    13241357    }
    1325 
    1326     int eventCheck(uint32_t runNr, PEVNT_HEADER *fadhd, EVENT *event)
    1327     {
    1328         return EventBuilderWrapper::This->eventCheck(runNr, fadhd, event);
    1329     }
    1330 
    1331     void gotNewRun(int runnr, PEVNT_HEADER *headers)
    1332     {
    1333         return EventBuilderWrapper::This->gotNewRun(runnr, headers);
    1334     }
    1335 
    1336     int subProcEvt(int threadID, PEVNT_HEADER *fadhd, EVENT *event, int8_t *buffer)
    1337     {
    1338         return EventBuilderWrapper::This->subProcEvt(threadID, fadhd, event, buffer);
    1339     }
    1340 
    13411358}
    13421359
Note: See TracChangeset for help on using the changeset viewer.