New version of FMD code (A.Maevskaia)
[u/mrichter/AliRoot.git] / FMD / Hits2SDigits.C
CommitLineData
963d4d30 1void Hits2SDigits(){
2 if (gClassTable->GetID("AliRun") < 0) {
3 gROOT->LoadMacro("$ALICE_ROOT/macros/loadlibs.C");
4 loadlibs();
5 }
dc8af42e 6 // gSystem->Setenv("CONFIG_SPLIT_FILE","1") ;
963d4d30 7 if (gSystem->Getenv("CONFIG_SPLIT_FILE"))
8 cout << "SPLIT" << endl;
9 else
10 cout << "NO SPLIT" << endl ;
37c55dc0 11 TFile * f = new TFile("galice.root","UPDATE");
963d4d30 12 gAlice = (AliRun*) f->Get("gAlice") ;
963d4d30 13 AliFMD* FMD = (AliFMD *)gAlice->GetDetector("FMD") ;
dc8af42e 14 gAlice->GetEvent(0);
37c55dc0 15 gAlice->Hits2SDigits("FMD") ;
dc8af42e 16 gAlice->TreeS()->Write(0,TObject::kOverwrite) ;
17 }