sddsemitmeas analyzes quadrupole scan emittance measurement data. It accepts a file containing the transport matrix for each data point and measured beam sizes. Because sddsemitmeas uses the matrix rather than a thin-lens model, it can analyze data from arbitrarily complex scans, involving, for example, multiple thick-lens quadrupoles.
The matrix data can be prepared using elegant. For example, the vary_element command can be used to vary one or more quadrupoles. In addition, the beam size data may be prepared using elegant, to allow simulation of emittance measurements.
sddsemitmeas will perform error analysis using a Monte Carlo technique. A user-specified number of random error sets are generated and added to all measurements. Analysis is performed for each error set. Statistics over all the error sets provide most likely values and error bars.
R
ij, where ij is 11, 12, 33, and
34. These give elements of the horizontal and vertical transport
matrices from the beginning of a system to the observation point. The
sigma matrix inferred will be that for the beginning of the system.
Typically, one starts with the final file from the run_setup command in elegant, and collapses it using sddscollapse. Each page of inputfile corresponds to a different
emittance measurement.
If energy spread is included (-energySpread
option), the file
must also contain columns named etax
and etay
, giving
the horizontal and vertical dispersion at the observation point.
These may be added to the final file using sddsprocess (to
get the final values as parameters) and sddsxref (to transfer
the parameters), prior to using sddscollapse.
In addition to this data, inputfile must also contain columns
giving the rms beam sizes in x and y. The user supplies the names of
the columns using the -sigmaData
option. These columns may be
from elegant (e.g., Sx
and Sy
), if one wants to
simulate an emittance measurement. Note that the theory behind the
emittance measurement is strictly correct only for true RMS beamsize
measurements. Use of FWHM or some other measure will give unreliable
results.
-nErrorSets
), then there are also parameters giving the
error bars (``sigma's'') of the measured values.
The columns of outputfile contain various quantities depending on the mode. For files generated with elegant and no error sets, it contains the measured and fit beam size data, along with the strength of one of the varied quadrupoles. In other cases, less data may be present.