Changeset 1110 in Sophya
- Timestamp:
- Jul 28, 2000, 6:32:08 PM (25 years ago)
- Location:
- trunk/SophyaLib/NTools
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/Makefile
r919 r1110 3 3 all: $(LIB)libNTools.a 4 4 clean: 5 rm -f $(OBJ)cimage.o $(OBJ)cspline.o $(OBJ)datatypes.o $(OBJ)dates.o $(OBJ)difeq.o $(OBJ)dynccd.o $(OBJ)fct1dfit.o $(OBJ)fct2dfit.o $(OBJ)fftmserver.o $(OBJ)fftpserver.o $(OBJ)fftserver.o $(OBJ)fftservintf.o $(OBJ)generaldata.o $(OBJ)generalfit.o $(OBJ)imageop.o $(OBJ)integ.o $(OBJ)median.o $(OBJ)ntoolsinit.o $(OBJ)ntupintf.o $(OBJ)objfitter.o $(OBJ)perandom.o $(OBJ)poly.o $(OBJ)rk4cdifeq.o $(OBJ) rzimage.o $(OBJ)simplesort.o $(OBJ)tabmath.o $(OBJ)datime.o $(OBJ)fftmayer_r4.o $(OBJ)fftmayer_r8.o $(OBJ)fftpackc.o $(OBJ)matxop.o $(OBJ)nbmath.o $(OBJ)nbtri.o5 rm -f $(OBJ)cimage.o $(OBJ)cspline.o $(OBJ)datatypes.o $(OBJ)dates.o $(OBJ)difeq.o $(OBJ)dynccd.o $(OBJ)fct1dfit.o $(OBJ)fct2dfit.o $(OBJ)fftmserver.o $(OBJ)fftpserver.o $(OBJ)fftserver.o $(OBJ)fftservintf.o $(OBJ)generaldata.o $(OBJ)generalfit.o $(OBJ)imageop.o $(OBJ)integ.o $(OBJ)median.o $(OBJ)ntoolsinit.o $(OBJ)ntupintf.o $(OBJ)objfitter.o $(OBJ)perandom.o $(OBJ)poly.o $(OBJ)rk4cdifeq.o $(OBJ)simplesort.o $(OBJ)tabmath.o $(OBJ)datime.o $(OBJ)fftmayer_r4.o $(OBJ)fftmayer_r8.o $(OBJ)fftpackc.o $(OBJ)matxop.o $(OBJ)nbmath.o $(OBJ)nbtri.o 6 6 rm -f $(LIB)libNTools.a 7 $(LIB)libNTools.a : $(OBJ)cimage.o $(OBJ)cspline.o $(OBJ)datatypes.o $(OBJ)dates.o $(OBJ)datime.o $(OBJ)difeq.o $(OBJ)dynccd.o $(OBJ)fct1dfit.o $(OBJ)fct2dfit.o $(OBJ)fftmayer_r4.o $(OBJ)fftmayer_r8.o $(OBJ)fftmserver.o $(OBJ)fftpackc.o $(OBJ)fftpserver.o $(OBJ)fftserver.o $(OBJ)fftservintf.o $(OBJ)generaldata.o $(OBJ)generalfit.o $(OBJ)i mageop.o $(OBJ)integ.o $(OBJ)matxop.o $(OBJ)median.o $(OBJ)nbmath.o $(OBJ)nbtri.o $(OBJ)ntoolsinit.o $(OBJ)ntupintf.o $(OBJ)objfitter.o $(OBJ)perandom.o $(OBJ)poly.o $(OBJ)rk4cdifeq.o $(OBJ)rzimage.o $(OBJ)simplesort.o $(OBJ)tabmath.o7 $(LIB)libNTools.a : $(OBJ)cimage.o $(OBJ)cspline.o $(OBJ)datatypes.o $(OBJ)dates.o $(OBJ)datime.o $(OBJ)difeq.o $(OBJ)dynccd.o $(OBJ)fct1dfit.o $(OBJ)fct2dfit.o $(OBJ)fftmayer_r4.o $(OBJ)fftmayer_r8.o $(OBJ)fftmserver.o $(OBJ)fftpackc.o $(OBJ)fftpserver.o $(OBJ)fftserver.o $(OBJ)fftservintf.o $(OBJ)generaldata.o $(OBJ)generalfit.o $(OBJ)integ.o $(OBJ)matxop.o $(OBJ)median.o $(OBJ)nbmath.o $(OBJ)nbtri.o $(OBJ)ntoolsinit.o $(OBJ)ntupintf.o $(OBJ)objfitter.o $(OBJ)perandom.o $(OBJ)poly.o $(OBJ)rk4cdifeq.o $(OBJ)simplesort.o $(OBJ)tabmath.o 8 8 $(ARCXX) $(ARCXXFLAGS) $@ $? 9 9 ifeq ($(CXX),cxx) … … 11 11 endif 12 12 13 $(OBJ)cimage.o: cimage.cc $(INC)machdefs.h \ 14 $(INC)perrors.h \ 15 $(INC)pexceptions.h cimage.h rzimage.h \ 16 rzvect.h datatypes.h $(INC)ppersist.h \ 17 $(INC)gnumd5.h \ 18 $(INC)dvlist.h \ 19 $(INC)objfio.h \ 20 $(INC)anydataobj.h fct1dfit.h generalfit.h \ 21 $(INC)tvector.h \ 22 $(INC)tmatrix.h \ 23 $(INC)tarray.h \ 24 $(INC)basarr.h \ 25 $(INC)ndatablock.h \ 26 $(INC)utilarr.h generaldata.h ntupintf.h \ 27 poly.h peida.h $(INC)utils.h fmath.h \ 28 $(INC)histos.h \ 29 $(INC)peida.h nbconst.h 30 $(OBJ)cspline.o: cspline.cc $(INC)machdefs.h \ 31 nbtri.h cspline.h $(INC)pexceptions.h 13 $(OBJ)cimage.o: cimage.cc \ 14 $(INC)machdefs.h \ 15 $(INC)pexceptions.h cimage.h \ 16 $(INC)tmatrix.h \ 17 $(INC)tarray.h \ 18 $(INC)basarr.h \ 19 $(INC)anydataobj.h \ 20 $(INC)mutyv.h \ 21 $(INC)dvlist.h \ 22 $(INC)objfio.h \ 23 $(INC)ppersist.h \ 24 $(INC)gnumd5.h \ 25 $(INC)ndatablock.h \ 26 $(INC)utilarr.h 27 $(OBJ)cspline.o: cspline.cc \ 28 $(INC)machdefs.h nbtri.h \ 29 cspline.h $(INC)pexceptions.h 32 30 $(OBJ)datatypes.o: datatypes.cc datatypes.h \ 33 31 $(INC)machdefs.h 34 $(OBJ)dates.o: dates.cc $(INC)machdefs.h \ 32 $(OBJ)dates.o: dates.cc \ 33 $(INC)machdefs.h \ 35 34 $(INC)perrors.h \ 36 35 $(INC)pexceptions.h dates.h 37 $(OBJ)difeq.o: difeq.cc difeq.h $(INC)machdefs.h \ 38 $(INC)pexceptions.h \ 39 $(INC)tvector.h \ 40 $(INC)tmatrix.h \ 41 $(INC)tarray.h \ 42 $(INC)basarr.h \ 43 $(INC)anydataobj.h \ 36 $(OBJ)difeq.o: difeq.cc difeq.h \ 37 $(INC)machdefs.h \ 38 $(INC)pexceptions.h \ 39 $(INC)tvector.h \ 40 $(INC)tmatrix.h \ 41 $(INC)tarray.h \ 42 $(INC)basarr.h \ 43 $(INC)anydataobj.h \ 44 $(INC)mutyv.h \ 44 45 $(INC)dvlist.h \ 45 46 $(INC)objfio.h \ … … 49 50 $(INC)utilarr.h \ 50 51 $(INC)ctimer.h 51 $(OBJ)dynccd.o: dynccd.cc $(INC)machdefs.h fmath.h \ 52 $(OBJ)dynccd.o: dynccd.cc \ 53 $(INC)machdefs.h fmath.h \ 52 54 perandom.h $(INC)histos.h \ 53 55 $(INC)objfio.h \ … … 64 66 $(INC)tarray.h \ 65 67 $(INC)basarr.h \ 68 $(INC)mutyv.h \ 66 69 $(INC)dvlist.h \ 67 70 $(INC)ndatablock.h \ 68 71 $(INC)utilarr.h nbrandom.h \ 69 $(INC)srandgen.h cimage.h rzimage.h rzvect.h \ 70 datatypes.h dynccd.h 71 $(OBJ)fct1dfit.o: fct1dfit.cc $(INC)machdefs.h \ 72 fct1dfit.h generalfit.h $(INC)pexceptions.h \ 73 $(INC)tvector.h \ 74 $(INC)tmatrix.h \ 75 $(INC)tarray.h \ 76 $(INC)basarr.h \ 77 $(INC)anydataobj.h \ 78 $(INC)dvlist.h \ 79 $(INC)objfio.h \ 80 $(INC)ppersist.h \ 81 $(INC)gnumd5.h \ 82 $(INC)ndatablock.h \ 83 $(INC)utilarr.h generaldata.h ntupintf.h \ 84 poly.h peida.h $(INC)utils.h \ 85 $(INC)perrors.h fmath.h nbconst.h tabmath.h 86 $(OBJ)fct2dfit.o: fct2dfit.cc $(INC)machdefs.h \ 87 fct2dfit.h generalfit.h $(INC)pexceptions.h \ 88 $(INC)tvector.h \ 89 $(INC)tmatrix.h \ 90 $(INC)tarray.h \ 91 $(INC)basarr.h \ 92 $(INC)anydataobj.h \ 93 $(INC)dvlist.h \ 94 $(INC)objfio.h \ 95 $(INC)ppersist.h \ 96 $(INC)gnumd5.h \ 97 $(INC)ndatablock.h \ 98 $(INC)utilarr.h generaldata.h ntupintf.h \ 99 poly.h peida.h $(INC)utils.h \ 100 $(INC)perrors.h fmath.h nbconst.h tabmath.h \ 101 simps2d.h 72 $(INC)srandgen.h cimage.h \ 73 dynccd.h 74 $(OBJ)fct1dfit.o: fct1dfit.cc \ 75 $(INC)machdefs.h fct1dfit.h \ 76 generalfit.h $(INC)pexceptions.h \ 77 $(INC)tvector.h \ 78 $(INC)tmatrix.h \ 79 $(INC)tarray.h \ 80 $(INC)basarr.h \ 81 $(INC)anydataobj.h \ 82 $(INC)mutyv.h \ 83 $(INC)dvlist.h \ 84 $(INC)objfio.h \ 85 $(INC)ppersist.h \ 86 $(INC)gnumd5.h \ 87 $(INC)ndatablock.h \ 88 $(INC)utilarr.h generaldata.h \ 89 ntupintf.h poly.h peida.h \ 90 $(INC)utils.h \ 91 $(INC)perrors.h fmath.h \ 92 nbconst.h tabmath.h 93 $(OBJ)fct2dfit.o: fct2dfit.cc \ 94 $(INC)machdefs.h fct2dfit.h \ 95 generalfit.h $(INC)pexceptions.h \ 96 $(INC)tvector.h \ 97 $(INC)tmatrix.h \ 98 $(INC)tarray.h \ 99 $(INC)basarr.h \ 100 $(INC)anydataobj.h \ 101 $(INC)mutyv.h \ 102 $(INC)dvlist.h \ 103 $(INC)objfio.h \ 104 $(INC)ppersist.h \ 105 $(INC)gnumd5.h \ 106 $(INC)ndatablock.h \ 107 $(INC)utilarr.h generaldata.h \ 108 ntupintf.h poly.h peida.h \ 109 $(INC)utils.h \ 110 $(INC)perrors.h fmath.h \ 111 nbconst.h tabmath.h simps2d.h 102 112 $(OBJ)fftmserver.o: fftmserver.cc fftmserver.h fftservintf.h \ 103 113 $(INC)machdefs.h \ … … 107 117 $(INC)basarr.h \ 108 118 $(INC)anydataobj.h \ 119 $(INC)mutyv.h \ 109 120 $(INC)dvlist.h \ 110 121 $(INC)objfio.h \ … … 121 132 $(INC)basarr.h \ 122 133 $(INC)anydataobj.h \ 134 $(INC)mutyv.h \ 123 135 $(INC)dvlist.h \ 124 136 $(INC)objfio.h \ … … 135 147 $(INC)basarr.h \ 136 148 $(INC)anydataobj.h \ 149 $(INC)mutyv.h \ 137 150 $(INC)dvlist.h \ 138 151 $(INC)objfio.h \ … … 149 162 $(INC)basarr.h \ 150 163 $(INC)anydataobj.h \ 164 $(INC)mutyv.h \ 151 165 $(INC)dvlist.h \ 152 166 $(INC)objfio.h \ … … 158 172 $(OBJ)generaldata.o: generaldata.cc \ 159 173 $(INC)machdefs.h \ 160 $(INC)strutil.h nbtri.h generalfit.h \ 161 $(INC)pexceptions.h \ 162 $(INC)tvector.h \ 163 $(INC)tmatrix.h \ 164 $(INC)tarray.h \ 165 $(INC)basarr.h \ 166 $(INC)anydataobj.h \ 167 $(INC)dvlist.h \ 168 $(INC)objfio.h \ 169 $(INC)ppersist.h \ 170 $(INC)gnumd5.h \ 171 $(INC)ndatablock.h \ 172 $(INC)utilarr.h generaldata.h ntupintf.h \ 173 poly.h peida.h $(INC)utils.h \ 174 $(INC)strutil.h nbtri.h \ 175 generalfit.h $(INC)pexceptions.h \ 176 $(INC)tvector.h \ 177 $(INC)tmatrix.h \ 178 $(INC)tarray.h \ 179 $(INC)basarr.h \ 180 $(INC)anydataobj.h \ 181 $(INC)mutyv.h \ 182 $(INC)dvlist.h \ 183 $(INC)objfio.h \ 184 $(INC)ppersist.h \ 185 $(INC)gnumd5.h \ 186 $(INC)ndatablock.h \ 187 $(INC)utilarr.h generaldata.h \ 188 ntupintf.h poly.h peida.h \ 189 $(INC)utils.h \ 174 190 $(INC)perrors.h fmath.h 175 $(OBJ)generalfit.o: generalfit.cc $(INC)machdefs.h \ 191 $(OBJ)generalfit.o: generalfit.cc \ 192 $(INC)machdefs.h \ 176 193 $(INC)pexceptions.h generalfit.h \ 177 194 $(INC)tvector.h \ … … 180 197 $(INC)basarr.h \ 181 198 $(INC)anydataobj.h \ 182 $(INC)dvlist.h \ 183 $(INC)objfio.h \ 184 $(INC)ppersist.h \ 185 $(INC)gnumd5.h \ 186 $(INC)ndatablock.h \ 187 $(INC)utilarr.h generaldata.h ntupintf.h \ 188 poly.h peida.h $(INC)utils.h \ 199 $(INC)mutyv.h \ 200 $(INC)dvlist.h \ 201 $(INC)objfio.h \ 202 $(INC)ppersist.h \ 203 $(INC)gnumd5.h \ 204 $(INC)ndatablock.h \ 205 $(INC)utilarr.h generaldata.h \ 206 ntupintf.h poly.h peida.h \ 207 $(INC)utils.h \ 189 208 $(INC)perrors.h fmath.h \ 190 209 $(INC)sopemtx.h 191 $(OBJ)imageop.o: imageop.cc $(INC)machdefs.h \ 192 simplesort.h peida.h $(INC)utils.h \ 193 $(INC)perrors.h \ 194 $(INC)pexceptions.h fmath.h nbmath.h \ 195 $(INC)smathconst.h \ 196 $(INC)histos.h \ 197 $(INC)objfio.h \ 198 $(INC)anydataobj.h \ 199 $(INC)ppersist.h \ 200 $(INC)gnumd5.h \ 201 $(INC)peida.h \ 202 $(INC)tvector.h \ 203 $(INC)tmatrix.h \ 204 $(INC)tarray.h \ 205 $(INC)basarr.h \ 206 $(INC)dvlist.h \ 207 $(INC)ndatablock.h \ 208 $(INC)utilarr.h datatypes.h imageop.h \ 209 cimage.h rzimage.h rzvect.h cspline.h dynccd.h nbtri.h 210 $(OBJ)integ.o: integ.cc integ.h $(INC)machdefs.h \ 210 $(OBJ)integ.o: integ.cc integ.h \ 211 $(INC)machdefs.h \ 211 212 $(INC)pexceptions.h generalfit.h \ 212 213 $(INC)tvector.h \ … … 215 216 $(INC)basarr.h \ 216 217 $(INC)anydataobj.h \ 217 $(INC)dvlist.h \ 218 $(INC)objfio.h \ 219 $(INC)ppersist.h \ 220 $(INC)gnumd5.h \ 221 $(INC)ndatablock.h \ 222 $(INC)utilarr.h generaldata.h ntupintf.h \ 223 poly.h peida.h $(INC)utils.h \ 218 $(INC)mutyv.h \ 219 $(INC)dvlist.h \ 220 $(INC)objfio.h \ 221 $(INC)ppersist.h \ 222 $(INC)gnumd5.h \ 223 $(INC)ndatablock.h \ 224 $(INC)utilarr.h generaldata.h \ 225 ntupintf.h poly.h peida.h \ 226 $(INC)utils.h \ 224 227 $(INC)perrors.h fmath.h 225 228 $(OBJ)median.o: median.cc 226 $(OBJ)ntoolsinit.o: ntoolsinit.cc $(INC)machdefs.h \ 227 ntoolsinit.h $(INC)tarrinit.h \ 229 $(OBJ)ntoolsinit.o: ntoolsinit.cc \ 230 $(INC)machdefs.h ntoolsinit.h \ 231 $(INC)tarrinit.h \ 228 232 $(INC)sophyainit.h poly.h \ 229 233 $(INC)objfio.h \ … … 238 242 $(INC)tarray.h \ 239 243 $(INC)basarr.h \ 240 $(INC) dvlist.h \241 $(INC) ndatablock.h \242 $(INC) utilarr.h generaldata.h ntupintf.h \243 cimage.h rzimage.h rzvect.h datatypes.h tabmath.h nbconst.h dates.h \244 datime.h244 $(INC)mutyv.h \ 245 $(INC)dvlist.h \ 246 $(INC)ndatablock.h \ 247 $(INC)utilarr.h generaldata.h \ 248 ntupintf.h cimage.h tabmath.h nbconst.h dates.h datime.h 245 249 $(OBJ)ntupintf.o: ntupintf.cc ntupintf.h \ 246 250 $(INC)machdefs.h … … 251 255 $(INC)basarr.h \ 252 256 $(INC)anydataobj.h \ 253 $(INC)dvlist.h \ 254 $(INC)objfio.h \ 255 $(INC)ppersist.h \ 256 $(INC)pexceptions.h \ 257 $(INC)gnumd5.h \ 258 $(INC)ndatablock.h \ 259 $(INC)utilarr.h \ 260 $(INC)tvector.h generalfit.h generaldata.h \ 261 ntupintf.h poly.h peida.h $(INC)utils.h \ 262 $(INC)perrors.h fmath.h 263 $(OBJ)perandom.o: perandom.cc $(INC)machdefs.h \ 257 $(INC)mutyv.h \ 258 $(INC)dvlist.h \ 259 $(INC)objfio.h \ 260 $(INC)ppersist.h \ 261 $(INC)pexceptions.h \ 262 $(INC)gnumd5.h \ 263 $(INC)ndatablock.h \ 264 $(INC)utilarr.h \ 265 $(INC)tvector.h \ 266 $(INC)histos.h \ 267 $(INC)peida.h \ 268 $(INC)utils.h \ 269 $(INC)perrors.h \ 270 $(INC)fmath.h \ 271 $(INC)histos2.h \ 272 $(INC)hisprof.h generalfit.h \ 273 generaldata.h ntupintf.h poly.h peida.h 274 $(OBJ)perandom.o: perandom.cc \ 275 $(INC)machdefs.h \ 264 276 $(INC)pexceptions.h perandom.h \ 265 277 $(INC)histos.h \ … … 276 288 $(INC)tarray.h \ 277 289 $(INC)basarr.h \ 290 $(INC)mutyv.h \ 278 291 $(INC)dvlist.h \ 279 292 $(INC)ndatablock.h \ 280 293 $(INC)utilarr.h nbrandom.h \ 281 294 $(INC)srandgen.h pemath.h 282 $(OBJ)poly.o: poly.cc $(INC)machdefs.h poly.h\283 $(INC)objfio.h \295 $(OBJ)poly.o: poly.cc $(INC)machdefs.h \ 296 poly.h $(INC)objfio.h \ 284 297 $(INC)anydataobj.h \ 285 298 $(INC)ppersist.h \ … … 292 305 $(INC)tarray.h \ 293 306 $(INC)basarr.h \ 307 $(INC)mutyv.h \ 294 308 $(INC)dvlist.h \ 295 309 $(INC)ndatablock.h \ … … 297 311 $(INC)sopemtx.h \ 298 312 $(INC)fioarr.h 299 $(OBJ)rk4cdifeq.o: rk4cdifeq.cc $(INC)machdefs.h \ 300 rk4cdifeq.h difeq.h $(INC)pexceptions.h \ 301 $(INC)tvector.h \ 302 $(INC)tmatrix.h \ 303 $(INC)tarray.h \ 304 $(INC)basarr.h \ 305 $(INC)anydataobj.h \ 313 $(OBJ)rk4cdifeq.o: rk4cdifeq.cc \ 314 $(INC)machdefs.h rk4cdifeq.h \ 315 difeq.h $(INC)pexceptions.h \ 316 $(INC)tvector.h \ 317 $(INC)tmatrix.h \ 318 $(INC)tarray.h \ 319 $(INC)basarr.h \ 320 $(INC)anydataobj.h \ 321 $(INC)mutyv.h \ 306 322 $(INC)dvlist.h \ 307 323 $(INC)objfio.h \ … … 311 327 $(INC)utilarr.h \ 312 328 $(INC)ctimer.h 313 $(OBJ)rzimage.o: rzimage.cc $(INC)machdefs.h \ 314 rzimage.h rzvect.h $(INC)pexceptions.h \ 315 $(INC)perrors.h datatypes.h \ 316 $(INC)ppersist.h \ 317 $(INC)gnumd5.h \ 318 $(INC)dvlist.h \ 319 $(INC)objfio.h \ 320 $(INC)anydataobj.h generalfit.h \ 321 $(INC)tvector.h \ 322 $(INC)tmatrix.h \ 323 $(INC)tarray.h \ 324 $(INC)basarr.h \ 325 $(INC)ndatablock.h \ 326 $(INC)utilarr.h generaldata.h ntupintf.h \ 327 poly.h peida.h $(INC)utils.h fmath.h 328 $(OBJ)simplesort.o: simplesort.cc $(INC)machdefs.h \ 329 simplesort.h peida.h $(INC)utils.h \ 329 $(OBJ)simplesort.o: simplesort.cc \ 330 $(INC)machdefs.h simplesort.h \ 331 peida.h $(INC)utils.h \ 330 332 $(INC)perrors.h \ 331 333 $(INC)pexceptions.h fmath.h 332 $(OBJ)tabmath.o: tabmath.cc $(INC)machdefs.h \ 333 tabmath.h peida.h $(INC)utils.h \ 334 $(INC)perrors.h \ 335 $(INC)pexceptions.h fmath.h nbconst.h 336 $(OBJ)datime.o: datime.c $(INC)machdefs.h \ 337 $(INC)strutil.h nbconst.h datime.h 334 $(OBJ)tabmath.o: tabmath.cc \ 335 $(INC)machdefs.h tabmath.h \ 336 peida.h $(INC)utils.h \ 337 $(INC)perrors.h \ 338 $(INC)pexceptions.h fmath.h \ 339 nbconst.h 340 $(OBJ)datime.o: datime.c \ 341 $(INC)machdefs.h \ 342 $(INC)strutil.h nbconst.h \ 343 datime.h 338 344 $(OBJ)fftmayer_r4.o: fftmayer_r4.c fftmayer.h \ 339 345 $(INC)machdefs.h trigtbl.h … … 345 351 $(INC)machdefs.h \ 346 352 $(INC)smathconst.h 347 $(OBJ)nbmath.o: nbmath.c nbmath.h $(INC)machdefs.h \ 348 $(INC)smathconst.h matxop.h nbinteg.h \ 349 nbtri.h 350 $(OBJ)nbtri.o: nbtri.c nbtri.h $(INC)machdefs.h 353 $(OBJ)nbmath.o: nbmath.c nbmath.h \ 354 $(INC)machdefs.h \ 355 $(INC)smathconst.h matxop.h \ 356 nbinteg.h nbtri.h 357 $(OBJ)nbtri.o: nbtri.c nbtri.h \ 358 $(INC)machdefs.h -
trunk/SophyaLib/NTools/dynccd.cc
r1104 r1110 161 161 /* Nouvelle-Fonction */ 162 162 template <class T> 163 Image<T> 163 Image<T> NoiseImage(Image<T> const & pim, DynCCD const & dynccd) 164 164 165 165 /* Creation et Calcul d'une image de bruit a partir de l'image */ … … 203 203 204 204 #ifdef __CXX_PRAGMA_TEMPLATES__ 205 206 205 #pragma define_template NoiseImage<uint_2> 207 206 #pragma define_template NoiseImage<int_4> … … 211 210 #pragma define_template ImgAddNoise<int_4> 212 211 #pragma define_template ImgAddNoise<r_4> 213 214 212 #endif 215 213 216 217 #if defined(ANSI_TEMPLATES) 218 template Image<uint_2> * NoiseImage<uint_2>(Image<uint_2> const * , DynCCD const *); 219 template Image< int_4> * NoiseImage< int_4>(Image< int_4> const * , DynCCD const *); 220 template Image< r_4> * NoiseImage< r_4>(Image< r_4> const * , DynCCD const *); 214 #if defined(ANSI_TEMPLATES) || defined(__GNU_TEMPLATES__) 215 template Image<uint_2> NoiseImage<uint_2>(Image<uint_2> const& , DynCCD const&); 216 template Image< int_4> NoiseImage< int_4>(Image< int_4> const& , DynCCD const&); 217 template Image< r_4> NoiseImage< r_4>(Image< r_4> const& , DynCCD const&); 221 218 222 219 template void ImgAddNoise<uint_2>(Image<uint_2>&, DynCCD const&); 223 220 template void ImgAddNoise< int_4>(Image< int_4>&, DynCCD const&); 224 221 template void ImgAddNoise< r_4>(Image< r_4>&, DynCCD const&); 225 226 222 #endif 227 228 #if defined(__GNU_TEMPLATES__)229 template Image<uint_2> * NoiseImage(Image<uint_2> const *, DynCCD const *);230 template Image< int_4> * NoiseImage(Image< int_4> const *, DynCCD const *);231 template Image< r_4> * NoiseImage(Image< r_4> const *, DynCCD const *);232 233 template void ImgAddNoise(Image<uint_2>&, DynCCD const&);234 template void ImgAddNoise(Image< int_4>&, DynCCD const&);235 template void ImgAddNoise(Image< r_4>&, DynCCD const&);236 237 #endif238 239 -
trunk/SophyaLib/NTools/dynccd.h
r1104 r1110 17 17 public : 18 18 19 int_4 TypNoise; 19 int_4 TypNoise; // Type de calcul du bruit 20 20 r_8 MinADU,MaxADU; // Valeur min et max des pixels 21 21 r_8 Gain; // Gain en electron/ADU … … 60 60 } 61 61 62 63 64 65 62 #endif -
trunk/SophyaLib/NTools/generaldata.cc
r958 r1110 463 463 Impression de l'etat de la structure de donnees 464 464 */ 465 void GeneralFitData::PrintStatus() 465 void GeneralFitData::PrintStatus() const 466 466 { 467 467 cout<<"GeneralFitData:: "<<endl … … 475 475 Impression du point i 476 476 */ 477 void GeneralFitData::PrintData(int i) 477 void GeneralFitData::PrintData(int i) const 478 478 { 479 479 ASSERT(i>=0 && i<mNData); … … 491 491 Impression des points i1 a i2 492 492 */ 493 void GeneralFitData::PrintData(int i1,int i2) 493 void GeneralFitData::PrintData(int i1,int i2) const 494 494 { 495 495 if(i1<0) i1=0; … … 507 507 Impression de tous les points 508 508 */ 509 void GeneralFitData::PrintData() 509 void GeneralFitData::PrintData() const 510 510 { 511 511 ASSERT(mNData>0); … … 605 605 \endverbatim 606 606 */ 607 int GeneralFitData::GetMeanSigma(int var,double& mean,double& sigma,double min,double max) 607 int GeneralFitData::GetMeanSigma(int var,double& mean,double& sigma,double min,double max) const 608 608 { 609 609 mean = sigma = 0.; … … 649 649 */ 650 650 int GeneralFitData::GetMoMeMed(int var,double& mode,double& mean,double& median, 651 double min,double max,double coeff) 651 double min,double max,double coeff) const 652 652 { 653 653 mode = mean = median = 0.; … … 695 695 Cf description ci-dessus ``GetMoMeMed''. 696 696 */ 697 int GeneralFitData::GetMode(int var,double& mode,double min,double max,double coeff) 697 int GeneralFitData::GetMode(int var,double& mode,double min,double max,double coeff) const 698 698 { 699 699 double mean,median; … … 717 717 \endverbatim 718 718 */ 719 double GeneralFitData::PolFit(int varx,Poly& pol,int degre,bool ey) 719 double GeneralFitData::PolFit(int varx,Poly& pol,int degre,bool ey) const 720 720 { 721 721 if(degre<0) return -1.; … … 765 765 \endverbatim 766 766 */ 767 double GeneralFitData::PolFit(int varx,int vary,Poly2& pol,int degre1,int degre2,bool ez) 767 double GeneralFitData::PolFit(int varx,int vary,Poly2& pol,int degre1,int degre2,bool ez) const 768 768 { 769 769 if(degre1<0) return -1.; … … 802 802 Retourne une classe contenant les residus du fit ``gfit''. 803 803 */ 804 GeneralFitData GeneralFitData::FitResidus(GeneralFit& gfit) 804 GeneralFitData GeneralFitData::FitResidus(GeneralFit& gfit) const 805 805 { 806 806 if(gfit.GetNVar()!=mNVar) … … 812 812 Retourne une classe contenant la function du fit ``gfit''. 813 813 */ 814 GeneralFitData GeneralFitData::FitFunction(GeneralFit& gfit) 814 GeneralFitData GeneralFitData::FitFunction(GeneralFit& gfit) const 815 815 { 816 816 if(gfit.GetNVar()!=mNVar) -
trunk/SophyaLib/NTools/generaldata.h
r958 r1110 65 65 void SetData(int nData,float** xp,float* f,float* err=NULL,float** errxp=NULL); 66 66 67 void PrintStatus() ;68 void PrintData(int i) ;69 void PrintData(int i1,int i2) ;70 void PrintData() ;67 void PrintStatus() const; 68 void PrintData(int i) const; 69 void PrintData(int i1,int i2) const; 70 void PrintData() const; 71 71 void Show(ostream& os) const; 72 72 inline void Show() const {Show(cout);} … … 130 130 {if(i>=0 && i<mNData) return mErr[i]; else return 0.;} 131 131 132 r_8* GetVec(int n, r_8* ret=NULL) 133 r_4* GetVecR4(int n, r_4* ret=NULL) 132 r_8* GetVec(int n, r_8* ret=NULL) const; 133 r_4* GetVecR4(int n, r_4* ret=NULL) const; 134 134 int GetMnMx(int var,int& imin,int& imax) const; 135 135 int GetMnMx(int var,double& min,double& max) const; 136 int GetMeanSigma(int var,double& mean,double& sigma,double min=1.,double max=-1.) ;136 int GetMeanSigma(int var,double& mean,double& sigma,double min=1.,double max=-1.) const; 137 137 int GetMoMeMed(int var,double& mode,double& mean,double& median, 138 double min=1.,double max=-1.,double coeff=0.8) ;139 int GetMode(int var,double& mode,double min=1.,double max=-1.,double coeff=0.8) ;140 double PolFit(int varx,Poly& pol,int degre,bool ey=true) ;141 double PolFit(int varx,int vary,Poly2& pol,int degre1,int degre2=-1,bool ez=true) ;142 GeneralFitData FitResidus(GeneralFit& gfit) ;143 GeneralFitData FitFunction(GeneralFit& gfit) ;138 double min=1.,double max=-1.,double coeff=0.8) const; 139 int GetMode(int var,double& mode,double min=1.,double max=-1.,double coeff=0.8) const; 140 double PolFit(int varx,Poly& pol,int degre,bool ey=true) const; 141 double PolFit(int varx,int vary,Poly2& pol,int degre1,int degre2=-1,bool ez=true) const; 142 GeneralFitData FitResidus(GeneralFit& gfit) const; 143 GeneralFitData FitFunction(GeneralFit& gfit) const; 144 144 145 145 // Declaration de l interface NTuple -
trunk/SophyaLib/NTools/objfitter.cc
r790 r1110 1 1 #include "objfitter.h" 2 3 //=========================================================================== 4 //=========================================================================== 5 //=========================== ObjectFitter ================================== 6 //=========================================================================== 7 //=========================================================================== 2 8 3 9 TMatrix<r_4> … … 58 64 59 65 60 // --------------------------------------------------------------------------- 66 //=============================== Histo ===================================== 67 /*! Retourne une classe contenant les residus du fit ``gfit''. */ 68 Histo ObjectFitter::FitResidus(Histo const& hh, GeneralFit& gfit) 69 { 70 Histo h(hh); 71 if(h.NBins()<=0) 72 throw(SzMismatchError("Histo::FitResidus: size mismatch\n")); 73 GeneralFunction* f = gfit.GetFunction(); 74 if(f==NULL) 75 throw(NullPtrError("Histo::FitResidus: NULL pointer\n")); 76 TVector<r_8> par = gfit.GetParm(); 77 for(int_4 i=0;i<h.NBins();i++) { 78 r_8 x = h.BinCenter(i); 79 h(i) -= f->Value(&x,par.Data()); 80 } 81 return h; 82 } 83 84 /*! Retourne une classe contenant la fonction du fit ``gfit''. */ 85 Histo ObjectFitter::FitFunction(Histo const& hh, GeneralFit& gfit) 86 { 87 Histo h(hh); 88 if(h.NBins()<=0) 89 throw(SzMismatchError("Histo::FitFunction: size mismatch\n")); 90 GeneralFunction* f = gfit.GetFunction(); 91 if(f==NULL) 92 throw(NullPtrError("Histo::FitFunction: NULL pointer\n")); 93 TVector<r_8> par = gfit.GetParm(); 94 for(int_4 i=0;i<h.NBins();i++) { 95 r_8 x = h.BinCenter(i); 96 h(i) = f->Value(&x,par.Data()); 97 } 98 return h; 99 } 100 101 /*! 102 Fit de l'histogramme par ``gfit''. 103 \verbatim 104 typ_err = 0 : 105 - erreur attachee au bin si elle existe 106 - sinon 1 107 typ_err = 1 : 108 - erreur attachee au bin si elle existe 109 - sinon max( sqrt(abs(bin) ,1 ) 110 typ_err = 2 : 111 - erreur forcee a 1 112 typ_err = 3 : 113 - erreur forcee a max( sqrt(abs(bin) ,1 ) 114 typ_err = 4 : 115 - erreur forcee a 1, nulle si bin a zero. 116 typ_err = 5 : 117 - erreur forcee a max( sqrt(abs(bin) ,1 ), 118 nulle si bin a zero. 119 \endverbatim 120 */ 121 int_4 ObjectFitter::Fit(Histo const& h, GeneralFit& gfit,unsigned short typ_err) 122 { 123 if(h.NBins()<=0) return -1000; 124 if(typ_err>5) typ_err=0; 125 126 GeneralFitData mydata(1,h.NBins()); 127 128 for(int_4 i=0;i<h.NBins();i++) { 129 r_8 x = h.BinCenter(i); 130 r_8 f = h(i); 131 r_8 saf = sqrt(fabs( f)); if(saf<1.) saf=1.; 132 r_8 e=0.; 133 if(typ_err==0) {if(h.HasErrors()) e=h.Error(i); else e=1.;} 134 else if(typ_err==1) {if(h.HasErrors()) e=h.Error(i); else e=saf;} 135 else if(typ_err==2) e=1.; 136 else if(typ_err==3) e=saf; 137 else if(typ_err==4) e=(f==0.)?0.:1.; 138 else if(typ_err==5) e=(f==0.)?0.:saf; 139 mydata.AddData1(x,f,e); 140 } 141 142 gfit.SetData(&mydata); 143 144 return gfit.Fit(); 145 } 146 147 //============================== Histo2D ==================================== 148 /*! Retourne une classe contenant les residus du fit ``gfit''. */ 149 Histo2D ObjectFitter::FitResidus(Histo2D const& hh, GeneralFit& gfit) 150 { 151 Histo2D h(hh); 152 if(h.NBinX()<=0 || h.NBinY()<=0) 153 throw(SzMismatchError("Histo2D::FitResidus: size mismatch\n")); 154 GeneralFunction* f = gfit.GetFunction(); 155 if(f==NULL) 156 throw(NullPtrError("Histo2D::FitResidus: NULL pointer\n")); 157 TVector<r_8> par = gfit.GetParm(); 158 for(int_4 i=0;i<h.NBinX();i++) for(int_4 j=0;j<h.NBinY();j++) { 159 r_8 xc,yc; 160 h.BinCenter(i,j,xc,yc); 161 r_8 x[2] = {xc,yc}; 162 h(i,j) -= f->Value(x,par.Data()); 163 } 164 return h; 165 } 166 167 /*! Retourne une classe contenant la fonction du fit ``gfit''. */ 168 Histo2D ObjectFitter::FitFunction(Histo2D const& hh, GeneralFit& gfit) 169 { 170 Histo2D h(hh); 171 if(h.NBinX()<=0 || h.NBinY()<=0) 172 throw(SzMismatchError("Histo2D::FitFunction: size mismatch\n")); 173 GeneralFunction* f = gfit.GetFunction(); 174 if(f==NULL) 175 throw(NullPtrError("Histo2D::FitFunction: NULL pointer\n")); 176 TVector<r_8> par = gfit.GetParm(); 177 for(int_4 i=0;i<h.NBinX();i++) for(int_4 j=0;j<h.NBinY();j++) { 178 r_8 xc,yc; 179 h.BinCenter(i,j,xc,yc); 180 r_8 x[2] = {xc,yc}; 181 h(i,j) = f->Value(x,par.Data()); 182 } 183 return h; 184 } 185 186 /*! 187 Fit de l'histogramme par ``gfit''. 188 \verbatim 189 typ_err = 0 : 190 - erreur attachee au bin si elle existe 191 - sinon 1 192 typ_err = 1 : 193 - erreur attachee au bin si elle existe 194 - sinon max( sqrt(abs(bin) ,1 ) 195 typ_err = 2 : 196 - erreur forcee a 1 197 typ_err = 3 : 198 - erreur forcee a max( sqrt(abs(bin) ,1 ) 199 typ_err = 4 : 200 - erreur forcee a 1, nulle si bin a zero. 201 typ_err = 5 : 202 - erreur forcee a max( sqrt(abs(bin) ,1 ), 203 nulle si bin a zero. 204 \endverbatim 205 */ 206 int_4 ObjectFitter::Fit(Histo2D const & h, GeneralFit& gfit,unsigned short typ_err) 207 { 208 if(h.NBinX()*h.NBinY()<=0) return -1000; 209 if(typ_err>5) typ_err=0; 210 211 GeneralFitData mydata(2,h.NBinX()*h.NBinY()); 212 213 for(int_4 i=0;i<h.NBinX();i++) for(int_4 j=0;j<h.NBinY();j++) { 214 r_8 x,y; 215 h.BinCenter(i,j,x,y); 216 r_8 f = h(i,j); 217 r_8 saf = sqrt(fabs(f)); if(saf<1.) saf=1.; 218 r_8 e=0.; 219 if(typ_err==0) {if(h.HasErrors()) e=h.Error(i,j); else e=1.;} 220 else if(typ_err==1) {if(h.HasErrors()) e=h.Error(i,j); else e=saf;} 221 else if(typ_err==2) e=1.; 222 else if(typ_err==3) e=saf; 223 else if(typ_err==4) e=(f==0.)?0.:1.; 224 else if(typ_err==5) e=(f==0.)?0.:saf; 225 mydata.AddData2(x,y,f,e); 226 } 227 228 gfit.SetData(&mydata); 229 230 return gfit.Fit(); 231 } 232 233 //=========================================================================== 234 //=========================================================================== 235 //========================== ArrayFitter<T> ================================= 236 //=========================================================================== 237 //=========================================================================== 61 238 62 239 template <class T> -
trunk/SophyaLib/NTools/objfitter.h
r805 r1110 11 11 #include "tmatrix.h" 12 12 #include "tvector.h" 13 #include "histos.h" 14 #include "histos2.h" 15 #include "hisprof.h" 13 16 #include "generalfit.h" 14 17 … … 36 39 static TVector<r_8> FitFunction(TVector<r_8> const & vec, GeneralFit& gfit, 37 40 double xorg=0.,double dx=1.); 41 // Residus et fonction fittees sur Histo 42 static Histo FitResidus(Histo const& h, GeneralFit& gfit); 43 static Histo FitFunction(Histo const& h, GeneralFit& gfit); 44 static int_4 Fit(Histo const & h, GeneralFit& gfit,unsigned short typ_err=0); 45 // Residus et fonction fittees sur Histo2D 46 static Histo2D FitResidus(Histo2D const& h, GeneralFit& gfit); 47 static Histo2D FitFunction(Histo2D const& h, GeneralFit& gfit); 48 static int_4 Fit(Histo2D const & h, GeneralFit& gfit,unsigned short typ_err=0); 49 // Residus et fonction fittees sur HProf 50 static inline Histo FitResidus(HProf const& h, GeneralFit& gfit) 51 {h.UpdateHisto(); return FitResidus((Histo const&) h,gfit);} 52 static inline Histo FitFunction(HProf const& h, GeneralFit& gfit) 53 {h.UpdateHisto(); return FitFunction((Histo const&) h,gfit);} 54 static int_4 Fit(HProf const & h, GeneralFit& gfit) 55 {h.UpdateHisto(); return Fit((Histo const&) h,gfit,0);} 56 // Residus et fonction fittees sur GeneralFitData 57 static inline GeneralFitData FitResidus(GeneralFitData const& g, GeneralFit& gfit) 58 {return g.FitResidus(gfit);} 59 static inline GeneralFitData FitFunction(GeneralFitData const& g, GeneralFit& gfit) 60 {return g.FitFunction(gfit);} 38 61 }; 39 62 … … 42 65 class ArrayFitter { 43 66 public: 44 45 67 // Residus et fonction fittees sur matrix 46 68 static TMatrix<T> FitResidus(TMatrix<T> const & mtx, GeneralFit& gfit, … … 48 70 static TMatrix<T> FitFunction(TMatrix<T> const & mtx, GeneralFit& gfit, 49 71 double xorg=0.,double yorg=0.,double dx=1.,double dy=1.); 50 51 72 // Residus et fonction fittees sur vecteurs 52 73 static TVector<T> FitResidus(TVector<T> const & vec, GeneralFit& gfit, … … 54 75 static TVector<T> FitFunction(TVector<T> const & vec, GeneralFit& gfit, 55 76 double xorg=0.,double dx=1.); 56 57 77 }; 58 78 -
trunk/SophyaLib/NTools/objlist.list
r919 r1110 17 17 generaldata.o 18 18 generalfit.o 19 imageop.o20 19 integ.o 21 20 matxop.o … … 29 28 poly.o 30 29 rk4cdifeq.o 31 rzimage.o32 30 simplesort.o 33 31 tabmath.o
Note:
See TracChangeset
for help on using the changeset viewer.