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

Definition at line 2119 of file drivectrl.cc.

References Source::dec, EventImp::Get(), EventImp::GetSize(), Source::name, and Source::ra.

2120  {
2121  if (!CheckEventSize(evt.GetSize(), "Track", 16))
2122  return T::kSM_FatalError;
2123 
2124  Source src;
2125 
2126  src.name = "";
2127  src.ra = evt.Get<double>(0);
2128  src.dec = evt.Get<double>(8);
2129 
2130  return StartTracking(src, 0, 0);
2131  }
string name
Definition: drivectrl.cc:123
double dec
Definition: drivectrl.cc:125
int StartTracking(const Source &src, double offset, double angle, double period=0)
Definition: drivectrl.cc:1945
double ra
Definition: drivectrl.cc:124
T Get(size_t offset=0) const
Definition: EventImp.h:66
bool CheckEventSize(size_t has, const char *name, size_t size)
Definition: cosyctrl.cc:804
virtual size_t GetSize() const
Definition: EventImp.h:55

+ Here is the call graph for this function: