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

Definition at line 2013 of file drivectrl.cc.

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

2014  {
2015  if (!CheckEventSize(evt.GetSize(), "Wobble", 32))
2016  return T::kSM_FatalError;
2017 
2018  const double *dat = evt.Ptr<double>();
2019 
2020  Source src;
2021  src.ra = dat[0];
2022  src.dec = dat[1];
2023  return StartTracking(src, dat[2], dat[3]);
2024  }
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: