FACT++  1.0
int StateMachineRateScan::SetReferenceBoard ( const EventImp evt)
inlineprivate

Definition at line 346 of file ratescan.cc.

References Error(), and EventImp::GetUInt().

Referenced by StateMachineRateScan().

347  {
348  if (!CheckEventSize(evt, 4))
349  return kSM_FatalError;
350 
351  if (evt.GetUInt()>39)
352  {
353  Error("SetReferenceBoard - Board index out of range [0;39]");
354  return GetCurrentState();
355  }
356 
357  fReference = kBoard;
358  fReferenceIdx = evt.GetUInt();
359 
360  return GetCurrentState();
361  }
int GetCurrentState() const
return the current state of the machine
Fatal error: stop program.
reference_t fReference
Definition: ratescan.cc:74
int Error(const std::string &str)
Definition: MessageImp.h:49
uint32_t GetUInt() const
Definition: EventImp.h:94
uint16_t fReferenceIdx
Definition: ratescan.cc:75
bool CheckEventSize(const EventImp &evt, size_t size)
Definition: ratescan.cc:85

+ Here is the call graph for this function:

+ Here is the caller graph for this function: