FACT++  1.0
int StateMachineMCP::Reset ( )
inlineprivate

Definition at line 145 of file mcp.cc.

References MCP::State::kConfigured, MCP::State::kConfiguring1, MCP::State::kIdle, and Dim::SendCommandNB().

Referenced by StateMachineMCP().

146  {
149  return GetCurrentState();
150 
151  fRunType = "";
152  Message("Reseting configuration states of FAD and FTM");
153 
154  Dim::SendCommandNB("FTM_CONTROL/RESET_CONFIGURE");
155  Dim::SendCommandNB("FAD_CONTROL/RESET_CONFIGURE");
156  Dim::SendCommandNB("RATE_CONTROL/STOP");
157 
159  return MCP::State::kIdle;
160  /*
161  // FIMXE: Handle error states!
162  if (fDimLog.state()>=20)//kSM_NightlyOpen
163  Dim::SendCommand("DATA_LOGGER/STOP");
164 
165  if (fDimLog.state()==0)
166  Dim::SendCommand("DATA_LOGGER/WAIT_FOR_RUN_NUMBER");
167 
168  if (fDimFAD.state()==FAD::State::kConnected)
169  {
170  Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER_LINE", bool(false));
171  Dim::SendCommand("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", bool(false));
172  }
173 
174  if (fDimFTM.state()==FTM::State::kTakingData)
175  Dim::SendCommand("FTM_CONTROL/STOP");
176 
177  return GetCurrentState(); */
178  }
int GetCurrentState() const
return the current state of the machine
string fRunType
Definition: mcp.cc:182
void Update(int newstate)
Definition: mcp.cc:270
void SendCommandNB(const std::string &command)
Definition: Dim.h:30
int Message(const std::string &str)
Definition: MessageImp.h:46

+ Here is the call graph for this function:

+ Here is the caller graph for this function: