Changeset 14112 for trunk/FACT++


Ignore:
Timestamp:
06/07/12 16:24:30 (12 years ago)
Author:
tbretz
Message:
Do not display bias current warnings if bias crate is switched off.
File:
1 edited

Legend:

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

    r14111 r14112  
    18601860            fMcpConfigurationName=="data-rt";
    18611861
     1862        const bool bias_on =
     1863            fDimBiasControl.state()==BIAS::State::kRamping     ||
     1864            fDimBiasControl.state()==BIAS::State::kOverCurrent ||
     1865            fDimBiasControl.state()==BIAS::State::kVoltageOn;
     1866
    18621867        const bool haderr = fErrorList.size()>0;
    18631868
     
    18861891                           "BIAS voltage not at reference");
    18871892
    1888         newerr |= SetError(fFeedbackCalibration.size()>0 && fBiasControlCurrentMed>80,
     1893
     1894        newerr |= SetError(bias_on && fFeedbackCalibration.size()>0 && fBiasControlCurrentMed>80,
    18891895                           "Median current exceeds 80µA/pix");
    1890         newerr |= SetError(fFeedbackCalibration.size()>0 && fBiasControlCurrentMax>100,
     1896        newerr |= SetError(bias_on && fFeedbackCalibration.size()>0 && fBiasControlCurrentMax>100,
    18911897                           "Maximum current exceeds 100µA/pix");
    18921898
Note: See TracChangeset for help on using the changeset viewer.