Interface ISpecsPhoibosAnalyser
- All Superinterfaces:
Findable,IAnalyserSequence,gda.observable.IObservable
- All Known Implementing Classes:
SpecsPhoibosAnalyser,SpecsPhoibosAnalyserSeparateIterations,SpecsPhoibosSolsticeAnalyser
public interface ISpecsPhoibosAnalyser
extends Findable, gda.observable.IObservable, IAnalyserSequence
This is the interface used to expose the SPECS Phoibos analyser over RMI.
It is intended to only contain the methods needed to make a rich GUI to interact with the analyser
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoiddoubleintdoubledoubledouble[]double[][]getImage()intdoubleGet the current analyser settings and builds a region from them.booleanbooleanintdefault intdouble[]double[]getSpectrum(int index) double[]getYAxis()booleanvoidsetAcquisitionMode(String value) voidsetDefaultRegionUi(SpecsPhoibosRegion region) voidsetDwellTime(double collectionTime) voidsetLensMode(String value) voidsetPassEnergy(double value) voidsetPsuMode(String psuMode) voidsetRegion(SpecsPhoibosRegion region) Configures the analyser to acquire the region specified.voidsetSequence(SpecsPhoibosSequence sequence, String filepath) Sets up the analyser to run the provided sequence.voidsetShouldCheckExperimentalShutter(boolean shouldCheckExperimentalShutter) voidsetShouldCheckPrelensValve(boolean shouldCheckPrelensValve) voidstartAlignment(double passEnergy, double centreEnergy, double exposureTime, String lensMode) Starts the analyser acquiring in single image mode, this is intended for use in alignment.voidvoidvoiddefault voiddoubletoBindingEnergy(double kineticEnergy) Converts kinetic energy to binding energy according to:
BE = hν - KE - Φ
where hν = photon energy and Φ = analyser work functiondouble[]toBindingEnergy(double[] kineticEnergy) Converts kinetic energy to binding energy according to:
BE = hν - KE - Φ
where hν = photon energy and Φ = analyser work functiondoubletoKineticEnergy(double bindingEnergy) Converts binding energy to kinetic energy according to:
KE = hν - BE - Φ
where hν = photon energy and Φ = analyser work functiondouble[]toKineticEnergy(double[] bindingEnergy) Converts binding energy to kinetic energy according to:
KE = hν - BE - Φ
where hν = photon energy and Φ = analyser work functionvalidateSequence(SpecsPhoibosSequence sequence) Performs EPICS validation and scannable position validation for all regions in a sequenceMethods inherited from interface org.opengda.detector.electronanalyser.nxdetector.IAnalyserSequence
getSequenceFile, setSequenceFileMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Method Details
-
getDwellTime
double getDwellTime() -
setDwellTime
void setDwellTime(double collectionTime) -
setLensMode
-
setAcquisitionMode
-
setPassEnergy
void setPassEnergy(double value) -
getPassEnergy
double getPassEnergy() -
getLensModes
-
setPsuMode
-
getPsuModes
-
getPsuMode
String getPsuMode() -
getLensMode
String getLensMode() -
getEnergyAxis
double[] getEnergyAxis() -
getYAxis
double[] getYAxis() -
getSpectrum
double[] getSpectrum(int index) -
getSpectrum
double[] getSpectrum() -
getSlices
int getSlices() -
getImage
double[][] getImage() -
validateSequence
SpecsPhoibosSequenceValidation validateSequence(SpecsPhoibosSequence sequence) throws DeviceException Performs EPICS validation and scannable position validation for all regions in a sequence- Parameters:
sequence-- Returns:
- SpecsPhoibosSequenceValidation
- Throws:
DeviceException
-
isNotBusy
boolean isNotBusy() -
setRegion
Configures the analyser to acquire the region specified.- Parameters:
region- The region to set /** This is the interface used to expose the SPECS Phoibos analyser over RMI.It is intended to only contain the methods needed to make a rich GUI to interact with the analyser
-
getRegion
SpecsPhoibosRegion getRegion()Get the current analyser settings and builds a region from them.- Returns:
- The region the analyser is currently configured for
-
setDefaultRegionUi
-
getDefaultRegionUi
SpecsPhoibosRegion getDefaultRegionUi() -
startAlignment
Starts the analyser acquiring in single image mode, this is intended for use in alignment. This is non blocking -
stopAlignment
default void stopAlignment() -
stopAcquiring
void stopAcquiring() -
getCenterEnergy
double getCenterEnergy() -
getDetectorEnergyWidth
double getDetectorEnergyWidth() -
getYUnits
String getYUnits() -
getAcquisitionModes
-
setSequence
Sets up the analyser to run the provided sequence.- Parameters:
sequence- The sequence to setfilepath- The path of the sequence file- Throws:
IllegalArgumentException- If the sequence can't be set
-
toKineticEnergy
double toKineticEnergy(double bindingEnergy) Converts binding energy to kinetic energy according to:
KE = hν - BE - Φ
where hν = photon energy and Φ = analyser work function- Parameters:
bindingEnergy- to convert- Returns:
- The equivalent binding energy
-
toBindingEnergy
double toBindingEnergy(double kineticEnergy) Converts kinetic energy to binding energy according to:
BE = hν - KE - Φ
where hν = photon energy and Φ = analyser work function- Parameters:
kineticEnergy- to convert- Returns:
- The equivalent binding energy
-
toKineticEnergy
double[] toKineticEnergy(double[] bindingEnergy) Converts binding energy to kinetic energy according to:
KE = hν - BE - Φ
where hν = photon energy and Φ = analyser work function- Parameters:
bindingEnergy- to convert- Returns:
- The equivalent binding energy
-
toBindingEnergy
double[] toBindingEnergy(double[] kineticEnergy) Converts kinetic energy to binding energy according to:
BE = hν - KE - Φ
where hν = photon energy and Φ = analyser work function- Parameters:
kineticEnergy- to convert- Returns:
- The equivalent binding energy
-
stopAfterCurrentIteration
void stopAfterCurrentIteration() -
setShouldCheckExperimentalShutter
void setShouldCheckExperimentalShutter(boolean shouldCheckExperimentalShutter) -
getShouldCheckExperimentalShutter
boolean getShouldCheckExperimentalShutter() -
setShouldCheckPrelensValve
void setShouldCheckPrelensValve(boolean shouldCheckPrelensValve) -
getShouldCheckPrelensValve
boolean getShouldCheckPrelensValve() -
enableExperimentalShutterCheck
void enableExperimentalShutterCheck() -
disableExperimentalShutterCheck
void disableExperimentalShutterCheck() -
enablePrelensValveCheck
void enablePrelensValveCheck() -
disablePrelensValveCheck
void disablePrelensValveCheck() -
getIterations
int getIterations() -
getCurrentIteration
int getCurrentIteration() -
getCurrentRegionName
String getCurrentRegionName() -
getCurrentPositionString
String getCurrentPositionString() -
getSnapshotImageSizeX
default int getSnapshotImageSizeX() -
stopAfterCurrentRegion
void stopAfterCurrentRegion()
-