FACT++  1.0
void TPointGui::Fcn ( Int_t &  ,
Double_t *  ,
Double_t &  f,
Double_t *  par,
Int_t   
)
private

Definition at line 305 of file TPointGui.cc.

References fAzMax, fAzMin, fCoordinates, fMagMax, fZdMax, fZdMin, i, and MPointing::SetParameters().

Referenced by fcn().

306 {
307  f = 0;
308 
309  MPointing bend;
310  bend.SetParameters(par); // Set Parameters [deg] to MPointing
311 
312  int cnt = 0;
313  for (int i=0; i<fCoordinates.GetSize(); i++)
314  {
315  TPointStar set = *(TPointStar*)fCoordinates.At(i);
316 
317  if (set.GetStarZd()<fZdMin || set.GetStarZd()>fZdMax ||
318  set.GetStarAz()<fAzMin || set.GetStarAz()>fAzMax ||
319  set.GetMag() >fMagMax)
320  continue;
321 
322  set.Adjust(bend);
323 
324  Double_t err = 0.0043; // [deg]
325  Double_t res = set.GetResidual();//(&err);
326  res /= err;
327 
328  f += res*res;
329  cnt++;
330  }
331 
332  f /= cnt;
333 }
int i
Definition: db_dim_client.c:21
Float_t fAzMax
Definition: TPointGui.h:54
TList fCoordinates
Definition: TPointGui.h:42
void SetParameters(const Double_t *par, Int_t n=kNumPar)
Definition: MPointing.cc:746
Float_t fMagMax
Definition: TPointGui.h:57
Float_t fAzMin
Definition: TPointGui.h:53
Float_t fZdMax
Definition: TPointGui.h:56
Float_t fZdMin
Definition: TPointGui.h:55

+ Here is the call graph for this function:

+ Here is the caller graph for this function: