Ignore:
Timestamp:
01/21/05 11:39:23 (20 years ago)
Author:
domingo
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MFindDisp.cc

    r5904 r5926  
    203203
    204204    // 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");
    207207
    208208    // objects of MHDisp where the second part of the matrices mapping is defined
     
    844844    // create container for the Disp parameters
    845845    // and set them to their initial values
    846     MDispParameters dispparams;
     846    MDispParameters *dispparams = fDispCalcTrain->GetDispParameters();
    847847
    848848    // take initial values from file parDispInit
     
    850850    {
    851851      TFile inparam(parDispInit);
    852       dispparams.Read("MDispParameters");
     852      dispparams->Read("MDispParameters");
    853853      inparam.Close();
    854854      *fLog << "MFindDisp::FindParams; initial values of parameters are taken from file "
     
    863863        *fLog << "MFindDisp::FindParams; initial values of parameters are taken from 'params'"
    864864              << endl;
    865         dispparams.SetParameters(params);
     865        dispparams->SetParameters(params);
    866866      }
    867867      if (steps.GetSize()  != 0)
     
    869869        *fLog << "MFindDisp::FindParams; initial step sizes are taken from 'steps'"
    870870              << endl;
    871         dispparams.SetStepsizes(steps);
     871        dispparams->SetStepsizes(steps);
    872872      }
    873873    }
     
    885885   
    886886    parlistfcn.AddToList(&tasklistfcn);
    887     parlistfcn.AddToList(&dispparams);
     887    parlistfcn.AddToList(dispparams);
    888888    parlistfcn.AddToList(fHDispTrain);
    889889    parlistfcn.AddToList(fCam);
     
    925925
    926926    // get initial values of parameters
    927     fVinit = dispparams.GetParameters();
    928     fStep  = dispparams.GetStepsizes();
     927    fVinit = dispparams->GetParameters();
     928    fStep  = dispparams->GetStepsizes();
    929929
    930930    TString name[fVinit.GetSize()];
     
    992992   
    993993    TFile outparam(fFilenameParam, "RECREATE");
    994     dispparams.Write();
     994    dispparams->Write();
    995995    outparam.Close();
    996996
     
    998998              << fFilenameParam << "' :" << endl;
    999999
    1000     const TArrayD &check = dispparams.GetParameters();
     1000    const TArrayD &check = dispparams->GetParameters();
    10011001    for (Int_t i=0; i<check.GetSize(); i++)
    10021002        *fLog << check[i] << ",  ";
     
    10641064    MTaskList tasklist2;
    10651065
    1066     MDispParameters dispparams;
    1067     dispparams.SetParameters(dispPar);
     1066    MDispParameters *dispparams = fDispCalcTest->GetDispParameters();
     1067    dispparams->SetParameters(dispPar);
    10681068
    10691069    MMatrixLoop loopcalc(fMatrixTestCalc);
     
    11071107
    11081108    parlist2.AddToList(&tasklist2);
    1109     parlist2.AddToList(&dispparams);
     1109    parlist2.AddToList(dispparams);
    11101110    parlist2.AddToList(&hdisp1);
    11111111    parlist2.AddToList(&hdisp2);
Note: See TracChangeset for help on using the changeset viewer.