Basic implementation of the new centrality determination method (https://arxiv.org/abs/1708.00081)

Peter Parfenov e75af1c70a Added basic TH1F checks лет назад: 4
CMakeLists.txt 56cac52c5b Added Gamma-based fitting procedure, small fixes лет назад: 4
FitCent.cpp e75af1c70a Added basic TH1F checks лет назад: 4
FitCentGamma.cpp 56cac52c5b Added Gamma-based fitting procedure, small fixes лет назад: 4
README.md 1006a11590 Fixed readme лет назад: 4

README.md

Basic implementation of the new centrality determination method (https://arxiv.org/abs/1708.00081).


Installation:

    mkdir build
    cd build/
    cmake ../
    make

Usage:

To use it with root-file (hRefMultSTAR - name of the TH1F histogram in that file):

    ./FitCent -root /<path to directory>/inputfile.root -o output.root

To use it with ASCII dat-file (with 2 columns: Nch dN/dNch):

    ./FitCent -dat /<path to directory>/inputfile.dat -o output.root

Output file output.root will contain 2 objects:

TGraphErrors grMult - Normalized multiplicity distribution gathered from input
TF1 fitFunc - Fitted function of grMult