FACT++  1.0
Bool_t MPointing::Save ( const char *  name)

Definition at line 312 of file MPointing.cc.

References fError, i, and t.

Referenced by TPointGui::ProcessMessage().

313 {
314  /*
315  ! MMT 1987 July 8
316  ! T 36 7.3622 41.448 -0.0481
317  ! IA -37.5465 20.80602
318  ! IE -13.9180 1.25217
319  ! NPAE +7.0751 26.44763
320  ! CA -6.9149 32.05358
321  ! AN +0.5053 1.40956
322  ! AW -2.2016 1.37480
323  ! END
324  */
325 
326  ofstream fout(name);
327  if (!fout)
328  {
329  cout << "Error: Cannot open file '" << name << "'" << endl;
330  return kFALSE;
331  }
332 
333  MTime t;
334  t.Now();
335 
336  fout << "MAGIC1 " << t << endl;
337  fout << "S 00 000000 000000 0000000" << endl;
338  fout << setprecision(8);
339  for (int i=0; i<kNumPar; i++)
340  {
341  fout << " " << setw(6) << GetVarName(i) << " ";
342  fout << setw(13) << *fCoeff[i]*kRad2Deg << " ";
343  fout << setw(11) << fError[i]*kRad2Deg << endl;
344  }
345  fout << "END" << endl;
346 
347  fName = name;
348 
349  return kTRUE;
350 }
int i
Definition: db_dim_client.c:21
TArrayD fError
Definition: MPointing.h:187
Double_t ** fCoeff
Definition: MPointing.h:183
const TString & GetVarName(int i) const
Definition: MPointing.h:280
TT t
Definition: test_client.c:26

+ Here is the caller graph for this function: