next up previous contents index
Next: Directories Up: Memory size control Previous: Memory size control

Space requirements

The argument NWPAWC must be given a value large enough to accomodate in memory all histograms (1-D and 2-D) and all Ntuple headers and buffers, i.e.

NWPAWC> 10000 + ∑i=1NFSF(i) + ∑i=1N1S1(i) + ∑i=1N2S2(i) + ∑i=1NTSN(i)

NF
Number of open files
SF(i)

100+LRECi , where LREC is the buffer size for file i, as specified in a call to HROPEN.
N1
Number of 1-D histograms
S1(i)

Space occupied by 1-D histogram i, i.e.
40+(NCHAN+2)*PACK+IERR*(NCHAN+10)+IFUN*(NCHAN+10)
NCHAN
Number of channels in histogram
PACK
Packing factor (1. by default). See parameter VMX of HBOOK1.
IERR
1 if HBARX called, 0 otherwise.
IFUN
1 if the histogram has an associated function (HFUNC, fits or smoothing)
N2
Number of 2-D histograms
S2(i)

Space occupied by 2-D histogram i, i.e.
40+(NCHANX+2)*(NCHANY+2)*PACK + space for projections, slices and bands (which are 1-D histograms).
NT
Number of Ntuples
S2(i)

Space occupied by headers and buffers of Ntuple i (see routines HBOOKN and HBNT).


Janne Saarela
Tue May 16 09:09:27 METDST 1995