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

Definition at line 1697 of file biasctrl.cc.

References EventImp::Get(), EventImp::GetSize(), and EventImp::GetUShort().

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

1698  {
1699  if (!CheckEventSize(evt.GetSize(), "SetChannelVolt", 6))
1700  return false;
1701 
1702  fBias.RampSingleChannelVoltage(evt.GetUShort(), evt.Get<float>(2));
1703 
1704  return T::GetCurrentState();
1705  }
uint16_t GetUShort() const
Definition: EventImp.h:92
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: biasctrl.cc:1639
T Get(size_t offset=0) const
Definition: EventImp.h:66
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: