Changeset 495 in Sophya for trunk/SophyaPI/PIext/servnobjm.cc
- Timestamp:
- Oct 21, 1999, 8:58:45 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/servnobjm.cc
r466 r495 23 23 #include "ntuple.h" 24 24 #include "cimage.h" 25 #include "fitsimage.h"26 25 27 26 #include "histos.h" … … 62 61 ObjAdaptList::iterator it; 63 62 for(it = objadaplist.begin(); it != objadaplist.end(); it++) 63 #ifdef SANS_EVOLPLANCK 64 64 if (typeid(*o) == typeid(*((*it).obj))) THROW(dupIdErr); 65 65 #else 66 if (typeid(*o) == typeid(*((*it).obj))) 67 throw(DuplicateIdExc("Services2NObjMgr::RegisterClass() - Duplicate class")); 68 #endif 66 69 dataobj_adapter oba; 67 70 oba.obj = o; … … 182 185 double xx; 183 186 double dx = (xmax-xmin)/np; 187 #ifdef SANS_EVOLPLANCK 184 188 TRY { 185 189 for(k=0; k<np; k++) { xx = xmin+dx*k; (*vpy)(k) = f(xx); } … … 193 197 vpy = NULL; 194 198 } ENDTRY; 195 199 #else 200 try { 201 for(k=0; k<np; k++) { xx = xmin+dx*k; (*vpy)(k) = f(xx); } 202 } 203 catch ( PException exc ) { 204 fflush(stdout); 205 cout << endl; 206 cerr << endl; 207 cerr << "Services2NObjMgr::PlotFunc() Exception :" << exc.Msg() << endl; 208 delete vpy; 209 vpy = NULL; 210 } 211 #endif 196 212 197 213 if (vpy) { … … 240 256 double dy = (ymax-ymin)/npy; 241 257 // printf(" -- DBG -- %d %d , %g %g , %g %g \n", npx, npy, xmin, xmax, ymin, ymax); 258 #ifdef SANS_EVOLPLANCK 242 259 TRY { 243 260 for(j=0; j<npy; j++) { … … 256 273 delete mtx; mtx = NULL; 257 274 } ENDTRY; 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 catch ( PException exc ) { 286 fflush(stdout); 287 cout << endl; 288 cerr << endl; 289 cerr << "Services2NObjMgr::PlotFunc2D() Exception :" << exc.Msg() << endl; 290 delete mtx; mtx = NULL; 291 } 292 #endif 258 293 259 294 if (mtx) {
Note:
See TracChangeset
for help on using the changeset viewer.