Page cover

Getting started

Welcome! This page is meant as an intro to the LFHCal TB analysis software , which can be found here: https://github.com/eic/epic-lfhcal-tbana

DISCLAIMER: Any plots shown in this tutorial should not be shown at conferences without prior approval by the ePIC LFHCal DSC. They are purely meant as illustrations what the software can do in its current state.

In order to get started make sure you download the software:

git clone git@github.com:eic/epic-lfhcal-tbana.git $WHATEVERYOURDIRNAMESHOULDBE
# enter corresponding directory
cd $WHATEVERYOURDIRENAMESHOULDBE
git submodule update --init --recursive

have a working developer version of root and can actually compile the software. The repository contains 2 major version of the analysis code:

  • OldStructure (used prior to the Aug. 2024 TB)

  • NewStructure (used since Aug. 2024)

A basis intro can description is also given in the README in the main directory of the software. We only left the older part of the software as inspiration for some future parts of the code. Any further development should be done in "NewStructure". So in order to see whether everything works in principle. Open a shell in the main checkout of the git-repo, make sure you have access to root and do

cd NewStructure
cmake .
make

This should compile all necessary executables for the calibrations and initial data analysis. You can test the compilation as follows

./Convert -h

This should give you all the options the program Convert can handle. If that worked , you'll need some data! If not something went wrong with your compilation. Please make sure you also always are on the latest version of main software packages and the submodules packages by:

git pull --rebase
git pull --recurse-submodules

In case you make any major changes to the basis classes remember to do

Otherwise you might be building against an outdated class by accident. In case you pulled changes from the git repository, always make yourself familiar with the new options first using:

All provided shell scripts are designed such that they work with the executable compiled in the NewStructure-folder. If you prefer to have them separate that is possible too. Just be aware that you'll need to write your own shell scripts in that case.

An overview of the data sets we collected in August 2024 can be found here https://wiki.bnl.gov/EPIC/index.php?title=LFHCal_Fall_2024_Test_Beam

If you don't know where raw files for the data are contact Friederike Bock (fbock@cern.ch) and she'll let you know how to get access.

As you might be analyzing quite a lot of runs and doing things in parallel for instance on the same data set but with different settings it might be worth separating the directory in which you have the checked out version of the software and where you are compiling/running & storing things.

To do so we prepared a small script which can create soft-links to your original software directory (allowing you to have the same software version w/o multiple copies). This script is called $prepareAnalysisDirectory.sh and can be executed as follows on any unix system:

Execute it in the directory where you would like to work after having added your user name and path to the software repo. The software compilation would still need to happen in the original checked out directory.

Last updated