FACT++  1.0
int StateMachineSmartFACT::HandleDrivePointing ( const EventImp d)
inlineprivate

Definition at line 1077 of file smartfact.cc.

References EventImp::Get(), EventImp::GetJavaDate(), and HTML::kWhite.

Referenced by StateMachineSmartFACT().

1078  {
1079  if (!CheckDataSize(d, "DriveControl:Pointing", 16))
1080  return GetCurrentState();
1081 
1082  fDriveControlPointingZd = d.Get<double>();
1083 
1084  const double az = d.Get<double>(8);
1085 
1087 
1088  ostringstream out;
1089  out << d.GetJavaDate() << '\n';
1090 
1091  out << setprecision(0) << fixed;
1092  out << HTML::kWhite << '\t' << az << '\t' << fDriveControlPointingAz << '\n';
1093  out << HTML::kWhite << '\t' << fDriveControlPointingZd << '\n';
1094 
1095  ofstream(fPath+"/pointing.data") << out.str();
1096 
1097  return GetCurrentState();
1098  }
int GetCurrentState() const
return the current state of the machine
bool CheckDataSize(const EventImp &d, const char *name, size_t size, bool min=false)
Definition: smartfact.cc:669
string fDriveControlPointingAz
Definition: smartfact.cc:563
static const string kWhite
Definition: smartfact.cc:74
uint64_t GetJavaDate() const
Definition: EventImp.cc:303
string GetDir(const double angle)
Definition: smartfact.cc:653
T Get(size_t offset=0) const
Definition: EventImp.h:66

+ Here is the call graph for this function:

+ Here is the caller graph for this function: