java.lang.Object
simpa.acc.api.utils.FrequencyAnalysis
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates aFrequencyAnalysis.FrequencyAnalysisBuilder
object to set up the parameters for the frequency analysis.void
Calculates the diffusion coefficients for each tracking file.void
scanTunes2D
(double stepSize) Executes the tune scan by tracking particles for the given number of turns for each point in the tune diagram.
-
Method Details
-
builder
Creates aFrequencyAnalysis.FrequencyAnalysisBuilder
object to set up the parameters for the frequency analysis.- Returns:
- The builder object.
-
scanTunes2D
public void scanTunes2D(double stepSize) throws IOException, KnownFatalException, OutOfApertureException Executes the tune scan by tracking particles for the given number of turns for each point in the tune diagram. The output files containing the phase space coordinates for each particle will be written into the output directory.- Parameters:
stepSize
- The step size for the tracking.- Throws:
IOException
OutOfApertureException
KnownFatalException
-
calculate
Calculates the diffusion coefficients for each tracking file. This file is the main output of frequency analysis. It is usually plotted as a heat map plot.- Parameters:
resultFile
- The output file with the estimated and precisely calculated fractional tunes and the diffusion coefficients calculated from them.- Throws:
FileNotFoundException
-