Changeset 11823


Ignore:
Timestamp:
08/06/11 17:53:12 (13 years ago)
Author:
tbretz
Message:
Do not display rates if the corresponding FTU is switched off.
File:
1 edited

Legend:

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

    r11820 r11823  
    18911891//            const int ihw = fPatchMapHW[isw];
    18921892            dat[i] = sdata.fPatchRate[ihw];
     1893
     1894            fRatesCanv->SetEnable(ihw, fFtuStatus[ihw/4]);
    18931895        }
    18941896
     
    19351937
    19361938        for (int i=0; i<160; i++)
    1937             fGraphPatchRate[i].SetPoint(fGraphPatchRate[i].GetN(),
    1938                                         t0+sdata.fTimeStamp/1000000., sdata.fPatchRate[i]);
     1939            if (fFtuStatus[i/4]>0)
     1940                fGraphPatchRate[i].SetPoint(fGraphPatchRate[i].GetN(),
     1941                                            t0+sdata.fTimeStamp/1000000., sdata.fPatchRate[i]);
    19391942        for (int i=0; i<40; i++)
    1940             fGraphBoardRate[i].SetPoint(fGraphBoardRate[i].GetN(),
    1941                                         t0+sdata.fTimeStamp/1000000., sdata.fBoardRate[i]);
     1943            if (fFtuStatus[i]>0)
     1944                fGraphBoardRate[i].SetPoint(fGraphBoardRate[i].GetN(),
     1945                                            t0+sdata.fTimeStamp/1000000., sdata.fBoardRate[i]);
    19421946
    19431947        c->Modified();
Note: See TracChangeset for help on using the changeset viewer.