Changeset 11357


Ignore:
Timestamp:
07/12/11 12:00:08 (13 years ago)
Author:
tbretz
Message:
Improved a bit the console output.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fad.cc

    r11284 r11357  
    176176            case kCmdDrsEnable+0x100:
    177177                fHeader.Enable(FAD::EventHeader::kDenable, fBufCommand[0]==kCmdDrsEnable);
    178                 cout << "-> DrsEnable" << endl;
     178                cout << "-> DrsEnable " << fBoardId << " " << (fBufCommand[0]==kCmdDrsEnable) << endl;
    179179                break;
    180180
     
    182182            case kCmdDwrite+0x100:
    183183                fHeader.Enable(FAD::EventHeader::kDwrite, fBufCommand[0]==kCmdDwrite);
    184                 cout << "-> Dwrite" << endl;
     184                cout << "-> Dwrite " << fBoardId << " " << (fBufCommand[0]==kCmdDwrite) << endl;
    185185                break;
    186186
    187187            case kCmdTriggerLine:
    188188            case kCmdTriggerLine+0x100:
    189                 cout << "-> Trigger line" << endl;
     189                cout << "-> Trigger line " << fBoardId << " " << (fBufCommand[0]==kCmdTriggerLine) << endl;
    190190                fTriggerEnabled = fBufCommand[0]==kCmdTriggerLine;
    191191                fHeader.Enable(FAD::EventHeader::kTriggerLine, fTriggerEnabled);
     
    194194            case kCmdSclk:
    195195            case kCmdSclk+0x100:
    196                 cout << "-> Sclk" << endl;
     196                cout << "-> Sclk " << fBoardId << endl;
    197197                fHeader.Enable(FAD::EventHeader::kSpiSclk, fBufCommand[0]==kCmdSclk);
    198198                break;
     
    200200            case kCmdSrclk:
    201201            case kCmdSrclk+0x100:
    202                 cout << "-> Drclk" << endl;
     202                cout << "-> Drclk " << fBoardId << endl;
    203203                break;
    204204
     
    206206            case kCmdRun+0x100:
    207207                fStartTime = Time(Time::utc).UnixTime();
    208                 cout << "-> Run" << endl;
     208                cout << "-> Run " << fBoardId << endl;
    209209                break;
    210210
    211211            case kCmdBusy:
    212212            case kCmdBusy+0x100:
    213                 cout << "-> Busy" << endl;
     213                cout << "-> Busy " << fBoardId << " " << (fBufCommand[0]==kCmdBusy) << endl;
    214214                fHeader.Enable(FAD::EventHeader::kBusy, fBufCommand[0]==kCmdBusy);
    215215                break;
     
    217217            case kCmdSocket:
    218218            case kCmdSocket+0x100:
    219                 cout << "-> Socket" << endl;
     219                cout << "-> Socket " << fBoardId << " " << (fBufCommand[0]==kCmdSocket) << endl;
    220220                fCommandSocket = fBufCommand[0]==kCmdSocket;
    221221                fHeader.Enable(FAD::EventHeader::kSock17, !fCommandSocket);
     
    229229                    fTriggerSendData.cancel();
    230230                fHeader.Enable(FAD::EventHeader::kContTrigger, fBufCommand[0]==kCmdContTrigger);
    231                 cout << "-> ContTrig" << endl;
     231                cout << "-> ContTrig " << fBoardId << " " << (fBufCommand[0]==kCmdContTrigger) << endl;
    232232                break;
    233233
    234234            case kCmdResetTriggerId:
    235                 cout << "-> ResetId" << endl;
     235                cout << "-> ResetId " << fBoardId << endl;
    236236                fHeader.fEventCounter = 0;
    237237                break;
     
    243243
    244244            case kCmdWriteExecute:
    245                 cout << "-> Execute" << endl;
     245                cout << "-> Execute " << fBoardId << endl;
    246246                memcpy(fHeader.fDac, fRam.fDac, sizeof(fHeader.fDac));
    247247                for (int i=0; i<kNumChannels; i++)
     
    298298            fRam.fRunNumber &= 0xffff;
    299299            fRam.fRunNumber |= fBufCommand[0]<<16;
    300             cout << "-> Set RunNumber MSW" << endl;
     300            cout << "-> Set RunNumber " << fBoardId << " MSW" << endl;
    301301            break;
    302302        case kCmdWriteRunNumberLSW:
    303303            fRam.fRunNumber &= 0xffff0000;
    304304            fRam.fRunNumber |= fBufCommand[0];
    305             cout << "-> Set RunNumber LSW" << endl;
     305            cout << "-> Set RunNumber " << fBoardId << " LSW" << endl;
    306306            break;
    307307        case kCmdWriteRoi:
    308             cout << "-> Set Roi[" << fCommand[1] << "]=" << fBufCommand[0] << endl;
     308            cout << "-> Set " << fBoardId << " Roi[" << fCommand[1] << "]=" << fBufCommand[0] << endl;
    309309            //fChHeader[fCommand[1]].fRegionOfInterest = fBufCommand[0];
    310310            fRamRoi[fCommand[1]] = fBufCommand[0];
     
    312312
    313313        case kCmdWriteDac:
    314             cout << "-> Set Dac[" << fCommand[1] << "]=" << fBufCommand[0] << endl;
     314            cout << "-> Set " << fBoardId << " Dac[" << fCommand[1] << "]=" << fBufCommand[0] << endl;
    315315            fRam.fDac[fCommand[1]] = fBufCommand[0];
    316316            break;
    317317
    318318        case kCmdWriteRate:
    319             cout << "-> Set Rate =" << fBufCommand[0] << endl;
     319            cout << "-> Set " << fBoardId << " Rate =" << fBufCommand[0] << endl;
    320320            fHeader.fTriggerGeneratorPrescaler = fBufCommand[0];
    321321            break;
Note: See TracChangeset for help on using the changeset viewer.