]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSPrintRecPoints.C
Double check if SM is running added. Some redundant output removed from SM
[u/mrichter/AliRoot.git] / ITS / AliITSPrintRecPoints.C
index b9c34acd731952b38491cf7517252e2d341f99ee..625bfce669f04f37f71c6d28a4f0c30f09efe35f 100644 (file)
@@ -35,7 +35,7 @@ void AliITSPrintRecPoints(Int_t outtype=1,TString rfn="galice.root",
   }
   else {
     if(gAlice){
-      delete gAlice->GetRunLoader();
+      delete AliRunLoader::Instance();
       delete gAlice;
       gAlice=0;
     }
@@ -45,7 +45,7 @@ void AliITSPrintRecPoints(Int_t outtype=1,TString rfn="galice.root",
   AliCDBManager* man = AliCDBManager::Instance();
   if (!man->IsDefaultStorageSet()) {
     printf("Setting a local default storage and run number 0\n");
-    man->SetDefaultStorage("local://$ALICE_ROOT");
+    man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
     man->SetRun(0);
   }
   else {
@@ -90,7 +90,7 @@ void AliITSPrintRecPoints(Int_t outtype=1,TString rfn="galice.root",
   gm = ITSloader->GetITSgeom();
 
   Int_t evNumber1 = 0;
-  Int_t evNumber2 = gAlice->GetEventsPerRun();
+  Int_t evNumber2 = AliRunLoader::GetNumberOfEvents();
   if(evnt>=0){
     evNumber1 = evnt;
     evNumber2 = evnt+1;