Correct treatment of tracks with pT<pTmin
[u/mrichter/AliRoot.git] / ITS / AliITSHits2FastRecPoints.C
index 640ad92..169f5fe 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());