Setup
Preliminaries¶
Please make sure you are using CentOS7, since SimpleAnalysis
is only fully working on that OS. If you are on lxplus
(e.g. through CERN), then you don't need to worry about having the right architecture and software environment.
Setup¶
First, let's create a suitable directory structure for the entire tutorial.
The docker images available are based on CentOS7. These are pre-built and ready to use so there is no set up needed for you to do. Simply make sure you pull the images
1 |
|
and you're good to go.
As usual, in ATLAS, we make a run
and a build
directory (no source
directory this time, this will be taken over by the SimpleAnalysis source code that we checkout later).
1 2 |
|
1 2 3 |
|
Setup in a virtual environment
Alternatively you can setup the AnalysisBase realease using a docker image: Run the analysisbase image, mounting the SimpleAnalysis directory into the image:docker run -v $TUTORIAL_DIR:/home/atlas/$TUTORIAL_DIR -it atlas/analysisbase:21.2.156
. Setup the realease and get to the right place in the image:source /release_setup.sh
. cd to the right place: cd /home/atlas/$TUTORIAL_DIR/build/
Now setup a recent version of git
and clone the SimpleAnalysis repository including all the submodules into the base-directory,
1 2 3 |
|
1 2 3 |
|
If all goes well, this checks out SimpleAnalysis
as well as the dependencies CalcGenericMT2
and Ext_RestFrames
. If you do an ls
on the created directory, this is what you should see
1 2 3 4 5 6 7 8 9 10 |
|
Next, we go back into the build
directory and configure CMake
1 2 |
|
Using b-tagging weights
You can use cmake -DDO_TRUTHTAGGING=ON ../SimpleAnalysis
if you need b-tagging weights.
then, we actually compile:
1 |
|
Compilation time
The very first compilation takes quite some time (typically 15 minutes on lxplus). Subsequent compilations will typically be a lot faster. If you don't want to wait for the compilation to finish, feel free to open a new shell and continue with the inputs and then analysis skeleton.
Once compilation has successfully finished, you need to tell your shell where to find the compiled binaries:
1 |
|
On every login¶
If you open a new shell (i.e. you logout and come back or just open another terminal window), then you will need to setup again the AnalysisBase
release and tell your shell where to find the compiled binaries.
1 2 3 4 |
|
Inputs¶
You'll need a couple of input files for this tutorial. The input files are available through EOS in
1 |
|
If /eos/
is mounted on your machine (e.g. because you are on lxplus) you can use standard UNIX commands (see also this CERN KB article) and create a symbolic link (or copy the files over). If you are not on lxplus, and/or /eos/
is not mounted, you can get the input files through the XRootD protocol (see also this CERN KB article).
1 2 3 4 |
|
1 2 3 4 |
|