NatKarmios / ParticleSimulations

Used as part of the CREST project by Nat Karmios, Nima Sahba, Carlos Barredo, and Lucas George.

Home Page:https://natkarmios.github.io/ParticleSimulations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Particle Simulations

Edit: the paper is now available here in the repository.

Used as part of the CREST project by Nat Karmios, Nima Sahba, Carlos Barredo, and Lucas George.

Generates specifically-purposed data using the Pythia 8 monte-carlo generator.

This consists of an API server (built with Flask) which serves JSON objects via HTTP, and the webpage with which to use the API server. If you host the API server with HTTPS, then you can use the interface here, otherwise you must host the interface page with regular HTTP.

The API server's Docker container can have an open port to be either directly accessed by clients (not reccommended) or used in conjunction with a webserver (e.g. Apache or nginx).

The Docker container requires a volume at /root/cfg, which must contain:

  • pythia_cfg.txt, which specifies parameters to be fed into the Pythia generator
  • cfg.py, which requires a variable, PASSWD, which serves as the password for the API authentication.

Side note: a pythia_cfg.txt is provided in python/cfg/pythia_cfg.txt, and an example of cfg.py is at python/cfg/cfg.py

Example docker run command:
$ docker run -d -p 127.0.0.1:5000:5000 -v $PWD/cfg:/root/cfg --name particles natk/particles
There is also a provided run.sh which should work, provided the necessary config files are present..

About

Used as part of the CREST project by Nat Karmios, Nima Sahba, Carlos Barredo, and Lucas George.

https://natkarmios.github.io/ParticleSimulations


Languages

Language:Python 89.1%Language:CSS 9.0%Language:JavaScript 1.7%Language:HTML 0.1%Language:R 0.1%Language:Dockerfile 0.0%Language:Shell 0.0%