Package xal.extension.tracewinimporter
Class IniFileParser
java.lang.Object
xal.extension.tracewinimporter.IniFileParser
This class parses initial parameters from TraceWin project files (.ini). In
particular, it retrieves the beam current, initial kinetic energy and the
Twiss parameters for the 3 planes.
NOTE: the position in the .ini files was found by reverse engineering, as there is no documentation about them. The format is believed to be standard for different versions of TraceWin, but that can change.
NOTE: the position in the .ini files was found by reverse engineering, as there is no documentation about them. The format is believed to be standard for different versions of TraceWin, but that can change.
- Author:
- Juan F. Esteban Müller <juanf.estebanmuller@esss.se>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
Twiss[]
double
void
loadTwissFromIni
(String iniFilePath) Load initial parameters from TraceWin project files (.ini).
-
Constructor Details
-
IniFileParser
public IniFileParser()
-
-
Method Details
-
getBunchFrequency
public double getBunchFrequency() -
getBeamCurrent
public double getBeamCurrent() -
getKineticEnergy
public double getKineticEnergy() -
getInitialCentroid
-
getInitialTwiss
-
loadTwissFromIni
Load initial parameters from TraceWin project files (.ini).- Parameters:
iniFilePath
- The path of the .ini file.
-