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

Definition at line 1667 of file ftmctrl.cc.

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

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

1668  {
1669  if (!CheckEventSize(evt.GetSize(), "SetAllThresholds", 160*4))
1670  return T::kSM_FatalError;
1671 
1672  const int32_t *data = evt.Ptr<int32_t>();
1673  if (!fFTM.SetAllThresholds(data))
1674  {
1675  ostringstream msg;
1676  msg << "SetAllThresholds - Value out of range [0; 0xffff]";
1677  T::Warn(msg);
1678  }
1679 
1680  return T::GetCurrentState();
1681  }
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: