]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSHits2FastRecPoints.C
update from Marco
[u/mrichter/AliRoot.git] / ITS / AliITSHits2FastRecPoints.C
index 640ad92762c8835964cde057e89fbe5eca08acd2..169f5fec8dcbaa2da45c8319e664a4ebab06dbd4 100644 (file)
@@ -37,7 +37,7 @@ void AliITSHits2FastRecPoints (Int_t evNumber1=0,Int_t evNumber2=0, TString inFi
   }
   else { 
     if(gAlice){
-      delete gAlice->GetRunLoader();
+      delete AliRunLoader::Instance();
       delete gAlice;
       gAlice=0;
     }
@@ -118,8 +118,8 @@ void AliITSHits2FastRecPoints (Int_t evNumber1=0,Int_t evNumber2=0, TString inFi
 
   cout << "Creating fast reconstructed points from hits for the ITS..." << endl;
   AliITSDetTypeSim* dettyp = new AliITSDetTypeSim();
-  dettyp->SetITSgeom(geom);
   dettyp->SetLoader(gime);
+  dettyp->SetITSgeom(geom);
   ITS->SetDetTypeSim(dettyp);
   for (Int_t i=0;i<3;i++) {
     ITS->SetSimulationModel(i,new AliITSsimulationFastPoints());