]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis/scripts/ViewBGCor.C
2be556f4d80039645817220e672593f6cd4706da
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis / scripts / ViewBGCor.C
1 AliFMDAnaCalibBackgroundCorrection*
2 ViewBGCor(const char* filename)
3 {
4   // gSystem->Load("libANALYSIS");
5   // gSystem->Load("libANALYSISalice");
6   // gSystem->Load("libPWG0base");
7   // gSystem->Load("libPWGLFforward");
8
9
10   TFile* file = TFile::Open(filename, "READ");
11   if (!file) { 
12     Error("ViewBgCor", "Cannot open file %s", filename);
13     return 0;
14   }
15
16   AliFMDAnaCalibBackgroundCorrection* bg = 
17     static_cast<AliFMDAnaCalibBackgroundCorrection*>(file->Get("background"));
18   
19   return bg;
20 }
21