Changeset 17256
- Timestamp:
- 10/18/13 14:56:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r17235 r17256 2746 2746 2747 2747 // --------------- BiasControl ------------- 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)) 2748 const bool bias_off = fDimBiasControl.state()==BIAS::State::kVoltageOff; 2749 const bool bias_oc = fDimBiasControl.state()==BIAS::State::kOverCurrent; 2750 2751 if (fDimDNS.online() && (bias_on || bias_off)) 2754 2752 { 2755 2753 2756 2754 string col = fBiasControlVoltageMed>3?HTML::kGreen:HTML::kWhite; 2757 if (! bias_off)2755 if (!fDimBiasControl.state()==BIAS::State::kVoltageOn) 2758 2756 { 2759 2757 if (fBiasControlCurrentMed>70 || fBiasControlCurrentMax>90) … … 2769 2767 // MCP in ReadyForDatataking/Configuring/Configured/TriggerOn/TakingData 2770 2768 // and Bias not in "data-taking state' => Red 2771 if (fMcpConfigurationState>MCP::State::kIdle && 2772 !bias_on && !bias_off && !bias_ramp) 2769 if (fMcpConfigurationState>MCP::State::kIdle && !bias_on) 2773 2770 col = HTML::kRed; 2774 2771 … … 2786 2783 out << setprecision(2); 2787 2784 out << col << '\t'; 2788 out << ( off ? 0 : fBiasControlCurrentMed) << '\t';2789 if ( oc)2785 out << (bias_off ? 0 : fBiasControlCurrentMed) << '\t'; 2786 if (bias_oc) 2790 2787 out << "(OC) "; 2791 2788 else 2792 2789 { 2793 2790 if (cal) 2794 out << ( off ? 0 : fBiasControlCurrentMax);2791 out << (bias_off ? 0 : fBiasControlCurrentMax); 2795 2792 else 2796 2793 out << "— "; … … 2802 2799 out << setprecision(2) << fBiasControlPowerTot << " W" << setprecision(3); 2803 2800 else 2804 out << ( off ? 0 : fBiasControlVoltageMed) << " V";2801 out << (bias_off ? 0 : fBiasControlVoltageMed) << " V"; 2805 2802 out << '\n'; 2806 2803 }
Note:
See TracChangeset
for help on using the changeset viewer.