]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSGeoPlot.C
doxy: install-doxygen target
[u/mrichter/AliRoot.git] / ITS / AliITSGeoPlot.C
index 1c6c48441bf5a0923306e40c49c45249a5878491..ecf9def8052559a85f751c4b270705e1b675ef96 100644 (file)
@@ -101,7 +101,7 @@ Int_t AliITSGeoPlot (Int_t evesel=0, char *opt="All+ClustersV2", TString filenam
   }
   else { 
     if(gAlice){
-      delete gAlice->GetRunLoader();
+      delete AliRunLoader::Instance();
       delete gAlice;
       gAlice=0;
     }
@@ -109,8 +109,9 @@ Int_t AliITSGeoPlot (Int_t evesel=0, char *opt="All+ClustersV2", TString filenam
   // Set OCDB if needed
   AliCDBManager* man = AliCDBManager::Instance();
   if (!man->IsDefaultStorageSet()) {
-    printf("Setting a local default storage\n");
-    man->SetDefaultStorage("local://$ALICE_ROOT");
+    printf("Setting a local default storage and run number 0\n");
+    man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+    man->SetRun(0);
   }
   else {
     printf("Using deafult storage \n");
@@ -178,8 +179,10 @@ Int_t AliITSGeoPlot (Int_t evesel=0, char *opt="All+ClustersV2", TString filenam
   ITS->FillModules(0,0,nmodules," "," ");
   cout<<"ITS modules .... DONE!"<<endl;
   
-  AliITSDetTypeRec* detTypeRec = new AliITSDetTypeRec(ITSloader);
+  AliITSDetTypeRec* detTypeRec = new AliITSDetTypeRec();
+  detTypeRec->SetITSgeom(ITSloader->GetITSgeom());
   detTypeRec->SetDefaults();
+
   // DIGITS
   TTree *TD = ITSloader->TreeD();