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

Definition at line 1651 of file ftmctrl.cc.

References data, EventImp::GetSize(), and EventImp::Ptr().

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

1652  {
1653  if (!CheckEventSize(evt.GetSize(), "SetSelectedThresholds", 160*4))
1654  return T::kSM_FatalError;
1655 
1656  const int32_t *data = evt.Ptr<int32_t>();
1657  if (!fFTM.SetSelectedThresholds(data))
1658  {
1659  ostringstream msg;
1660  msg << "SetSelectedThresholds - Value out of range, maximum 0xffff.";
1661  T::Warn(msg);
1662  }
1663 
1664  return T::GetCurrentState();
1665  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: ftmctrl.cc:1467
float data[4 *1440]
const T * Ptr(size_t offset=0) const
Definition: EventImp.h:74
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: