FACT++  1.0
int DataLogger::NightlyToWaitRun ( )
private

from NightlyOpen to waiting transition

Implements the transition towards kSM_WaitingRun If current state is kSM_Ready, then tries to go to nightlyOpen state first.

Returns
kSM_WaitingRun or kSM_BadFolder

Definition at line 2196 of file datalogger.cc.

References MessageImp::Debug(), StateMachineImp::GetCurrentState(), kSM_NightlyOpen, StateMachineImp::kSM_Ready, kSM_WaitingRun, and Start().

Referenced by DataLogger().

2197 {
2198  int cState = GetCurrentState();
2199 
2200  if (cState == kSM_Ready)
2201  cState = Start();
2202 
2203  if (cState != kSM_NightlyOpen)
2204  return GetCurrentState();
2205 
2206  if (fDebugIsOn)
2207  {
2208  Debug("Going to Wait Run Number state...");
2209  }
2210  return kSM_WaitingRun;
2211 }
Mainloop running, state machine in operation.
int GetCurrentState() const
return the current state of the machine
int Debug(const std::string &str)
Definition: MessageImp.h:45
bool fDebugIsOn
configuration flags
Definition: datalogger.cc:315
Nightly file openned and writing.
Definition: datalogger.cc:185
int Start()
start transition
Definition: datalogger.cc:1818
waiting for the run number to open the run file
Definition: datalogger.cc:186

+ Here is the call graph for this function:

+ Here is the caller graph for this function: