9 #include "ZprivateSub.h" 10 integer binorascii, reduced, nfraca
17 write(0,*)
" ProcTime: ./procTime$ARCH",
18 *
" bin reduced nfraca webonly smooth input-t.hist" 19 write(0,*)
" bin=1-->input is ascii file" 20 write(0,*)
" bin=2--> binary file" 21 write(0,*)
" reduced=0--> histogram has non-reduced time" 22 write(0,*)
" =1--> histogram has reduced time" 23 write(0,*)
" if data seems not so, stop is made" 24 write(0,*)
" actual number of time fraction data to be used" 25 write(0,*)
" nfraca=2-->up to T5, T10% is obtained " 27 *
" nfraca=11-->up to T5,T10,...T90, T95% is obtained " 28 write(0,*)
" fitting is normally done by T10% so 2 is enough" 31 *
"webonly=0-->input is made from mkLDD" 32 *
" (core region data exists) " 34 *
"webonly=1-->input is made from FDD rawdata" 35 *
"(no core region data) " 36 write(0,*)
" smooth >0 max # of smoothing" 37 write(0,*)
" for LDD 100~500 may be ok" 38 write(0,*)
" for FDD 3 may be ok" 39 write(0,*)
" ***** avoid smooth=0**** " 41 *
" filename: path to the input -t.hist file(<256 chars)" 44 call getarg(1, buf, status)
45 read(buf,*) binorascii
46 if(binorascii .ne. 1 .and. binorascii.ne. 2)
then 47 write(0,*)
' error input to binOrascii=',binorascii
50 call getarg(2, buf, status)
52 if(reduced .ne. 0 .and. reduced .ne. 1)
then 53 write(0,*)
'procTime: error input to reduced=',reduced
57 call getarg(3, buf, status)
59 if(nfraca .lt. 1 .and. nfraca .gt. 11)
then 60 write(0,*)
'procTime: error input to nfraca=',nfraca
65 if(binorascii .eq. 1)
then 67 call proctimeascii(reduced, nfraca)
76 #include "ZprivateSub.h" 77 #include "../../Hist/Z90histc.h" 78 #include "../../Hist/Z90histo.h" 79 #include "../../Hist/Z90hist1.h" 93 character*256 filename
97 integer nbinhisto, status, webonly
98 integer kwhistReadAscii
102 call getarg(4, buf, status)
104 call getarg(5, buf, status)
106 call getarg(6, filename, status)
109 open(fnot, file=filename,
110 * iostat=status, access=
'sequential',
111 * form=
'unformatted', action=
'read')
112 if(status .ne. 0 )
then 113 write(0,*)
' cannot open file =' 119 if(webonly .eq. 0)
then 122 read( fnot, end=100 ) histid0
123 if( histid0 .ne.
'#hist1' )
then 124 write(0,*)
' histogram is not 1D: ',histid0
139 read( fnot, end=100 ) histid0
140 if( histid0 .ne.
'#hist1' )
then 141 write(0,*)
' histogram is not 1-D: ',histid0
148 call proctime(h10, 6, nfraca, reduced,
159 write(0,*)
' unexpected EOF ' 162 entry proctimeascii(reduced, nfraca)
164 call getarg(4, buf, status)
166 call getarg(5, buf, status)
168 call getarg(6, filename, status)
171 open(fnot, file=filename,
172 * iostat=status, access=
'sequential',
173 * form=
'formatted', action=
'read')
174 if(status .ne. 0 )
then 175 write(0,*)
' cannot open file =' 180 if(webonly .eq. 0 )
then 184 nbinhisto=kwhistreadascii(h10, fnot)
185 if(nbinhisto .le. 0 )
then 186 write(0,*)
' ascii read failed' 200 nbinhisto=kwhistreadascii(h10, fnot)
201 if(nbinhisto .le. 0 )
then 202 write(0,*)
' ascii read failed' 209 call proctime(h10, 6, nfraca, reduced,
void kwhistd(struct histogram1 *h)
void kwhistr(struct histogram1 *h, FILE *bfnor, int icon)
void kwhists(struct histogram1 *h, float inorm)
subroutine proctime(h, fnotf, nfraca, reduced, idxr, idxf, code, layer)