Skip to main content

Ring-stored ion IDentification

Project description

RionID (Ring-stored ion IDentification) Usage Guide

documentationDOI

RionID is a Python code that simulates the time-of-flight/revolution-frequency spectrum of particles stored in a storage ring. Here is a guide on how to use RionID (for more details please check dfreiref.github.io/rionid/):

Installation

  git clone https://github.com/DFreireF/rionid.git
  • Then in the cloned directory:
  pip install .

Usage

Navigate to the directory containing the RionID code in your terminal. Run python __main__.py [arguments], replacing [arguments] with the desired arguments (detailed below).

Arguments

The following arguments are available for use with RionID:

Main Arguments

  • datafile (required): Name of the input file with data. Can also be a list of files in a txt file.
  • alphap: Momentum compaction factor of the ring.
  • refion: Reference ion with format NucleonsNameChargestate := AAXX+CC. Example: 72Ge+35, 1H+1, 238U+92...
  • filep: Read list of particles to simulate. LISE file or something else.

Secondary Arguments

  • harmonics: Harmonics to simulate.

Arguments for Each Mode (Exclusive)

  • brho: Brho value of the reference nucleus at ESR (isochronous mode).
  • kenergy: Kinetic energy of reference nucleus at ESR (isochronous mode).
  • gamma: Lorentz factor gamma of the reference particle.
  • fref: Revolution frequency of the reference particle (standard mode).

Arguments for Visualization

  • ndivs: Number of divisions in the display.
  • amplitude: Display of srf data options. 0 -> constant height, else->scaled.

Actions

  • log: Set the logging level.
  • show: Show display. If not, save root file and close display.
  • outdir: Output directory.
  • correct: Correct simulated spectrum following a polynomial fit with paremeters given here.

Example Usage: Dummy example

    python -m rionid datafile.txt -f 11.2452 -r 209Bi+83 -psim datafile.psim -b 5.5 -d 8 -am 1 -s -o output_folder -c 1 2 3

This command would run RionID on the datafile.txt input file, using the standard mode with a reference frequency of 11.2452, a reference ion of 209Bi+83, a particle input file of datafile.psim, a brho value of 5.5, and displaying the data with 8 divisions, scaled amplitude, and showing the display. The output files would be saved in the output_folder directory, and the simulated spectrum would be corrected using the polynomial fit parameters 1, 2, and 3.

Tutorial:

Tutorial for introducing yourself to Schottky data analysis by G. Hudson-Chang @gwgwhc.

Acknowledgements:

We acknowledge Dr. RuiJiu Chen (@chenruijiu) for providing a C++ code for the simulation of time-of-flight which we used as inspiration for the backbone of this code.
We acknowledge Dr. Shahab Sanjari (@xaratustrah) for the guiding our software coding, specially in the initial stages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rionid-6.0.10.tar.gz (41.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rionid-6.0.10-py3-none-any.whl (48.4 kB view details)

Uploaded Python 3

File details

Details for the file rionid-6.0.10.tar.gz.

File metadata

  • Download URL: rionid-6.0.10.tar.gz
  • Upload date:
  • Size: 41.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for rionid-6.0.10.tar.gz
Algorithm Hash digest
SHA256 ad614ea4187f64b8e16cb23f4aacad2a17b650333bc3a2cc80c5e89e2b2d5da6
MD5 1bf55a594c147aefa29711541a09c58b
BLAKE2b-256 587c5e6cd6921a4a62bf7281c7da02eb20924de63b140acb58f63bf92777d27b

See more details on using hashes here.

File details

Details for the file rionid-6.0.10-py3-none-any.whl.

File metadata

  • Download URL: rionid-6.0.10-py3-none-any.whl
  • Upload date:
  • Size: 48.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for rionid-6.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8345f9e2829b3dd99e680811e78b3b18668470d73223ee7b477abe9c3b7a16f2
MD5 ec6f5b83df9c20ea8329343a6cfcb9d9
BLAKE2b-256 0b2681188c8b2b2effea13c995797e0ed1c6886809ce80fa733bc480b948a17e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page