Changeset 3587 in Sophya for trunk/SophyaLib/NTools/generalfit.cc
- Timestamp:
- Mar 5, 2009, 2:26:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/generalfit.cc
r3572 r3587 161 161 ASSERT(mNPar<1000000); 162 162 163 TRY { 164 General_Init(); 165 } CATCHALL { 166 THROW_SAME; 167 } ENDTRY 168 163 General_Init(); 169 164 } 170 165 … … 202 197 ASSERT( mNPar < 1000000 ); 203 198 204 TRY { 205 General_Init(); 206 } CATCHALL { 207 THROW_SAME; 208 } ENDTRY 209 199 General_Init(); 210 200 } 211 201 … … 242 232 GetIntEnv("PDEBUG_GENERALFIT",debugLevel); 243 233 244 TRY{234 try { 245 235 fixParam = new unsigned short int[mNPar]; 246 236 boundParam = new unsigned short int[mNPar]; 247 237 nameParam = new string[mNPar]; 248 } CATCHALL { 238 } 239 catch (...) { 249 240 cout<<"GeneralFit::GeneralFit Impossible d'allouer l'espace"<<endl; 250 THROW_SAME;251 } ENDTRY 241 throw AllocationError("GeneralFit::GeneralFit() error allocating with new ..."); 242 } 252 243 253 244 Param = (double) 0.; … … 910 901 911 902 // Calcul de la matrice des covariances 912 #ifdef __mac__ 913 COVAR = SimpleMatrixOperation<r_8>::Inverse(ATGA); /* $CHECK$ Reza 10/3/2000 */ 914 #else 915 TRY { 903 try { 916 904 COVAR = SimpleMatrixOperation<r_8>::Inverse(ATGA); /* $CHECK$ Reza 10/3/2000 */ 917 } CATCHALL { 905 } 906 catch (MathExc& exc) { 918 907 if(debugLevel>0) { 908 cout<<"GeneralFit::Fit()/Exception:" << exc.what() << endl; 919 909 cout<<"Pb inversion matrice ATGA:"<<endl; 920 910 cout<<ATGA; 921 911 } 922 912 return(-10); 923 } ENDTRY 924 #endif 913 } 925 914 926 915 if (debugLevel >= 3) {
Note:
See TracChangeset
for help on using the changeset viewer.