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

Definition at line 1683 of file ftmctrl.cc.

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

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

1684  {
1685  if (!CheckEventSize(evt.GetSize(), "SetNoutof4", 8))
1686  return T::kSM_FatalError;
1687 
1688  const int32_t *data = evt.Ptr<int32_t>();
1689 
1690  if (!fFTM.SetNoutof4(data[0], data[1]))
1691  T::Warn("SetNoutof4 - Maximum allowed board number 39, valid value range 0-0xffff");
1692 
1693  return T::GetCurrentState();
1694  }
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: