Changeset 5926 for trunk/MagicSoft
- Timestamp:
- 01/21/05 11:39:23 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/library/MFindDisp.cc
r5904 r5926 203 203 204 204 // objects of MDispCalc where the first part of the matrices mapping is defined 205 fDispCalcTrain = new MDispCalc("DispTrain" );206 fDispCalcTest = new MDispCalc("DispTest" );205 fDispCalcTrain = new MDispCalc("DispTrain","MDispParameters"); 206 fDispCalcTest = new MDispCalc("DispTest","MDispParametersTest"); 207 207 208 208 // objects of MHDisp where the second part of the matrices mapping is defined … … 844 844 // create container for the Disp parameters 845 845 // and set them to their initial values 846 MDispParameters dispparams;846 MDispParameters *dispparams = fDispCalcTrain->GetDispParameters(); 847 847 848 848 // take initial values from file parDispInit … … 850 850 { 851 851 TFile inparam(parDispInit); 852 dispparams .Read("MDispParameters");852 dispparams->Read("MDispParameters"); 853 853 inparam.Close(); 854 854 *fLog << "MFindDisp::FindParams; initial values of parameters are taken from file " … … 863 863 *fLog << "MFindDisp::FindParams; initial values of parameters are taken from 'params'" 864 864 << endl; 865 dispparams .SetParameters(params);865 dispparams->SetParameters(params); 866 866 } 867 867 if (steps.GetSize() != 0) … … 869 869 *fLog << "MFindDisp::FindParams; initial step sizes are taken from 'steps'" 870 870 << endl; 871 dispparams .SetStepsizes(steps);871 dispparams->SetStepsizes(steps); 872 872 } 873 873 } … … 885 885 886 886 parlistfcn.AddToList(&tasklistfcn); 887 parlistfcn.AddToList( &dispparams);887 parlistfcn.AddToList(dispparams); 888 888 parlistfcn.AddToList(fHDispTrain); 889 889 parlistfcn.AddToList(fCam); … … 925 925 926 926 // get initial values of parameters 927 fVinit = dispparams .GetParameters();928 fStep = dispparams .GetStepsizes();927 fVinit = dispparams->GetParameters(); 928 fStep = dispparams->GetStepsizes(); 929 929 930 930 TString name[fVinit.GetSize()]; … … 992 992 993 993 TFile outparam(fFilenameParam, "RECREATE"); 994 dispparams .Write();994 dispparams->Write(); 995 995 outparam.Close(); 996 996 … … 998 998 << fFilenameParam << "' :" << endl; 999 999 1000 const TArrayD &check = dispparams .GetParameters();1000 const TArrayD &check = dispparams->GetParameters(); 1001 1001 for (Int_t i=0; i<check.GetSize(); i++) 1002 1002 *fLog << check[i] << ", "; … … 1064 1064 MTaskList tasklist2; 1065 1065 1066 MDispParameters dispparams;1067 dispparams .SetParameters(dispPar);1066 MDispParameters *dispparams = fDispCalcTest->GetDispParameters(); 1067 dispparams->SetParameters(dispPar); 1068 1068 1069 1069 MMatrixLoop loopcalc(fMatrixTestCalc); … … 1107 1107 1108 1108 parlist2.AddToList(&tasklist2); 1109 parlist2.AddToList( &dispparams);1109 parlist2.AddToList(dispparams); 1110 1110 parlist2.AddToList(&hdisp1); 1111 1111 parlist2.AddToList(&hdisp2);
Note:
See TracChangeset
for help on using the changeset viewer.