Brak opisu

PeterParfenov 8e3ab2d2d1 Bug fix 5 lat temu
Centrality 2255b5e0b9 Added FlowCalculator (in progress) and README 5 lat temu
Flow 8e3ab2d2d1 Bug fix 5 lat temu
CMakeLists.txt 2255b5e0b9 Added FlowCalculator (in progress) and README 5 lat temu
Mult2Cent.c 3f9204a322 Added simple function with centrality determination 5 lat temu
README.md 2255b5e0b9 Added FlowCalculator (in progress) and README 5 lat temu
calcCent.cpp 1e49af1e70 Added binary for centrality calculations 5 lat temu

README.md

Installation:

git clone https://devel.mephi.ru/PEParfenov/FlowModelCalculator.git

cd FlowModelCalculator/ mkdir build cd build/ cmake ..

Centrality determination. Usage:

  1. Get multiplicity histogram:

    root -l
    .L Centrality/libCentrality.so
    TChain *chain = new TChain("mctree")
    chain->Add("...") // Add files into TChain
    MultReader *multReader = new MultReader(chain)
    multReader->Loop("OUTPUTNAME") // Output of the root file
    
  2. Calculate centrality:

    root -l
    .L Centrality/libCentrality.so
    TFile *fi = new TFile("...","read") // Output file from previous step
    TH1F *hist = (TH1F*) fi->Get("hMult")
    CentralityCalculator *centCalc = new CentralityCalculator()
    centCalc->SetModel("MODEL_NAME")
    centCalc->SetEnergy(ENERGY)
    centCalc->SetHistogram(hist)
    centCalc->Calc();
    
    Int_t centrality = centCalc->GetCentrality(mult)