Sign inSign up

jeffersonlab/hallc-hcana

By jeffersonlab

Updated 6 months ago

Hall C Analyzer

Image
0

10K+

jeffersonlab/hallc-hcana repository overview

This is a Docker container for Jefferson Lab Hall C Analyzer (hcana) using the official repo : https://github.com/JeffersonLab/hcana . Each tag/release of the hcana is made into the conatiner. latest tag contains the latest release available for the hcana.

In the following instruction, make sure to replace the docker tag with the tag you want from Tags list aboce. These commands are for latest tags of hcana.

Once you have installed Docker on your computer, you can fetch a hcana imange and create and start a container using docker run commad:

docker run --name hcana -it jeffersonlab/hallc-hcana:latest bash

Here we fetch the hallc-hcana:latest docker image from dockerhub and name the container hcana . Once done running the the command you should see the command prompt within Docker and you will be in a folder myworkdir which lies in the hcana main repo folder. You will see something like :

[root@c020cd443dda myworkdir]# pwd
/hcana-hcana-xxx/myworkdir

To run hcana commad prompt simply type hcana in the docker command prompt as:

# hcana
DB_DIR set to DBASE
  ************************************************
  *                                              *
  *            W E L C O M E  to  the            *
  *          H A L L C ++  A N A L Y Z E R       *
  *                                              *
  *  hcana release         0.98      12 Oct 2023 *
  *  PODD release         1.7.7      12 Oct 2023 *
  *  ROOT               6.24/08      Sep 29 2022 *
  *                                              *
  *            For information visit             *
  *      http://hallcweb.jlab.org/hcana/docs/    *
  *                                              *
  ************************************************
hcana [0] 

To exit the conatiner simply type exit. If you want to restart the container (e.g. the one named hcana) and return to your work then use the command

docker start -i hcana

To run graphics display

  1. Macos : install XQuartz and enable "Allow connections from network client" and then run following.
$ ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
$ docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$ip:0  jeffersonlab/hallc-hcana:latest bash
  1. Linux: you can use X11 forwarding.
$ ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY==$ip:0 jeffersonlab/hallc-hcana:latest bash

Tag summary

Content type

Image

Digest

sha256:9107f2547

Size

777.9 MB

Last updated

6 months ago

docker pull jeffersonlab/hallc-hcana