FACT++  1.0
int StateMachineSmartFACT::HandleFadDrsRuns ( const EventImp d)
inlineprivate

Definition at line 1458 of file smartfact.cc.

References EventImp::Ptr().

Referenced by StateMachineSmartFACT().

1459  {
1460  if (!CheckDataSize(d, "FadControl:DrsRuns", 5*4))
1461  {
1462  fFadControlDrsStep = -1;
1463  return GetCurrentState();
1464  }
1465 
1466  const uint32_t *ptr = d.Ptr<uint32_t>();
1467  fFadControlDrsStep = ptr[0];
1468  fFadControlDrsRuns[0] = ptr[1];
1469  fFadControlDrsRuns[1] = ptr[2];
1470  fFadControlDrsRuns[2] = ptr[3];
1471 
1472  return GetCurrentState();
1473  }
int GetCurrentState() const
return the current state of the machine
bool CheckDataSize(const EventImp &d, const char *name, size_t size, bool min=false)
Definition: smartfact.cc:669
int32_t fFadControlDrsStep
Definition: smartfact.cc:571
vector< uint32_t > fFadControlDrsRuns
Definition: smartfact.cc:572
const T * Ptr(size_t offset=0) const
Definition: EventImp.h:74

+ Here is the call graph for this function:

+ Here is the caller graph for this function: