Building the DL LEE Singularity Container - twongjirad/LArLiteSoftCookBook GitHub Wiki
First, get Sigularity on your laptop
Note: In order to build an image, you need to have access to machine where you can run sudo
. Usually this means on your personal laptop.
Refer to following for installation
Grab an image from the Singularity hub
Builds of the dllee_unified repository is kept at the [Singularity hub].(https://singularity-hub.org/collections/181/)
To grab it, run
singularity pull shub://twongjirad/singularity-dllee-ubuntu:master
Build a new image
You can also build one using the following commands. When you build the image, it will use the latest version of the DL LEE code.
First, clone the Bootstrap file repository
git clone https://github.com/twongjirad/singularity-dllee-ubuntu.git
Then, go into the folder and make an empty image
sudo singularity create --size 4000 my_dllee_unified.img
Next, import/build the DL LEE container
sudo singularity bootstrap my_dllee_unified.img Singularity
This will build the image.
However, note that a built image will be missing the photon library data file. We need to add this, if we are going to use the image to do any kind of flash-matching. An example would be the cosmic pixel tagger.
To do this, get a copy from someone (e.g. email Taritree for one). Then move it to your /tmp/ folder.
Then a shell inside the container using
sudo singularity shell -w my_dllee_unified.img
It'll provide a prompt. Type bash
, to start a bash shell.
Finally, copy the photon library file to
/usr/local/share/dllee_unified/larlite/UserDev/SelectionTool/OpT0Finder/PhotonLibrary/app/
You can then exit the container by typing exit
twice.