Changeset 12332
- Timestamp:
- 10/30/11 22:34:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r12313 r12332 33 33 kIdle, 34 34 kConfigured, // Returned if idle and fBufStaticData==fStaticData 35 kT akingData,35 kTriggerOn, 36 36 }; 37 37 … … 1155 1155 case FTM::kFtmRunning: 1156 1156 case FTM::kFtmCalib: 1157 return kT akingData;1157 return kTriggerOn; 1158 1158 1159 1159 case FTM::kFtmIdle: … … 1904 1904 case ConnectionFTM::kIdle: return FTM::kIdle; 1905 1905 case ConnectionFTM::kConfigured: return FTM::kIdle; 1906 case ConnectionFTM::kT akingData: return FTM::kTakingData;1906 case ConnectionFTM::kTriggerOn: return FTM::kTriggerOn; 1907 1907 default: 1908 1908 throw runtime_error("StateMachienFTM - Execute() - Inavlid state."); … … 1911 1911 1912 1912 if (T::GetCurrentState()==FTM::kConfigured && 1913 fFTM.GetState()==ConnectionFTM::kT akingData)1914 return FTM::kT akingData;1913 fFTM.GetState()==ConnectionFTM::kTriggerOn) 1914 return FTM::kTriggerOn; 1915 1915 1916 1916 return T::GetCurrentState(); … … 1947 1947 "Received answer identical with target configuration."); 1948 1948 1949 T::AddStateName(FTM::kT akingData, "TriggerOn",1950 "Ethernet connection to FTM established, FTM is in taking data state (trigger switched on).");1949 T::AddStateName(FTM::kTriggerOn, "TriggerOn", 1950 "Ethernet connection to FTM established, FTM trigger output to FADs enabled."); 1951 1951 1952 1952 T::AddStateName(FTM::kConfigError1, "ErrorInConfig1", ""); … … 1985 1985 ("start a run (start distributing triggers)"); 1986 1986 1987 T::AddEvent("STOP_RUN", FTM::kT akingData)1987 T::AddEvent("STOP_RUN", FTM::kTriggerOn) 1988 1988 (Wrapper(bind(&ConnectionFTM::CmdStopRun, &fFTM))) 1989 1989 ("stop a run (stop distributing triggers)"); … … 1998 1998 "|status[bool]:disable or enable that the FTM sends rate reports (yes/no)"); 1999 1999 2000 T::AddEvent("SET_THRESHOLD", "I:2", FTM::kIdle, FTM::kT akingData)2000 T::AddEvent("SET_THRESHOLD", "I:2", FTM::kIdle, FTM::kTriggerOn) 2001 2001 (bind(&StateMachineFTM::SetThreshold, this, placeholders::_1)) 2002 2002 ("Set the comparator threshold" … … 2004 2004 "|Threshold[counts]:Threshold to be set in binary counts"); 2005 2005 2006 T::AddEvent("SET_N_OUT_OF_4", "I:2", FTM::kIdle, FTM::kT akingData)2006 T::AddEvent("SET_N_OUT_OF_4", "I:2", FTM::kIdle, FTM::kTriggerOn) 2007 2007 (bind(&StateMachineFTM::SetNoutof4, this, placeholders::_1)) 2008 2008 ("Set the comparator threshold" … … 2020 2020 "|Enable[bool]:Whether FTU should be enabled or disabled (yes/no)"); 2021 2021 2022 T::AddEvent("DISABLE_PIXEL", "S:1", FTM::kIdle, FTM::kT akingData)2022 T::AddEvent("DISABLE_PIXEL", "S:1", FTM::kIdle, FTM::kTriggerOn) 2023 2023 (bind(&StateMachineFTM::EnablePixel, this, placeholders::_1, false)) 2024 2024 ("(-1 or all)"); 2025 2025 2026 T::AddEvent("ENABLE_PIXEL", "S:1", FTM::kIdle, FTM::kT akingData)2026 T::AddEvent("ENABLE_PIXEL", "S:1", FTM::kIdle, FTM::kTriggerOn) 2027 2027 (bind(&StateMachineFTM::EnablePixel, this, placeholders::_1, true)) 2028 2028 ("(-1 or all)"); … … 2155 2155 // A new configure will first stop the FTM this means 2156 2156 // we can allow it in idle _and_ taking data 2157 T::AddEvent("CONFIGURE", "C", FTM::kIdle, FTM::kConfiguring1, FTM::kConfiguring2, FTM::kConfigured, FTM::kT akingData)2157 T::AddEvent("CONFIGURE", "C", FTM::kIdle, FTM::kConfiguring1, FTM::kConfiguring2, FTM::kConfigured, FTM::kTriggerOn) 2158 2158 (bind(&StateMachineFTM::ConfigureFTM, this, placeholders::_1)) 2159 2159 ("");
Note:
See TracChangeset
for help on using the changeset viewer.