Changeset 10852 for trunk/FACT++/src


Ignore:
Timestamp:
05/27/11 11:41:31 (14 years ago)
Author:
tbretz
Message:
Fixed workaround to open the seven sockets correctly; added some debug output in the file-handling.
File:
1 edited

Legend:

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

    r10845 r10852  
    9797        for (vector<string>::const_iterator it=addr.begin(); it!=addr.end(); it++)
    9898        {
    99             g_ip[i].port = 5000+i;
    100 
     99            g_ip[i].port = 5000;
    101100            memset(g_ip[i].addr, 0, 100);
    102101            strncpy(g_ip[i].addr, it->c_str(), 99);
    103102
    104103            strcpy(g_ip[i].addr, "127.0.0.1");
    105 
    106104            i++;
    107105        }
     
    147145    // -------------- Mapped event builder callbacks ------------------
    148146
    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
    151157        return 0;
    152158    }
    153159
    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
    156170        return 0;
    157171    }
     
    159173    int runClose(int, RUN_TAIL *, size_t)
    160174    {
     175        cout << "CLOSE_RUN" << endl;
    161176        return 0;
    162177    }
Note: See TracChangeset for help on using the changeset viewer.