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

Definition at line 1719 of file biasctrl.cc.

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

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

1720  {
1721  if (!CheckEventSize(evt.GetSize(), "SetAllChannelsVolt", 4*kNumChannels))
1722  return false;
1723 
1724  const float *ptr = evt.Ptr<float>();
1725  fBias.RampAllChannelsVoltage(vector<float>(ptr, ptr+kNumChannels));
1726 
1727  return T::GetCurrentState();
1728  }
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: