Class IniFileParser

java.lang.Object
xal.extension.tracewinimporter.IniFileParser

public class IniFileParser extends Object
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.
Author:
Juan F. Esteban Müller <juanf.estebanmuller@esss.se>
  • Constructor Details

    • IniFileParser

      public IniFileParser()
  • Method Details

    • getBunchFrequency

      public double getBunchFrequency()
    • getBeamCurrent

      public double getBeamCurrent()
    • getKineticEnergy

      public double getKineticEnergy()
    • getInitialCentroid

      public PhaseVector getInitialCentroid()
    • getInitialTwiss

      public Twiss[] getInitialTwiss()
    • loadTwissFromIni

      public void loadTwissFromIni(String iniFilePath)
      Load initial parameters from TraceWin project files (.ini).
      Parameters:
      iniFilePath - The path of the .ini file.