FACT++  1.0
template<class T , class S >
int StateMachineFTM< T, S >::TakeNevents ( const EventImp evt)
inlineprivate

Definition at line 1541 of file ftmctrl.cc.

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

Referenced by StateMachineFTM< T, S >::StateMachineFTM().

1542  {
1543  if (!CheckEventSize(evt.GetSize(), "TakeNevents", 4))
1544  return T::kSM_FatalError;
1545 
1546  const unsigned int dat = evt.GetUInt();
1547 
1548  /*
1549  if (dat[1]>uint32_t(-1))
1550  {
1551  ostringstream msg;
1552  msg << hex << "Value " << dat[1] << " out of range.";
1553  T::Error(msg);
1554  return T::GetCurrentState();
1555  }*/
1556 
1557  fFTM.CmdTakeNevents(dat);
1558 
1559  return T::GetCurrentState();
1560  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: ftmctrl.cc:1467
uint32_t GetUInt() const
Definition: EventImp.h:94
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function:

+ Here is the caller graph for this function: