Changeset 17672
- Timestamp:
- 04/16/14 21:07:29 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r17520 r17672 536 536 DimDescribedState fDimFscControl; 537 537 DimDescribedState fDimGpsControl; 538 DimDescribedState fDimAgilentControl; 538 DimDescribedState fDimAgilentControl24; 539 DimDescribedState fDimAgilentControl50; 540 DimDescribedState fDimAgilentControl80; 539 541 DimDescribedState fDimPwrControl; 540 542 DimDescribedState fDimLidControl; … … 1099 1101 double UdrpApd = (R5+2000)*Iout; // Voltage seen by G-APD 1100 1102 1101 const double pwrCam = I apd* (fBiasControlVoltageVec[i]-UdrpCam);1102 const double pwrApd = I apd* (fBiasControlVoltageVec[i]-UdrpApd);1103 const double pwrCam = Iout * (fBiasControlVoltageVec[i]-UdrpCam); 1104 const double pwrApd = Iout * (fBiasControlVoltageVec[i]-UdrpApd); 1103 1105 1104 1106 // Total power participated in the camera at the G-APD … … 1875 1877 } 1876 1878 1877 int HandleAgilentData(const EventImp &d )1878 { 1879 if (!CheckDataSize(d, "Agilent :Data", 4*sizeof(float)))1879 int HandleAgilentData(const EventImp &d, const string &ext) 1880 { 1881 if (!CheckDataSize(d, "Agilent"+ext+":Data", 4*sizeof(float))) 1880 1882 return GetCurrentState(); 1881 1883 … … 1892 1894 out << HTML::kWhite << '\t' << data[3] << '\n'; 1893 1895 1894 ofstream(fPath+"/agilent .data") << out.str();1896 ofstream(fPath+"/agilent"+ext+".data") << out.str(); 1895 1897 1896 1898 return GetCurrentState(); … … 2034 2036 Out() << fDimRateControl << endl; 2035 2037 Out() << fDimFscControl << endl; 2036 Out() << fDimAgilentControl << endl; 2038 Out() << fDimAgilentControl24 << endl; 2039 Out() << fDimAgilentControl50 << endl; 2040 Out() << fDimAgilentControl80 << endl; 2037 2041 Out() << fDimPwrControl << endl; 2038 2042 Out() << fDimLidControl << endl; … … 2947 2951 out << GetStateHtml(fDimFscControl, FSC::State::kConnected); 2948 2952 out << GetStateHtml(fDimGpsControl, GPS::State::kConnected); 2949 out << GetStateHtml(fDimAgilentControl, Agilent::State::kVoltageOff); 2953 out << GetStateHtml(fDimAgilentControl24, Agilent::State::kVoltageOff); 2954 out << GetStateHtml(fDimAgilentControl50, Agilent::State::kVoltageOff); 2955 out << GetStateHtml(fDimAgilentControl80, Agilent::State::kVoltageOff); 2950 2956 out << GetStateHtml(fDimPwrControl, Power::State::kSystemOff); 2951 2957 out << GetStateHtml(fDimLidControl, Lid::State::kConnected); … … 3019 3025 fDimFscControl ("FSC_CONTROL"), 3020 3026 fDimGpsControl ("GPS_CONTROL"), 3021 fDimAgilentControl("AGILENT_CONTROL"), 3027 fDimAgilentControl24("AGILENT_CONTROL_24V"), 3028 fDimAgilentControl50("AGILENT_CONTROL_50V"), 3029 fDimAgilentControl80("AGILENT_CONTROL_80V"), 3022 3030 fDimPwrControl ("PWR_CONTROL"), 3023 3031 fDimLidControl ("LID_CONTROL"), … … 3043 3051 fDimFscControl.Subscribe(*this); 3044 3052 fDimGpsControl.Subscribe(*this); 3045 fDimAgilentControl.Subscribe(*this); 3053 fDimAgilentControl24.Subscribe(*this); 3054 fDimAgilentControl50.Subscribe(*this); 3055 fDimAgilentControl80.Subscribe(*this); 3046 3056 fDimPwrControl.Subscribe(*this); 3047 3057 fDimLidControl.Subscribe(*this); … … 3081 3091 3082 3092 Subscribe("TEMPERATURE/DATA") 3083 (bind(&StateMachineSmartFACT::HandleTemperatureData, this, placeholders::_1)); 3084 3085 Subscribe("AGILENT_CONTROL/DATA") 3086 (bind(&StateMachineSmartFACT::HandleAgilentData, this, placeholders::_1)); 3093 (bind(&StateMachineSmartFACT::HandleTemperatureData, this, placeholders::_1)); 3094 3095 Subscribe("AGILENT_CONTROL_24V/DATA") 3096 (bind(&StateMachineSmartFACT::HandleAgilentData, this, placeholders::_1, "24")); 3097 Subscribe("AGILENT_CONTROL_50V/DATA") 3098 (bind(&StateMachineSmartFACT::HandleAgilentData, this, placeholders::_1, "50")); 3099 Subscribe("AGILENT_CONTROL_80V/DATA") 3100 (bind(&StateMachineSmartFACT::HandleAgilentData, this, placeholders::_1, "80")); 3087 3101 3088 3102 Subscribe("MAGIC_WEATHER/DATA")
Note:
See TracChangeset
for help on using the changeset viewer.