Download Statistical Analysis and Histogramming Reference

Transcript
62
Chapter 4. Advanced features for booking and editing operations
CALL HFF1
(ID,*NID*,X,WEIGHT)
Action: Analogous to HF1 with the same restrictions. Cannot be used for variable-bin-width histograms.
Input parameters:
ID
histogram identifier
NID
is a histogram-specific variable that has to be provided by the user.
Before the first call, NID must be initialized to 0.
In subsequent calls to HFF1 the constant NID must then be used in order to skip the calculation of the histogram address.
X
value of the abscissa
WEIGHT
event weight
Output parameter:
NID
After the first call to HFF1, NID will contain the current address of histogram ID.
CALL HFF2
(ID,*NID*,X,Y,W)
Action: Analogous to HF2 with the use of the parameter NID as explained for HFF1.
CALL HFPAK1
(ID,NID,V,N)
Action: Fill an histogram using the contents of a vector.
Input parameters:
ID
histogram identifier
V
array containing the values to be entered into the histogram.
N
length (dimension) of the array V
Input/output parameter:
*NID*
address of histogram (see HFF1)
This subroutine has the same effect as
DO 10 I=1,N
10 CALL HFF1(ID,NID,V(I),1.)
where the array V of N words must have been filled previously by the user.
CALL HIPAK1
(ID,NID,IV,N)
Action: Analogous to HFPAK1, except that the user vector contains now integers instead of real numbers.