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

Definition at line 2170 of file drivectrl.cc.

References Error(), EventImp::Get(), EventImp::GetSize(), EventImp::Ptr(), and time.

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

2171  {
2172  if (evt.GetSize()<16)
2173  {
2174  ostringstream msg;
2175  msg << "TrackOrbit - Received event has " << evt.GetSize() << " bytes, but expected at least 17.";
2176  T::Fatal(msg);
2177  return T::kSM_FatalError;
2178  }
2179  if (evt.GetSize()==16)
2180  {
2181  ostringstream msg;
2182  msg << "TrackOrbit - Source name missing.";
2183  T::Error(msg);
2184  return T::GetCurrentState();
2185  }
2186 
2187  const double angle = evt.Get<double>(0);
2188  const double time = evt.Get<double>(8);
2189 
2190  return StartTrackWobble(evt.Ptr<char>(16), evt.GetSize()-16, -1, angle, time);
2191  }
int StartTrackWobble(const char *ptr, size_t size, const double &offset=0, const double &angle=0)
Definition: cosyctrl.cc:1045
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
Definition: smartfact.txt:92
Error()
Definition: HeadersFTM.h:197
T Get(size_t offset=0) const
Definition: EventImp.h:66
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: