PeterParfenov 8e3ab2d2d1 Bug fix | 5 gadi atpakaļ | |
---|---|---|
Centrality | 5 gadi atpakaļ | |
Flow | 5 gadi atpakaļ | |
CMakeLists.txt | 5 gadi atpakaļ | |
Mult2Cent.c | 5 gadi atpakaļ | |
README.md | 5 gadi atpakaļ | |
calcCent.cpp | 5 gadi atpakaļ |
Installation:
git clone https://devel.mephi.ru/PEParfenov/FlowModelCalculator.git
cd FlowModelCalculator/ mkdir build cd build/ cmake ..
Centrality determination. Usage:
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
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)