FACT++  1.0
int StateMachineFeedback::HandleBiasDac ( const EventImp evt)
inlineprivate

Definition at line 141 of file feedback.cc.

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

Referenced by StateMachineFeedback().

142  {
143  if (evt.GetSize()>=BIAS::kNumChannels*sizeof(uint16_t))
144  fBiasDac.assign(evt.Ptr<uint16_t>(), evt.Ptr<uint16_t>()+BIAS::kNumChannels);
145  return GetCurrentState();
146  }
int GetCurrentState() const
return the current state of the machine
vector< uint16_t > fBiasDac
Definition: feedback.cc:55
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: