Changeset 11954 for trunk


Ignore:
Timestamp:
09/02/11 15:30:50 (13 years ago)
Author:
tbretz
Message:
Use enums from namespace BIAS; display channel in ADC histogram
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r11936 r11954  
    1919#include "src/HeadersFTM.h"
    2020#include "src/HeadersFAD.h"
     21#include "src/HeadersBIAS.h"
    2122#include "src/DimNetwork.h"
    2223#include "src/tools.h"
     
    14061407
    14071408        ostringstream str;
    1408         str << "EventNum = " << fEventData->EventNum;
     1409        str << "CH = " << fAdcCrate->value() << '|' << fAdcBoard->value() << '|' << fAdcChip->value() << '|' << fAdcChannel->value() << " (" << p << ")";
     1410        str << "   EventNum = " << fEventData->EventNum;
    14091411        str << "   TriggerNum = " << fEventData->TriggerNum;
    14101412        str << "   TriggerType = " << fEventData->TriggerType;
     
    26562658            if (s.index<1) // No Dim connection
    26572659                SetLedColor(fStatusBiasLed, kLedGray, time);
    2658             if (s.index==1) // Dim connection / FTM disconnected
     2660            if (s.index==BIAS::kDisconnected) // Dim connection / FTM disconnected
    26592661                SetLedColor(fStatusBiasLed, kLedRed, time);
    2660             if (s.index==2 || s.index==3) // Connecting / Initializing
     2662            if (s.index==BIAS::kConnecting || s.index==BIAS::kInitializing) // Connecting / Initializing
    26612663                SetLedColor(fStatusBiasLed, kLedOrange, time);
    2662             if (s.index==4) // Connected
     2664            if (s.index==BIAS::kConnected) // Connected
    26632665                SetLedColor(fStatusBiasLed, kLedYellow, time);
    2664             if (s.index==5) // Ramping
     2666            if (s.index==BIAS::kRamping) // Ramping
    26652667                SetLedColor(fStatusBiasLed, kLedWarn, time);
    2666             if (s.index==6) // Over current
     2668            if (s.index==BIAS::kOverCurrent) // Over current
    26672669                SetLedColor(fStatusBiasLed, kLedWarnBorder, time);
    2668             if (s.index==7) // At reference
     2670            if (s.index==BIAS::kAtReference) // At reference
    26692671                SetLedColor(fStatusBiasLed, kLedGreen, time);
    2670             if (s.index==8) // ExpertMode
     2672            if (s.index==BIAS::kExpertMode) // ExpertMode
    26712673                SetLedColor(fStatusBiasLed, kLedWarnTriangleBorder, time);
    26722674
Note: See TracChangeset for help on using the changeset viewer.