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

Definition at line 134 of file feedback.cc.

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

Referenced by StateMachineFeedback().

135  {
136  if (evt.GetSize()>=BIAS::kNumChannels*sizeof(float))
137  fBiasVolt.assign(evt.Ptr<float>(), evt.Ptr<float>()+BIAS::kNumChannels);
138  return GetCurrentState();
139  }
int GetCurrentState() const
return the current state of the machine
vector< float > fBiasVolt
Definition: feedback.cc:53
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: