Update 'Selection code'
parent
8997566e9c
commit
7432cd2832
@ -8,15 +8,41 @@ The selection code is a set of C++ scripts. First, the running of the code is in
|
||||
|
||||
|
||||
## Setting up ROOT
|
||||
**TODO**
|
||||
|
||||
There are several ways how to setup ROOT. What worked fro me is running the following commands:
|
||||
|
||||
|
||||
delta and lhcba1:
|
||||
```
|
||||
/cvmfs/sft.cern.ch/lcg/views/setupViews.sh LCG_97python3 x86_64-centos7-gcc9-opt
|
||||
```
|
||||
|
||||
d0new and sigma0
|
||||
```
|
||||
LD_LIBRARY_PATH=/cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/4.9.3/x86_64-slc6/lib64:/cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_84/ROOT/6.06.02/x86_64-slc6-gcc49-opt/lib:/cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_84/GSL/1.10/x86_64-slc6-gcc49-opt/lib:/home/lhcb/kopecna/B2KstarMuMu/
|
||||
|
||||
|
||||
PATH=/cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_84/gcc/4.9.3/x86_64-slc6/bin:/cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_84/ROOT/6.06.02/x86_64-slc6-gcc49-opt/bin:/cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/4.9.3/x86_64-slc6/bin:/usr/sue/bin:/usr/lib64/qt-3.3/bin:/cvmfs/lhcb.cern.ch/lib/bin/x86_64-slc6:/cvmfs/lhcb.cern.ch/lib/bin/Linux-x86_64:/cvmfs/lhcb.cern.ch/lib/bin:/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/1020/stable/linux-64/bin:/bin:/usr/bin:/usr/sbin:/sbin::/home/lhcb/kopecna/B2KstarMuMu/
|
||||
|
||||
source /cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_84/ROOT/6.06.02/x86_64-slc6-gcc49-opt/bin/thisroot.sh
|
||||
```
|
||||
|
||||
|
||||
In order to make pretty plots, dedicated code in [[Design.cpp|Design.cpp]] is always checked for compilation when starting ROOT. This is done by creating a `.rootalias.C` file in your home directory and telling ROOT to always compile the Design.cpp:
|
||||
```
|
||||
{
|
||||
gROOT->ProcessLine(".L path/to/your/folder/Code/Design.cpp+");
|
||||
gROOT->ProcessLine(".L path/to/your/folder/B2KstarMuMu/Code/Selection/Design.cpp+");
|
||||
}
|
||||
```
|
||||
|
||||
Anytime you start ROOT by using `root`, the intro printout shows up. I find it useful to set an alias to automatically include the `-l`flag that supresses this output. Open your `~.bashrc` file and add
|
||||
```
|
||||
alias root="root -l"
|
||||
```
|
||||
|
||||
If you need to verify the ROOT version at use, open ROOT and run
|
||||
|
||||
|
||||
## Setting up python3 and pyROOT
|
||||
**TODO**
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user