Ignore:
Timestamp:
03/19/03 16:38:30 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/estfit.C

    r1840 r1842  
    1818void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag)
    1919{
    20     MEvtLoop &evtloop = *(MEvtLoop*)gMinuit->GetObjectFit();
     20    MEvtLoop *evtloop = (MEvtLoop*)gMinuit->GetObjectFit();
    2121
    22     MTaskList &tlist  = *(MTaskList*)evtloop.GetParList()->FindObject("MTaskList"); //GetTaskList();
     22    MTaskList *tlist  = (MTaskList*)evtloop->GetParList()->FindObject("MTaskList"); //GetTaskList();
    2323
    24     MChisqEval      &eval = *(MChisqEval*)     tlist.FindObject("MChisqEval");
    25     MEnergyEstParam &eest = *(MEnergyEstParam*)tlist.FindObject("MEnergyEstParam");
     24    MChisqEval      *eval = (MChisqEval*)     tlist->FindObject("MChisqEval");
     25    MEnergyEstParam *eest = (MEnergyEstParam*)tlist->FindObject("MEnergyEstParam");
    2626
    27     eest.SetCoeff(TArrayD(eest.GetNumCoeff(), par));
     27    eest->SetCoeff(TArrayD(eest->GetNumCoeff(), par));
    2828
    29     evtloop.Eventloop();
     29    evtloop->Eventloop();
    3030
    31     f = eval.GetChisq();
     31    f = eval->GetChisq();
    3232}
    3333
Note: See TracChangeset for help on using the changeset viewer.