Class EmittanceCalculator

java.lang.Object
org.scictrl.csshell.python.PythonRunner
org.scictrl.csshell.python.EmittanceCalculator

public class EmittanceCalculator extends PythonRunner

Calculates emittance with Python script, written by Thiemo Schmelzer.

Author:
igor@scictrl.org
  • Constructor Details

    • EmittanceCalculator

      public EmittanceCalculator()

      Constructor for EmittanceCalculator.

  • Method Details

    • init

      public void init(File dir, String script)

      init.

      Parameters:
      dir - a directory as File where scripts are Python located
      script - a name of Python script to be used
    • setEnergy

      public void setEnergy(double energy)

      Setter for the field energy.

      Parameters:
      energy - a double
    • getEnergy

      public double getEnergy()

      Getter for the field energy.

      Returns:
      a double
    • inputs

      public void inputs(double[] quad_currents, double[] beam_widths, double[] beam_widths_std)

      inputs.

      Parameters:
      quad_currents - an array of
      invalid reference
      double
      objects
      beam_widths - an array of
      invalid reference
      double
      objects
      beam_widths_std - an array of
      invalid reference
      double
      objects
    • calculateEmittance

      public PythonRunner.Result calculateEmittance()

      calculateEmittance.

      Returns:
      a Result object
    • getLastEmittance

      public double getLastEmittance()

      Getter for the field lastEmittance.

      Returns:
      a double
    • getLastEmittanceStd

      public double getLastEmittanceStd()

      Getter for the field lastEmittanceStd.

      Returns:
      a double