Ignore:
Timestamp:
05/23/11 08:46:13 (13 years ago)
Author:
tbretz
Message:
Some improvement and name changes.
File:
1 edited

Legend:

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

    r10755 r10766  
    1111void FAD::EventHeader::print(std::ostream &out) const
    1212{
    13     out << hex << "Delimiter: ";
     13    out << "Delimiter: ";
    1414    if (fStartDelimiter==kDelimiterStart)
    1515        out << "ok";
    1616    else
    17         out << fStartDelimiter;
    18     out << " (Crate=" << dec << (fBoardId>>8) << ", Board=" << (fBoardId&0xff) << ", Version=" << (fVersion>>8) << "." << (fVersion&0xff) << ", DNA=" << fDNA <<")" << endl;
     17        out << hex << fStartDelimiter;
     18    out << " (Crate=" << dec << (fBoardId>>8) << ", Board=" << (fBoardId&0xff) << ", Version=" << (fVersion>>8) << "." << (fVersion&0xff) << ", DNA=" << hex << fDNA <<")" << endl;
    1919
    2020    out << dec;
    2121    out << "PkgLength:  " << fPackageLength << endl;
    2222
    23     out << "RunNumber:  " << dec<< fRunNumber << endl;
     23    out << "RunNumber:  " << fRunNumber << endl;
    2424    out << "Time:       " << fTimeStamp/10000. << "s" << endl;
    25     out << "EvtCounter: " << dec << fEventCounter << " of " << fNumTriggersToGenerate << endl;
    26     out << "Trigger:    Type=" << dec << fTriggerType << " Id=" << fTriggerId << " Crc=0x" << hex << fTriggerCrc << endl;
     25    out << "EvtCounter: " << fEventCounter << " of " << fNumTriggersToGenerate << endl;
     26    out << "Trigger:    Type=" << fTriggerType << " Id=" << fTriggerId << " Crc=0x" << hex << fTriggerCrc << endl;
    2727
    2828    out << "RefClock:   " << dec << fFreqRefClock << endl;
     
    4040    out << endl;
    4141
    42     out << "PLL_LCK=" << hex << fPLLLCK << endl;
    43     out << "  PLL-Lock:         " << hex << PllLock() << endl;
    44     out << "  Denable:          " << HasDenable() << endl;
    45     out << "  Dwrite:           " << HasDwrite() << endl;
    46     out << "  RefClk too high:  " << IsRefClockTooHigh() << endl;
    47     out << "  RefClk too low:   " << IsRefClockTooLow() << endl;
    48     out << "  DCM locked:       " << IsDcmLocked() << endl;
    49     out << "  DCM ready:        " << IsDcmReady() << endl;
    50     out << "  SPI_SCLK enabled: " << HasSpiSclk() << endl;
     42    out << "Status=" << hex << fStatus << endl;
     43    // PllLock -> 1111
     44    out << "  RefClk locked (PLLLCK):  " << hex << (int)PLLLCK();
     45    if (IsRefClockTooHigh())
     46        out << " (too high)";
     47    if (IsRefClockTooLow())
     48        out << " (too low)";
     49    out << endl;
     50    out << "  Domino wave (Denable):   " << (HasDenable()?"enabled":"disabled") << endl;
     51    out << "  DRS sampling (Dwrite):   " << (HasDwrite()?"enabled":"disabled") << endl;
     52    out << "  Dig.clock manager (DCM): " << (IsDcmLocked()?"locked":"unlocked");
     53    out << " / " << (IsDcmReady()?"ready":"not ready") << endl;
     54    out << "  SPI Serial Clock (SCLK): " << (HasSpiSclk()?"enabled":"disabled") << endl;
    5155}
    5256
Note: See TracChangeset for help on using the changeset viewer.