FACT++  1.0
void TPointGui::DisplayBending ( )
private

Definition at line 376 of file TPointGui.cc.

References fBending, fLabel, Tools::Form(), MPointing::GetError(), MPointing::GetNumPar(), MPointing::GetParameters(), and i.

Referenced by ProcessMessage(), and TPointGui().

377 {
378  TArrayD par, err;
379  fBending.GetParameters(par);
380  fBending.GetError(err);
381 
382  TGLabel *l;
383 
384  for (int i=0; i<MPointing::GetNumPar(); i++)
385  {
386  l = (TGLabel*)fLabel.At(i);
387  l->SetText(Form("%.4f\xb0", par[i]));
388 
389  l = (TGLabel*)fLabel.At(MPointing::GetNumPar()+i);
390  l->SetText(Form("\xb1 %8.4f\xb0", err[i]>0?err[i]:0));
391  }
392 }
void GetParameters(Double_t *par, Int_t n=kNumPar) const
Definition: MPointing.cc:754
int i
Definition: db_dim_client.c:21
static const Int_t GetNumPar()
Definition: MPointing.h:308
TList fLabel
Definition: TPointGui.h:43
void GetError(TArrayD &par) const
Definition: MPointing.cc:760
std::string Form(const char *fmt,...)
Definition: tools.cc:45
MPointing fBending
Definition: TPointGui.h:45

+ Here is the call graph for this function:

+ Here is the caller graph for this function: