Changeset 17214
- Timestamp:
- 10/11/13 15:50:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r17192 r17214 2746 2746 2747 2747 // --------------- BiasControl ------------- 2748 if (fDimDNS.online() && 2749 (fDimBiasControl.state()==BIAS::State::kRamping || 2750 fDimBiasControl.state()==BIAS::State::kOverCurrent || 2751 fDimBiasControl.state()==BIAS::State::kVoltageOn || 2752 fDimBiasControl.state()==BIAS::State::kVoltageOff)) 2753 { 2754 const bool off = fDimBiasControl.state()==BIAS::State::kVoltageOff; 2755 const bool oc = fDimBiasControl.state()==BIAS::State::kOverCurrent; 2748 const bool bias_off = fDimBiasControl.state()==BIAS::State::kVoltageOff; 2749 const bool bias_on = fDimBiasControl.state()==BIAS::State::kVoltageOn; 2750 const bool bias_oc = fDimBiasControl.state()==BIAS::State::kOverCurrent; 2751 const bool bias_ramp = fDimBiasControl.state()==BIAS::State::kOverRamping; 2752 2753 if (fDimDNS.online() && (bias_ramp || bias_oc || bias_on || bias_off)) 2754 { 2756 2755 2757 2756 string col = fBiasControlVoltageMed>3?HTML::kGreen:HTML::kWhite; 2758 if ( fDimBiasControl.state()!=BIAS::State::kVoltageOff)2757 if (!bias_off) 2759 2758 { 2760 2759 if (fBiasControlCurrentMed>60 || fBiasControlCurrentMax>80) … … 2765 2764 2766 2765 // Bias in overcurrent => Red 2767 if ( fDimBiasControl.state()==BIAS::State::kOverCurrent)2766 if (bias_oc) 2768 2767 col = HTML::kRed; 2769 2768 … … 2771 2770 // and Bias not in "data-taking state' => Red 2772 2771 if (fMcpConfigurationState>MCP::State::kIdle && 2773 fDimBiasControl.state()!=BIAS::State::kVoltageOn && 2774 fDimBiasControl.state()!=BIAS::State::kVoltageOff) 2772 !bias_on && !bias_off && !bias_ramp) 2775 2773 col = HTML::kRed; 2776 2774
Note:
See TracChangeset
for help on using the changeset viewer.