3 gROOT->LoadMacro("AliParticleYield.cxx+");
4 TClonesArray * arr = AliParticleYield::ReadFromASCIIFile("./PbPb_2760.txt");
5 std::cout << "------------------------------ All Part ------------------------------" << std::endl;
9 TTree * tree = AliParticleYield::ReadFromASCIIFileAsTree("./PbPb_2760.txt");
11 // examples on how to extract sub arrays;
13 arr =AliParticleYield::GetEntriesMatchingSelection(tree, "fCentr == \"V0M0010\" && fStatus == 0");
14 std::cout << "------------------------------ CENTR = 0-10%, Status = 0 ------------------------------" << std::endl;
17 arr =AliParticleYield::GetEntriesMatchingSelection(tree, "fCentr == \"V0M0020\" && !IsTypeRatio()");
18 std::cout << "------------------------------ CENTR = 0-20%, no ratios ------------------------------" << std::endl;
24 AliParticleYield::SaveAsASCIIFile(arr,"pippo.txt");