Changeset 5923 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/21/05 11:10:38 (20 years ago)
Author:
domingo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp/mifae/library
Files:
2 edited

Legend:

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

    r5904 r5923  
    8282    fTitle = title ? title : "Class to calculate Disp";
    8383
     84    // object of MDispParamteres that will hold the Disp parameters
     85    fDispParameters = new MDispParameters(fDispParametersName);
     86    // initialize the size of the Disp parameters and parameters stepsizes arrays
     87    fDispParameters->GetParameters().Set(nPars);
     88    fDispParameters->GetStepsizes().Set(nPars);
     89    // set Disp parameters to their default values
     90    fDispParameters->InitParameters();
     91
    8492    fMatrix = NULL;
    8593
    8694    // initialize mapping array dimension to the number of columns of fMatrix
    8795    fMap.Set(kTotVar);
     96}
     97
     98
     99// --------------------------------------------------------------------------
     100//
     101// Default destructor.
     102//
     103MDispCalc::~MDispCalc()
     104{
     105    delete fDispParameters;
    88106}
    89107
     
    114132        return kFALSE;
    115133    }
    116 
    117     fDispParameters = (MDispParameters*)pList->FindObject(fDispParametersName, "MDispParameters");
    118     if (!fDispParameters)
    119     {
    120         *fLog << err << fDispParametersName << " [MDispParameters] not found... aborting." << endl;
    121         return kFALSE;
    122     }
    123     fDispParameters->GetParameters().Set(nPars);
    124     fDispParameters->GetStepsizes().Set(nPars);
    125134
    126135
  • trunk/MagicSoft/Mars/mtemp/mifae/library/MHDisp.cc

    r5904 r5923  
    265265    // if fMatrix exists, skip preprocessing and just read events from matrix;
    266266    // if doesn't exist, read variables values from containers, so look for them
    267     cout << "MHDisp::SetupFill:  fMatrix = " << fMatrix << endl;
    268 
    269267    if (fMatrix)
    270268      return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.