FACT++  1.0
int StateMachineFeedback::SaveCalibration ( )
inlineprivate

Definition at line 1104 of file feedback.cc.

References BIAS::kNumChannels, and Time::Mjd().

Referenced by StateMachineFeedback().

1105  {
1106  ofstream fout("feedback-calib.bin");
1107 
1108  double mjd = fTimeCalib.Mjd();
1109  fout.write((char*)&mjd, sizeof(double));
1110  fout.write((char*)fCalibDeltaI.data(), BIAS::kNumChannels*sizeof(float));
1111  fout.write((char*)fCalibR8.data(), BIAS::kNumChannels*sizeof(float));
1112 
1113  return GetCurrentState();
1114  }
int GetCurrentState() const
return the current state of the machine
vector< float > fCalibR8
Definition: feedback.cc:59
vector< float > fCalibDeltaI
Definition: feedback.cc:58
void Mjd(double mjd)
Definition: Time.cc:145

+ Here is the call graph for this function:

+ Here is the caller graph for this function: