LoadLibs();
TClonesArray * arr = AliParticleYield::ReadFromASCIIFile("./PbPb_2760.txt");
- std::cout << "------------------------------ All Part ------------------------------" << std::endl;
+ std::cout << "" << std::endl;
+ std::cout << "------------------------------ All Part, Saving thermus gile ------------------------------" << std::endl;
arr->Print();
AliParticleYield::WriteThermusFile(arr, "thermus.txt" );
// Get it as tree
- TTree * tree = AliParticleYield::ReadFromASCIIFileAsTree("./PbPb_2760.txt");
+ TTree * tree = AliParticleYield::ReadFromASCIIFileAsTree("./PbPb_7000.txt");
// examples on how to extract sub arrays;
delete arr;
+ std::cout << "" << std::endl;
arr =AliParticleYield::GetEntriesMatchingSelection(tree, "fCentr == \"V0M0010\" && fStatus == 0");
std::cout << "------------------------------ CENTR = 0-10%, Status = 0 ------------------------------" << std::endl;
arr->Print();
delete arr;
+ std::cout << "" << std::endl;
arr =AliParticleYield::GetEntriesMatchingSelection(tree, "fCentr == \"V0M0020\" && !IsTypeRatio()");
std::cout << "------------------------------ CENTR = 0-20%, no ratios ------------------------------" << std::endl;
arr->Print();
-
-
+ std::cout << "" << std::endl;
+ std::cout << "------------------------------ Saving ASCII file ------------------------------" << std::endl;
AliParticleYield::SaveAsASCIIFile(arr,"pippo.txt");
void LoadLibs() {
- gSystem->Load("libCore.so");
- gSystem->Load("libGeom.so");
- gSystem->Load("libPhysics.so");
+ gSystem->Load("libCore");
+ gSystem->Load("libGeom");
+ gSystem->Load("libPhysics");
gSystem->Load("libVMC");
gSystem->Load("libTree");
gSystem->Load("libProof");
gSystem->Load("libANALYSIS");
gSystem->Load("libOADB");
gSystem->Load("libANALYSISalice");
- gSystem->Load("libTENDER");
+ gSystem->Load("libTender");
gSystem->Load("libCORRFW");
gSystem->Load("libMinuit");
gSystem->Load("libPWGTools");