]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/FMDReconstructor.C
Correcting some ripple from recent cleanup
[u/mrichter/AliRoot.git] / FMD / FMDReconstructor.C
1 void FMDReconstructor (Int_t evNumber=1) 
2 {
3   if (gClassTable->GetID("AliRun") < 0) 
4     {
5       gROOT->LoadMacro("$ALICE_ROOT/macros/loadlibs.C");
6       loadlibs();
7     }
8   if (gSystem->Getenv("CONFIG_SPLIT_FILE"))
9     cout << "SPLIT" << endl;
10   else
11     cout << "NO SPLIT" << endl ;
12     
13   
14   
15   //TFile * f = new TFile("galice.root","UPDATE");
16   //gAlice = (AliRun*) f->Get("gAlice") ;
17   
18   AliRunLoader* rl = AliRunLoader::Open("galice.root",AliConfig::GetDefaultEventFolderName(),"read");
19   if (rl == 0x0)
20    {
21      cerr<<"Can not open session for file galice.root\n";
22      return;
23    }
24
25   rl->LoadgAlice();
26   gAlice = rl->GetAliRun();
27
28   AliFMD* FMD  = (AliFMD *)gAlice->GetDetector("FMD");
29
30   gAlice->RunReco("FMD");
31 }
32