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

Definition at line 2026 of file drivectrl.cc.

References EventImp::GetSize(), EventImp::Ptr(), and Source::ra.

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

2027  {
2028  if (!CheckEventSize(evt.GetSize(), "Orbit", 40))
2029  return T::kSM_FatalError;
2030 
2031  const double *dat = evt.Ptr<double>();
2032 
2033  Source src;
2034  src.ra = dat[0];
2035  src.dec = dat[1];
2036  return StartTracking(src, dat[2], dat[3], dat[4]);
2037  }
int StartTracking(const Source &src, double offset, double angle, double period=0)
Definition: drivectrl.cc:1945
double ra
Definition: drivectrl.cc:124
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: cosyctrl.cc:804
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: