Changeset 11130


Ignore:
Timestamp:
06/23/11 12:59:40 (13 years ago)
Author:
tbretz
Message:
Further improved output of PLL locks.
File:
1 edited

Legend:

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

    r11120 r11130  
    3939    out << "Status=" << hex << fStatus << endl;
    4040    // PllLock -> 1111
    41     out << "  RefClk locked (PLLLCK):  "
    42         << (PLLLCK()&1) << " "
    43         << (PLLLCK()&2) << " "
    44         << (PLLLCK()&4) << " "
    45         << (PLLLCK()&8) << endl;
     41    out << "  RefClk locked (PLLLCK):  ";
     42    if ((PLLLCK()&15)==15)
     43        out << "all";
     44    else
     45        if (PLLLCK()==0)
     46            out << "none";
     47        else
     48            out
     49                << "0:" << ((PLLLCK()&1)?"yes":"no") << " "
     50                << "1:" << ((PLLLCK()&2)?"yes":"no") << " "
     51                << "2:" << ((PLLLCK()&4)?"yes":"no") << " "
     52                << "3:" << ((PLLLCK()&8)?"yes":"no") << endl;
    4653    if (IsRefClockTooHigh())
    4754        out << " (too high)";
Note: See TracChangeset for help on using the changeset viewer.