FACT++  1.0
template<class T , class S >
int StateMachineFTM< T, S >::SetIntensity ( const EventImp evt,
FTM::StaticData::GeneralSettings  lp 
)
inlineprivate

Definition at line 1877 of file ftmctrl.cc.

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

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

1878  {
1879  if (!CheckEventSize(evt.GetSize(), "SetIntensity", 2))
1880  return T::kSM_FatalError;
1881 
1882  if (!fFTM.SetIntensity(lp, evt.GetShort()))
1883  T::Warn("SetIntensity - Value out of range.");
1884 
1885  return T::GetCurrentState();
1886  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: ftmctrl.cc:1467
int16_t GetShort() const
Definition: EventImp.h:91
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: