Changeset 1110 in Sophya


Ignore:
Timestamp:
Jul 28, 2000, 6:32:08 PM (25 years ago)
Author:
ansari
Message:

on vire imageop.o de objlis.list
instanciations GNU des fct de dynccd.cc Noise... etc...
des fct passees en const dans GeneralFitData
objfitter prend les Histo/Histo2D/HProf/GeneralFitData

cmv 28/7/00

Location:
trunk/SophyaLib/NTools
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/Makefile

    r919 r1110  
    33all: $(LIB)libNTools.a
    44clean:
    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.o
     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)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
    66        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)imageop.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.o
     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)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
    88        $(ARCXX) $(ARCXXFLAGS) $@ $?
    99ifeq ($(CXX),cxx)
     
    1111endif
    1212 
    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
    3230$(OBJ)datatypes.o: datatypes.cc datatypes.h \
    3331 $(INC)machdefs.h
    34 $(OBJ)dates.o: dates.cc $(INC)machdefs.h \
     32$(OBJ)dates.o: dates.cc \
     33 $(INC)machdefs.h \
    3534 $(INC)perrors.h \
    3635 $(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 \
    4445 $(INC)dvlist.h \
    4546 $(INC)objfio.h \
     
    4950 $(INC)utilarr.h \
    5051 $(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 \
    5254 perandom.h $(INC)histos.h \
    5355 $(INC)objfio.h \
     
    6466 $(INC)tarray.h \
    6567 $(INC)basarr.h \
     68 $(INC)mutyv.h \
    6669 $(INC)dvlist.h \
    6770 $(INC)ndatablock.h \
    6871 $(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
    102112$(OBJ)fftmserver.o: fftmserver.cc fftmserver.h fftservintf.h \
    103113 $(INC)machdefs.h \
     
    107117 $(INC)basarr.h \
    108118 $(INC)anydataobj.h \
     119 $(INC)mutyv.h \
    109120 $(INC)dvlist.h \
    110121 $(INC)objfio.h \
     
    121132 $(INC)basarr.h \
    122133 $(INC)anydataobj.h \
     134 $(INC)mutyv.h \
    123135 $(INC)dvlist.h \
    124136 $(INC)objfio.h \
     
    135147 $(INC)basarr.h \
    136148 $(INC)anydataobj.h \
     149 $(INC)mutyv.h \
    137150 $(INC)dvlist.h \
    138151 $(INC)objfio.h \
     
    149162 $(INC)basarr.h \
    150163 $(INC)anydataobj.h \
     164 $(INC)mutyv.h \
    151165 $(INC)dvlist.h \
    152166 $(INC)objfio.h \
     
    158172$(OBJ)generaldata.o: generaldata.cc \
    159173 $(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 \
    174190 $(INC)perrors.h fmath.h
    175 $(OBJ)generalfit.o: generalfit.cc $(INC)machdefs.h \
     191$(OBJ)generalfit.o: generalfit.cc \
     192 $(INC)machdefs.h \
    176193 $(INC)pexceptions.h generalfit.h \
    177194 $(INC)tvector.h \
     
    180197 $(INC)basarr.h \
    181198 $(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 \
    189208 $(INC)perrors.h fmath.h \
    190209 $(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 \
    211212 $(INC)pexceptions.h generalfit.h \
    212213 $(INC)tvector.h \
     
    215216 $(INC)basarr.h \
    216217 $(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 \
    224227 $(INC)perrors.h fmath.h
    225228$(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 \
    228232 $(INC)sophyainit.h poly.h \
    229233 $(INC)objfio.h \
     
    238242 $(INC)tarray.h \
    239243 $(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.h
     244 $(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
    245249$(OBJ)ntupintf.o: ntupintf.cc ntupintf.h \
    246250 $(INC)machdefs.h
     
    251255 $(INC)basarr.h \
    252256 $(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 \
    264276 $(INC)pexceptions.h perandom.h \
    265277 $(INC)histos.h \
     
    276288 $(INC)tarray.h \
    277289 $(INC)basarr.h \
     290 $(INC)mutyv.h \
    278291 $(INC)dvlist.h \
    279292 $(INC)ndatablock.h \
    280293 $(INC)utilarr.h nbrandom.h \
    281294 $(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 \
    284297 $(INC)anydataobj.h \
    285298 $(INC)ppersist.h \
     
    292305 $(INC)tarray.h \
    293306 $(INC)basarr.h \
     307 $(INC)mutyv.h \
    294308 $(INC)dvlist.h \
    295309 $(INC)ndatablock.h \
     
    297311 $(INC)sopemtx.h \
    298312 $(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 \
    306322 $(INC)dvlist.h \
    307323 $(INC)objfio.h \
     
    311327 $(INC)utilarr.h \
    312328 $(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 \
    330332 $(INC)perrors.h \
    331333 $(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
    338344$(OBJ)fftmayer_r4.o: fftmayer_r4.c fftmayer.h \
    339345 $(INC)machdefs.h trigtbl.h
     
    345351 $(INC)machdefs.h \
    346352 $(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  
    161161/* Nouvelle-Fonction */
    162162template <class T>
    163 Image<T>  NoiseImage(Image<T> const & pim, DynCCD const & dynccd)
     163Image<T> NoiseImage(Image<T> const & pim, DynCCD const & dynccd)
    164164
    165165/* Creation et Calcul d'une image de bruit a partir de l'image */
     
    203203
    204204#ifdef __CXX_PRAGMA_TEMPLATES__
    205 
    206205#pragma define_template NoiseImage<uint_2>
    207206#pragma define_template NoiseImage<int_4>
     
    211210#pragma define_template ImgAddNoise<int_4>
    212211#pragma define_template ImgAddNoise<r_4>
    213 
    214212#endif
    215213
    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__)
     215template Image<uint_2> NoiseImage<uint_2>(Image<uint_2> const& , DynCCD const&);
     216template Image< int_4> NoiseImage< int_4>(Image< int_4> const& , DynCCD const&);
     217template Image<   r_4> NoiseImage<   r_4>(Image<   r_4> const& , DynCCD const&);
    221218
    222219template void ImgAddNoise<uint_2>(Image<uint_2>&, DynCCD const&);
    223220template void ImgAddNoise< int_4>(Image< int_4>&, DynCCD const&);
    224221template void ImgAddNoise<   r_4>(Image<   r_4>&, DynCCD const&);
    225 
    226222#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 #endif
    238 
    239 
  • trunk/SophyaLib/NTools/dynccd.h

    r1104 r1110  
    1717  public :
    1818
    19   int_4 TypNoise;        // Type de calcul du bruit
     19  int_4 TypNoise;      // Type de calcul du bruit
    2020  r_8 MinADU,MaxADU;   // Valeur min et max des pixels
    2121  r_8 Gain;            // Gain en electron/ADU
     
    6060}
    6161
    62 
    63 
    64 
    6562#endif
  • trunk/SophyaLib/NTools/generaldata.cc

    r958 r1110  
    463463  Impression de l'etat de la structure de donnees
    464464*/
    465 void GeneralFitData::PrintStatus()
     465void GeneralFitData::PrintStatus() const
    466466{
    467467  cout<<"GeneralFitData:: "<<endl
     
    475475  Impression du point i
    476476*/
    477 void GeneralFitData::PrintData(int i)
     477void GeneralFitData::PrintData(int i) const
    478478{
    479479 ASSERT(i>=0 && i<mNData);
     
    491491  Impression des points i1 a i2
    492492*/
    493 void GeneralFitData::PrintData(int i1,int i2)
     493void GeneralFitData::PrintData(int i1,int i2) const
    494494{
    495495 if(i1<0) i1=0;
     
    507507  Impression de tous les points
    508508*/
    509 void GeneralFitData::PrintData()
     509void GeneralFitData::PrintData() const
    510510{
    511511 ASSERT(mNData>0);
     
    605605  \endverbatim
    606606*/
    607 int GeneralFitData::GetMeanSigma(int var,double& mean,double& sigma,double min,double max)
     607int GeneralFitData::GetMeanSigma(int var,double& mean,double& sigma,double min,double max) const
    608608{
    609609mean = sigma = 0.;
     
    649649*/
    650650int 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
    652652{
    653653mode = mean = median = 0.;
     
    695695  Cf description ci-dessus ``GetMoMeMed''.
    696696*/
    697 int GeneralFitData::GetMode(int var,double& mode,double min,double max,double coeff)
     697int GeneralFitData::GetMode(int var,double& mode,double min,double max,double coeff) const
    698698{
    699699double mean,median;
     
    717717  \endverbatim
    718718*/
    719 double GeneralFitData::PolFit(int varx,Poly& pol,int degre,bool ey)
     719double GeneralFitData::PolFit(int varx,Poly& pol,int degre,bool ey) const
    720720{
    721721if(degre<0) return -1.;
     
    765765  \endverbatim
    766766*/
    767 double GeneralFitData::PolFit(int varx,int vary,Poly2& pol,int degre1,int degre2,bool ez)
     767double GeneralFitData::PolFit(int varx,int vary,Poly2& pol,int degre1,int degre2,bool ez) const
    768768{
    769769if(degre1<0) return -1.;
     
    802802  Retourne une classe contenant les residus du fit ``gfit''.
    803803*/
    804 GeneralFitData GeneralFitData::FitResidus(GeneralFit& gfit)
     804GeneralFitData GeneralFitData::FitResidus(GeneralFit& gfit) const
    805805{
    806806if(gfit.GetNVar()!=mNVar)
     
    812812  Retourne une classe contenant la function du fit ``gfit''.
    813813*/
    814 GeneralFitData GeneralFitData::FitFunction(GeneralFit& gfit)
     814GeneralFitData GeneralFitData::FitFunction(GeneralFit& gfit) const
    815815{
    816816if(gfit.GetNVar()!=mNVar)
  • trunk/SophyaLib/NTools/generaldata.h

    r958 r1110  
    6565  void SetData(int nData,float** xp,float* f,float* err=NULL,float** errxp=NULL);
    6666
    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;
    7171  void Show(ostream& os) const;
    7272  inline void Show() const {Show(cout);}
     
    130130                {if(i>=0 && i<mNData) return mErr[i]; else return 0.;}
    131131
    132   r_8* GetVec(int n, r_8* ret=NULL)  const;
    133   r_4* GetVecR4(int n, r_4* ret=NULL)  const;
     132  r_8* GetVec(int n, r_8* ret=NULL) const;
     133  r_4* GetVecR4(int n, r_4* ret=NULL) const;
    134134  int GetMnMx(int var,int& imin,int& imax) const;
    135135  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;
    137137  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;
    144144
    145145// Declaration de l interface NTuple
  • trunk/SophyaLib/NTools/objfitter.cc

    r790 r1110  
    11#include "objfitter.h"
     2
     3//===========================================================================
     4//===========================================================================
     5//=========================== ObjectFitter ==================================
     6//===========================================================================
     7//===========================================================================
    28
    39TMatrix<r_4>
     
    5864
    5965
    60 // ---------------------------------------------------------------------------
     66//=============================== Histo =====================================
     67/*! Retourne une classe contenant les residus du fit ``gfit''. */
     68Histo ObjectFitter::FitResidus(Histo const& hh, GeneralFit& gfit)
     69{
     70Histo h(hh);
     71if(h.NBins()<=0)
     72  throw(SzMismatchError("Histo::FitResidus: size mismatch\n"));
     73GeneralFunction* f = gfit.GetFunction();
     74if(f==NULL)
     75  throw(NullPtrError("Histo::FitResidus: NULL pointer\n"));
     76TVector<r_8> par = gfit.GetParm();
     77for(int_4 i=0;i<h.NBins();i++) {
     78  r_8 x =  h.BinCenter(i);
     79  h(i) -=  f->Value(&x,par.Data());
     80}
     81return h;
     82}
     83
     84/*! Retourne une classe contenant la fonction du fit ``gfit''. */
     85Histo ObjectFitter::FitFunction(Histo const& hh, GeneralFit& gfit)
     86{
     87Histo h(hh);
     88if(h.NBins()<=0)
     89  throw(SzMismatchError("Histo::FitFunction: size mismatch\n"));
     90GeneralFunction* f = gfit.GetFunction();
     91if(f==NULL)
     92  throw(NullPtrError("Histo::FitFunction: NULL pointer\n"));
     93TVector<r_8> par = gfit.GetParm();
     94for(int_4 i=0;i<h.NBins();i++) {
     95  r_8 x =  h.BinCenter(i);
     96  h(i) =  f->Value(&x,par.Data());
     97}
     98return 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*/
     121int_4 ObjectFitter::Fit(Histo const& h, GeneralFit& gfit,unsigned short typ_err)
     122{
     123if(h.NBins()<=0) return -1000;
     124if(typ_err>5) typ_err=0;
     125
     126GeneralFitData mydata(1,h.NBins());
     127
     128for(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
     142gfit.SetData(&mydata);
     143
     144return gfit.Fit();
     145}
     146
     147//============================== Histo2D ====================================
     148/*! Retourne une classe contenant les residus du fit ``gfit''. */
     149Histo2D ObjectFitter::FitResidus(Histo2D const& hh, GeneralFit& gfit)
     150{
     151Histo2D h(hh);
     152if(h.NBinX()<=0 || h.NBinY()<=0)
     153  throw(SzMismatchError("Histo2D::FitResidus: size mismatch\n"));
     154GeneralFunction* f = gfit.GetFunction();
     155if(f==NULL)
     156  throw(NullPtrError("Histo2D::FitResidus: NULL pointer\n"));
     157TVector<r_8> par = gfit.GetParm();
     158for(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}
     164return h;
     165}
     166
     167/*! Retourne une classe contenant la fonction du fit ``gfit''. */
     168Histo2D ObjectFitter::FitFunction(Histo2D const& hh, GeneralFit& gfit)
     169{
     170Histo2D h(hh);
     171if(h.NBinX()<=0 || h.NBinY()<=0)
     172  throw(SzMismatchError("Histo2D::FitFunction: size mismatch\n"));
     173GeneralFunction* f = gfit.GetFunction();
     174if(f==NULL)
     175  throw(NullPtrError("Histo2D::FitFunction: NULL pointer\n"));
     176TVector<r_8> par = gfit.GetParm();
     177for(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}
     183return 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*/
     206int_4 ObjectFitter::Fit(Histo2D const & h, GeneralFit& gfit,unsigned short typ_err)
     207{
     208if(h.NBinX()*h.NBinY()<=0) return -1000;
     209if(typ_err>5) typ_err=0;
     210
     211GeneralFitData mydata(2,h.NBinX()*h.NBinY());
     212
     213for(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
     228gfit.SetData(&mydata);
     229
     230return gfit.Fit();
     231}
     232
     233//===========================================================================
     234//===========================================================================
     235//========================== ArrayFitter<T> =================================
     236//===========================================================================
     237//===========================================================================
    61238
    62239template <class T>
  • trunk/SophyaLib/NTools/objfitter.h

    r805 r1110  
    1111#include "tmatrix.h"
    1212#include "tvector.h"
     13#include "histos.h"
     14#include "histos2.h"
     15#include "hisprof.h"
    1316#include "generalfit.h"
    1417
     
    3639  static TVector<r_8> FitFunction(TVector<r_8> const & vec, GeneralFit& gfit,
    3740                                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);}
    3861};
    3962
     
    4265class  ArrayFitter {
    4366public:
    44 
    4567  // Residus et fonction fittees sur matrix
    4668  static TMatrix<T> FitResidus(TMatrix<T> const & mtx, GeneralFit& gfit,
     
    4870  static TMatrix<T> FitFunction(TMatrix<T> const & mtx, GeneralFit& gfit,
    4971                                double xorg=0.,double yorg=0.,double dx=1.,double dy=1.);
    50 
    5172  // Residus et fonction fittees sur vecteurs
    5273  static TVector<T> FitResidus(TVector<T> const & vec, GeneralFit& gfit,
     
    5475  static TVector<T> FitFunction(TVector<T> const & vec, GeneralFit& gfit,
    5576                                double xorg=0.,double dx=1.);
    56  
    5777};
    5878
  • trunk/SophyaLib/NTools/objlist.list

    r919 r1110  
    1717generaldata.o
    1818generalfit.o
    19 imageop.o
    2019integ.o
    2120matxop.o
     
    2928poly.o
    3029rk4cdifeq.o
    31 rzimage.o
    3230simplesort.o
    3331tabmath.o
Note: See TracChangeset for help on using the changeset viewer.