FACT++  1.0
istream& operator>> ( std::istream &  fin,
TPointStar set 
)

Definition at line 90 of file TPointStar.cc.

References mag, and str.

91 {
92  TString str;
93  do
94  {
95  str.ReadLine(fin);
96  if (!fin)
97  return fin;
98  } while (str[0]=='#');
99 
100  Float_t v[4], mag;
101  Int_t n = sscanf(str.Data(), "%f %f %f %f %*f %*f %*f %*f %*f %*f %f", v, v+1, v+2, v+3, &mag);
102  if (n<4)
103  {
104  cout << "Read: ERROR - Not enough numbers" << endl;
105  return fin;
106  }
107  set.fMag = n<5 ? -25 : mag;
108 
109  set.fStarAz = v[0]*TMath::DegToRad();
110  set.fStarEl = v[1]*TMath::DegToRad();
111 
112  set.fRawAz = v[2]*TMath::DegToRad();
113  set.fRawEl = v[3]*TMath::DegToRad();
114 
115 
116 
117  if (fin)
118  {
119  Double_t res, err;
120  res = set.GetResidual(&err);
121  cout << "Read: " << v[0] << " " << v[1] << " : " << v[2] << " " << v[3] << " : " << v[2]-v[0] << " " << v[3]-v[1] << " : " << res << " " << err << " " << err/res << endl;
122  }
123 
124  return fin;
125 }
char str[80]
Definition: test_client.c:7
float mag
Definition: HeadersSQM.h:89