Changeset 10767


Ignore:
Timestamp:
May 23, 2011, 8:51:06 AM (9 years ago)
Author:
tbretz
Message:
Deconded general setting for output, added some const-qualifiers
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r10691 r10767  
    9696{
    9797    out << std::hex;
    98     out << "General settings:  " << fGeneralSettings << endl;
     98    out << "General settings: ";
     99    if (IsEnabled(kTrigger))
     100        out << " Trigger";
     101    if (IsEnabled(kPedestal))
     102        out << " Pedestal";
     103    if (IsEnabled(kLPint))
     104        out << " LPint";
     105    if (IsEnabled(kLPext))
     106        out << " LPext";
     107    if (IsEnabled(kExt1))
     108        out << " Ext1";
     109    if (IsEnabled(kExt2))
     110        out << " Ext2";
     111    if (IsEnabled(kVeto))
     112        out << " Veto";
     113    if (IsEnabled(kClockConditioner))
     114        out << " ClockCond";
     115    out << " (" << fGeneralSettings << ")" << endl;
    99116    out << "Status LEDs:       " << fStatusLEDs << endl;
    100117    out << std::dec;
  • trunk/FACT++/src/HeadersFTM.h

    r10745 r10767  
    234234                fGeneralSettings &= ~uint16_t(type); }
    235235
    236         bool IsEnabled(GeneralSettings type) { return fGeneralSettings&uint16_t(type); }
     236        bool IsEnabled(GeneralSettings type) const { return fGeneralSettings&uint16_t(type); }
    237237
    238238        void EnablePixel(int idx, bool enable)
     
    250250        }
    251251
    252         bool Enabled(uint16_t idx)
     252        bool Enabled(uint16_t idx) const
    253253        {
    254254            const int pixel = idx%9;
Note: See TracChangeset for help on using the changeset viewer.