Changeset 500 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Oct 22, 1999, 8:12:02 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/servnobjm.cc
r495 r500 185 185 double xx; 186 186 double dx = (xmax-xmin)/np; 187 188 try { 189 for(k=0; k<np; k++) { xx = xmin+dx*k; (*vpy)(k) = f(xx); } 190 } 187 191 #ifdef SANS_EVOLPLANCK 188 TRY { 189 for(k=0; k<np; k++) { xx = xmin+dx*k; (*vpy)(k) = f(xx); } 190 } CATCH(merr) { 192 CATCH(merr) { 191 193 fflush(stdout); 192 194 cout << endl; … … 198 200 } ENDTRY; 199 201 #else 200 try {201 for(k=0; k<np; k++) { xx = xmin+dx*k; (*vpy)(k) = f(xx); }202 }203 202 catch ( PException exc ) { 204 203 fflush(stdout); … … 256 255 double dy = (ymax-ymin)/npy; 257 256 // printf(" -- DBG -- %d %d , %g %g , %g %g \n", npx, npy, xmin, xmax, ymin, ymax); 258 #ifdef SANS_EVOLPLANCK 259 TRY { 257 try { 260 258 for(j=0; j<npy; j++) { 261 259 yy = ymin+dy*j; … … 265 263 } 266 264 } 267 } CATCH(merr) { 265 } 266 #ifdef SANS_EVOLPLANCK 267 CATCH(merr) { 268 268 fflush(stdout); 269 269 cout << endl; … … 274 274 } ENDTRY; 275 275 #else 276 try {277 for(j=0; j<npy; j++) {278 yy = ymin+dy*j;279 for(i=0; i<npx; i++) {280 xx = xmin+dx*i;281 (*mtx)(j, i) = f(xx, yy);282 }283 }284 }285 276 catch ( PException exc ) { 286 277 fflush(stdout); … … 864 855 if (dk <= 0) dk = 1; 865 856 866 TRY{857 try { 867 858 double* xn; 868 859 int kmax = k2; … … 877 868 } 878 869 } 870 #ifdef SANS_EVOLPLANCK 879 871 CATCH(merr) { 880 872 fflush(stdout); … … 884 876 cerr << "Services2NObjMgr::FillNTFrCFile() Exception :" << merr << es; 885 877 } ENDTRY; 878 #else 879 catch ( PException exc ) { 880 fflush(stdout); 881 cout << endl; 882 cerr << endl; 883 cerr << "Services2NObjMgr::FillNTFrCFile() Exception :" << exc.Msg() << endl; 884 } 885 #endif 886 886 887 887 if (adel) delete objnt; // Delete de l'objet NTupleInterface si necessaire … … 1046 1046 if (k2 > objnt->NbLines()) k2 = objnt->NbLines(); 1047 1047 if (dk <= 0) dk = 1; 1048 TRY { 1048 1049 try { 1049 1050 double* xn; 1050 1051 for(k=k1; k<k2; k += dk) { … … 1061 1062 } 1062 1063 } 1064 #ifdef SANS_EVOLPLANCK 1063 1065 CATCH(merr) { 1064 1066 fflush(stdout); … … 1068 1070 cerr << "Services2NObjMgr::ComputeExpressions() Exception :" << merr << es; 1069 1071 } ENDTRY; 1070 1072 #else 1073 catch ( PException exc ) { 1074 fflush(stdout); 1075 cout << endl; 1076 cerr << endl; 1077 cerr << "Services2NObjMgr::ComputeExpressions() Exception :" << exc.Msg() << endl; 1078 } 1079 #endif 1071 1080 1072 1081 if (adel) delete objnt; // Delete de l'objet NTupleInterface si necessaire
Note:
See TracChangeset
for help on using the changeset viewer.