Changeset 1842 for trunk/MagicSoft/Mars
- Timestamp:
- 03/19/03 16:38:30 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/estfit.C
r1840 r1842 18 18 void fcn(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t iflag) 19 19 { 20 MEvtLoop &evtloop = *(MEvtLoop*)gMinuit->GetObjectFit();20 MEvtLoop *evtloop = (MEvtLoop*)gMinuit->GetObjectFit(); 21 21 22 MTaskList &tlist = *(MTaskList*)evtloop.GetParList()->FindObject("MTaskList"); //GetTaskList();22 MTaskList *tlist = (MTaskList*)evtloop->GetParList()->FindObject("MTaskList"); //GetTaskList(); 23 23 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"); 26 26 27 eest .SetCoeff(TArrayD(eest.GetNumCoeff(), par));27 eest->SetCoeff(TArrayD(eest->GetNumCoeff(), par)); 28 28 29 evtloop .Eventloop();29 evtloop->Eventloop(); 30 30 31 f = eval .GetChisq();31 f = eval->GetChisq(); 32 32 } 33 33
Note:
See TracChangeset
for help on using the changeset viewer.