LArLite on the Grid - twongjirad/LArLiteSoftCookBook GitHub Wiki

Running on the grid

The worker node has to have a copy of a) LArSoft with LiteMaker and b) larlite. a) can be taken care of by doing the usual make_tar_uboone.sh, which makes a tarball of your uboonecode build and ships it to the worker node. For b) one has a couple of options. You can tar up larlite and ship it to the node as well. However, the easiest thing to do is just have the worker node use the network disks. How costly is this? I don't know. Maybe in the future I will include instructions on how to tar and ship. For now, we rely on telling project.py to run a initialization bash script to configure larlite.

First, create a initialization script. The /app drive is visible to the node (for better or worse, but definitely for laziness). Make script (I've called mine 'init.sh') that looks like:

source /uboone/app/users/tmw/larlite/config/setup.sh

Of course, that refers to Taritree's larlite copy. Please refer to your own.

Now in your project.py xml file, add to the stage defined for litemaker the following tag:

<initsource>&software_dir;/init.sh</initsource>

Note that the xml variable software_dir points to the folder containing the xml file.

That should be it, I think.

⚠️ **GitHub.com Fallback** ⚠️