Changeset 5923 for trunk/MagicSoft/Mars/mtemp/mifae/library/MDispCalc.cc
- Timestamp:
- 01/21/05 11:10:38 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/library/MDispCalc.cc
r5904 r5923 82 82 fTitle = title ? title : "Class to calculate Disp"; 83 83 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 84 92 fMatrix = NULL; 85 93 86 94 // initialize mapping array dimension to the number of columns of fMatrix 87 95 fMap.Set(kTotVar); 96 } 97 98 99 // -------------------------------------------------------------------------- 100 // 101 // Default destructor. 102 // 103 MDispCalc::~MDispCalc() 104 { 105 delete fDispParameters; 88 106 } 89 107 … … 114 132 return kFALSE; 115 133 } 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);125 134 126 135
Note:
See TracChangeset
for help on using the changeset viewer.