]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/ThermalFits/TestReadTable.C
Added option to compute worst case extrapolation uncertainties
[u/mrichter/AliRoot.git] / PWGLF / ThermalFits / TestReadTable.C
CommitLineData
2f86df33 1void TestReadTable() {
2
5a633e19 3 LoadLibs();
2f86df33 4 TClonesArray * arr = AliParticleYield::ReadFromASCIIFile("./PbPb_2760.txt");
3e8c4dd8 5 std::cout << "" << std::endl;
6 std::cout << "------------------------------ All Part, Saving thermus gile ------------------------------" << std::endl;
2f86df33 7 arr->Print();
5a633e19 8 AliParticleYield::WriteThermusFile(arr, "thermus.txt" );
2f86df33 9
10 // Get it as tree
3e8c4dd8 11 TTree * tree = AliParticleYield::ReadFromASCIIFileAsTree("./PbPb_7000.txt");
2f86df33 12
13 // examples on how to extract sub arrays;
14 delete arr;
3e8c4dd8 15 std::cout << "" << std::endl;
2f86df33 16 arr =AliParticleYield::GetEntriesMatchingSelection(tree, "fCentr == \"V0M0010\" && fStatus == 0");
17 std::cout << "------------------------------ CENTR = 0-10%, Status = 0 ------------------------------" << std::endl;
18 arr->Print();
5a633e19 19
2f86df33 20 delete arr;
3e8c4dd8 21 std::cout << "" << std::endl;
2f86df33 22 arr =AliParticleYield::GetEntriesMatchingSelection(tree, "fCentr == \"V0M0020\" && !IsTypeRatio()");
23 std::cout << "------------------------------ CENTR = 0-20%, no ratios ------------------------------" << std::endl;
24 arr->Print();
25
3e8c4dd8 26 std::cout << "" << std::endl;
27 std::cout << "------------------------------ Saving ASCII file ------------------------------" << std::endl;
2f86df33 28
29 AliParticleYield::SaveAsASCIIFile(arr,"pippo.txt");
30
31}
5a633e19 32
33void LoadLibs() {
34
35 gSystem->Load("libCore.so");
36 gSystem->Load("libGeom.so");
37 gSystem->Load("libPhysics.so");
38 gSystem->Load("libVMC");
39 gSystem->Load("libTree");
40 gSystem->Load("libProof");
41 gSystem->Load("libMatrix");
42 gSystem->Load("libMinuit");
43 gSystem->Load("libSTEERBase");
44 gSystem->Load("libESD");
45 gSystem->Load("libAOD");
46 gSystem->Load("libANALYSIS");
47 gSystem->Load("libOADB");
48 gSystem->Load("libANALYSISalice");
49 gSystem->Load("libTENDER");
50 gSystem->Load("libCORRFW");
51 gSystem->Load("libMinuit");
52 gSystem->Load("libPWGTools");
53 // gROOT->LoadMacro("AliParticleYield.cxx+");
54
55 gSystem->Load("libPWGLFthermalfits");
56
57
58}