This section describes in detail how to use harp_ana_new to execute common commands.
Data is loaded by selecting the name of the harp from the Superharp drop-down menu. The program looks in the path scan_data/Experiment/File Name, where Experiment is the experiment number listed in the Experiment entry and File Name is the file name listed in the File Name entry.
Data collected through Options Scan is automatically converted into a format readable by
, so it can been loaded, even in the same session in which it was collected,
as if it were old harp data.
Harp data is automatically graphed when loaded (by selecting it from the Superharp drop-down menu). The statistical information for the first graph loaded is also displayed.
Connect to cdaqh1 and run
. Select
, and follow the
instructions in the MEDM section to scan in new data. After exiting MEDM, the new data should
appear. Note that it takes about 10 to 15 seconds for MEDM to load.
Selecting
saves and compresses (using gzip) the data for all the harps
currently loaded in the directory scan_data/Experiment/File Name, where
Experiment is the experiment number listed in the Experiment entry and File Name
is the file name listed in the File Name entry. If the directory scan_data/Experiment
does not already exist, it is automatically created.
Selecting
prints a screen capture to the printer listed in the Printer entry.
Selecting
clears all harp data from the screen and from memory (but doesn't
erase the files from disk).
It has been demonstrated that the JLab beam has a fundamental 60 Hz motion originating from the power line. In order to have a precise determination of the position of the beam, correction from this beam motion is necessary. For that purpose, a Fourier transform which returns the beam motion harmonics to all orders from the data has been developped.
Selecting
calls the dialog box displayed in Fig 2.9.
![]() |
(2.1) |
![]() |
(2.2) |
By Poisson's summation formula,
Mean and FWHM
For each superharp scan, the resulting histogram peak centroids are computed using the equation:
![]() |
(2.4) |
![]() |
(2.5) |
The standard deviation (rms) is calculated from the second moment (variance) of the
distribution:
![]() |
(2.6) |
![]() |
(2.7) |
Skewness and Kurtosis
Statistical higher moments are also calculated:
![]() |
(2.8) |
The skewness is defined as the measure of the symmetry of a distribution:
![]() |
(2.9) |
The kurtosis is the measure of a distribution's spread about its mean:
![]() |
(2.10) |
Using survey data, the program isolates the three peaks of the first graph loaded and plots them in the
three lower graph windows. As subsequent graphs
are loaded, the offset
is calculated over each of those three regions and displayed in the
upper-right corner of the appropriate graph. The offsets have the same order and color as the harp names in
the graph legend.
When data from both of a pair of harps (e.g. IHA3C17A and IHA3C17B) are loaded, the angle the
beam makes with the horizontal when travelling through the pair is calculated and displayed. As with the
offsets, the color of the displayed angle matches the color of graph of the harp pair.