Changeset 14503 for trunk/FACT++/src/ftmctrl.cc
- Timestamp:
- 10/22/12 20:43:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftmctrl.cc
r14491 r14503 1164 1164 throw runtime_error("ConnectionFTM::GetState - Impossible code reached."); 1165 1165 } 1166 1167 bool IsLocked() const { return fHeader.fState&FTM::kFtmLocked; } 1166 1168 1167 1169 int GetCounter(FTM::Types type) { return fCounter[type]; } … … 1917 1919 } 1918 1920 1921 // FIXME: Add timeouts and go to error state 1922 // so that a configuration error can be handled 1919 1923 switch (T::GetCurrentState()) 1920 1924 { … … 1957 1961 // will be received 1958 1962 fCounterStat = fFTM.GetCounter(FTM::kStaticData); 1963 1964 if (!fFtm.IsLocked()) 1965 { 1966 T::Warn("Configuration successfull, but clock conditioner not locked."); 1967 return FTM::State::kConfigError3; 1968 } 1959 1969 1960 1970 T::Info(" ==> TODO: Update run in database!"); … … 1975 1985 } 1976 1986 1987 // FIXME: Do we have to check the state of the clock conditioner here? 1988 1977 1989 if (T::GetCurrentState()==FTM::State::kConfigured && 1978 1990 fFTM.GetState()==ConnectionFTM::kTriggerOn) … … 2015 2027 "Ethernet connection to FTM established, FTM trigger output to FADs enabled."); 2016 2028 2017 T::AddStateName(FTM::State::kConfigError1, "ErrorInConfig1", ""); 2018 T::AddStateName(FTM::State::kConfigError2, "ErrorInConfig2", ""); 2029 T::AddStateName(FTM::State::kConfigError1, "ErrorInConfig1", "Unexpected state received from FTM"); 2030 T::AddStateName(FTM::State::kConfigError2, "ErrorInConfig2", "Unexpected state received from FTM"); 2031 T::AddStateName(FTM::State::kConfigError3, "ClockCondError", "Clock conditioner not locked"); 2019 2032 2020 2033 // FTM Commands
Note:
See TracChangeset
for help on using the changeset viewer.