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

Definition at line 1671 of file biasctrl.cc.

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

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

1672  {
1673  if (!CheckEventSize(evt.GetSize(), "SetAllChannelsDac", 2*416))
1674  return false;
1675 
1676  const uint16_t *ptr = evt.Ptr<uint16_t>();
1677 
1678  fBias.RampAllChannelsDac(vector<uint16_t>(ptr, ptr+416));
1679 
1680  return T::GetCurrentState();
1681  }
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: biasctrl.cc:1639
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: