https://gitlab.com/eic/escalate
ESC - stands for EIC Software and Computing group. ESCalate combines together the software being develop by the group such as:
The framework provides modularity in both ways:
The Escalate itself ensures that data between packages is consistent and output of one package can be correctly read from another. It also provide python configuration to make it easy to organize a workflows between packages. Tools to install, maintain and deploy the subpackages
Try tutorials without installation on
your browser in JLab jupyterlab (BNL jupyterhub is coming)
Fast simulations made simple. It is easy to smear any EIC MCEG supported file with a single console command:
smear my_mc_file.txt
See the documentation for how to easily select a detector, its versions, and various other options
Instructions of how to install docker on Linux, Mac or Windonws and much more documentation on running ESCalate on docker can be found on this page
Running docker (JupyterLab):
docker run -it --rm -p8888:8888 electronioncollider/escalate:v1.1.0
After the docker runs, you can open JupyterLab environment in native web browser.
http://127.0.0.1:8888/
You can bind any directory on your system to docker image by using -v flag:
-v <your/directory>:<docker/directory>
Convenient place inside docker image is
/home/eicuser/workspace/share
(!) Important to know (!) Each time docker run
command is called, it spawns a new “container”. A writeable layer where all modifications are saved is created for the
image, and then docker starts the container using the specified command.
A stopped container can be restarted with all its previous changes intact using docker start
Please, read extended docker instructions on docker.com
Troubleshooting and advanced used of docker can be found on this page
ESCalate framework is installed on CVMFS and can be used directly on farms with spack
1. Source spack environemnt
Tcsh/csh users (default for ifarm)
source /cvmfs/eic.opensciencegrid.org/packages/setup-env.csh
bash/zsh
source /cvmfs/eic.opensciencegrid.org/packages/setup-env.sh
2. Load escalate module
spack load escalate@1.1.0
It should be ready to work
3. Test run
which g4e
ejana
Escalate framework image added to Jefferson Lab Jupyter Hub! It is still in beta stage, several features are not yet working (and we are working on them). Someting works differently compared to when you run the image in docker. This page describe this.
Go to jupyterhub.jlab.org (follow authentication instructions if you are using it for the first time).
In the Spawner options -> Select a notebook image, set eic-notebook (dev) there
You should end up in your jefferson lab home directory.
When you run in docker you start as eicuser with user-ID=1000. On JupyterHUB you run in your JLab home directory with your CUE user (and your CUE user-ID). This implies that:
Your JLab home dir .bashrc is being called instead of one in docker. If you set custom python version or compiler in your .bashrc it will interfere with what is used in docker (will not work most of the time).
git lfs clone https://gitlab.com/eic/escalate/workspace.git # 'lfs' is to pull data files!
sudo
to elevate privilegies and change something in the container. Which means that you can’t change eJana or G4E inside the docker, but you can install them in your home directory and setup ejpm to use them.Please, share on slack if you have any further problems
When you run Docker on your machine or in cloud (such as Binder) the image is started with examples directory usually located at
/home/eicuser/workspace
Workspace - is a git repository with collaborative workspace for EIC. It contains simulations including documentation, examples, and tutorials on how to get started with ESCalate framework.
When you start on farms, Singularity or Jupyterhub, it starts inside your home directory and you may download (git clone) examples:
git clone https://gitlab.com/eic/escalate/workspace
Here are simple snippets with which you can test escalate working
Simpe API to smear a file
smear /path/to/file.txt
Here are 2 more advanced examples files for fast and full simulation. Please run them in your work directory.
Fast simulation (eic-smear):
from pyjano.jana import Jana
Jana().plugin('beagle_reader')\
.plugin('open_charm')\
.plugin('eic_smear', detector='jleic')\
.plugin('jana', nevents=20000, output='hepmc_sm.root')\
.source('/group/eic/mc/BEAGLE/eD_5x50_Q2_1_10_y_0.01_0.95_tau_7_noquench_kt=ptfrag=0.32_Shd1_ShdFac=1.32_Jpsidifflept_test40k_fixpf_crang.txt')\
.run()
Full simulation:
from g4epy import Geant4Eic
g4e = Geant4Eic()\
.source('/group/eic/mc/BEAGLE/eD_5x50_Q2_1_10_y_0.01_0.95_tau_7_noquench_kt=ptfrag=0.32_Shd1_ShdFac=1.32_Jpsidifflept_test40k_fixpf_crang.txt')\
.output('hello')\
.beam_on(200)\
.run()
Look at the docker or tutorials repo for more examples