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

Definition at line 118 of file feedback.cc.

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

Referenced by StateMachineFeedback().

119  {
120  if (evt.GetSize()>=BIAS::kNumChannels*sizeof(float))
121  {
122  fVoltGapd.assign(evt.Ptr<float>(), evt.Ptr<float>()+BIAS::kNumChannels);
123  fBiasR9.assign(evt.Ptr<float>()+2*BIAS::kNumChannels, evt.Ptr<float>()+3*BIAS::kNumChannels);
124 
125  for (int i=0; i<320; i++)
126  fVoltGapd[i] += 1.1;
127 
128  Info("Nominal bias voltages and calibration resistor received.");
129  }
130 
131  return GetCurrentState();
132  }
int GetCurrentState() const
return the current state of the machine
int i
Definition: db_dim_client.c:21
vector< float > fVoltGapd
Definition: feedback.cc:52
int Info(const std::string &str)
Definition: MessageImp.h:47
vector< float > fBiasR9
Definition: feedback.cc:54
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: