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

Definition at line 1754 of file ftmctrl.cc.

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

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

1755  {
1756  if (!CheckEventSize(evt.GetSize(), "SetPrescaling", 4))
1757  return T::kSM_FatalError;
1758 
1759  if (!fFTM.SetPrescaling(evt.GetInt()-1))
1760  T::Warn("SetPrescaling - Value out of range.");
1761 
1762  return T::GetCurrentState();
1763  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: ftmctrl.cc:1467
int32_t GetInt() const
Definition: EventImp.h:93
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: