README.md 1.61 KB
Newer Older
Shahid Khan's avatar
Shahid Khan committed
1
2
3
# Alice Heavy flavor class for invariant mass fitting
This class can be used for fitting an invariant mass histogram. It has multiple options for signal and background functions.

Shahid Khan's avatar
Shahid Khan committed
4
## Installation
Shahid Khan's avatar
Shahid Khan committed
5
6
For the installion of the class kindly follow the following steps:
1. Clone this repository
Shahid Khan's avatar
Shahid Khan committed
7
- `git clone git@git.cbm.gsi.de:sh.khan/signal_extraction.git`
Shahid Khan's avatar
Shahid Khan committed
8
2. Source your ROOT
Shahid Khan's avatar
Shahid Khan committed
9
- `source /path/to/root/install/bin/thisroot.sh`
Shahid Khan's avatar
Shahid Khan committed
10
3. Make the build directory and go there 
Shahid Khan's avatar
Shahid Khan committed
11
12
- `mkdir build`
- `cd build`
Shahid Khan's avatar
Shahid Khan committed
13
14
15
4. Compile and install the class
- `cmake ./`
- `make`
Shahid Khan's avatar
Shahid Khan committed
16
5. 
Shahid Khan's avatar
Shahid Khan committed
17
For MAC users
Shahid Khan's avatar
Shahid Khan committed
18
uncomment line 9 in the [src/CMakeList.txt](https://git.cbm.gsi.de/sh.khan/signal_extraction/-/blob/master/src/CMakeLists.txt)
Shahid Khan's avatar
Shahid Khan committed
19

Shahid Khan's avatar
Shahid Khan committed
20
## Usage for the first time
Shahid Khan's avatar
Shahid Khan committed
21
To use the class, one needs to export it to root as a library
Shahid Khan's avatar
Shahid Khan committed
22

Shahid Khan's avatar
Shahid Khan committed
23
- `export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/the/path/to/build/src/`
Shahid Khan's avatar
Shahid Khan committed
24

Shahid Khan's avatar
Shahid Khan committed
25
It has a test.cpp file and one can use it to check whether everything has been done properly
Shahid Khan's avatar
Shahid Khan committed
26

Shahid Khan's avatar
Shahid Khan committed
27
- `root -l test.cpp`
Shahid Khan's avatar
Shahid Khan committed
28
29

## For expert user (good practices)
Shahid Khan's avatar
Shahid Khan committed
30
### Higher Order Polynomial
Shahid Khan's avatar
Shahid Khan committed
31
For a specific particle if higher order polynomial option is desired then use the following option because the high order polynomial function is defined differently than the pol2
Shahid Khan's avatar
Shahid Khan committed
32
- `SetParticlePdgMass(Particle_PDG_mass)`
Shahid Khan's avatar
Shahid Khan committed
33
34

### Double Sided Crystal Ball function
Shahid Khan's avatar
Shahid Khan committed
35
For the DSCB signal option try to set bounds in the initial fit and once parameters are found then release the bounds. If the initial fit works but the final fit fails because of the limits on parameters, kindly change them in the [AliHFInvMassFitter.cxx](https://git.cbm.gsi.de/sh.khan/signal_extraction/-/blob/master/src/AliHFInvMassFitter.cxx) file