]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSAnalizeSPDHits.C
Add plotting macros
[u/mrichter/AliRoot.git] / ITS / AliITSAnalizeSPDHits.C
index 7d62de08855f594a0fc164079154ad9ef571c07e..f5c5cf07e74d2af8c8342975bb836b84d2aceb74 100644 (file)
@@ -8,7 +8,7 @@ void AliITSAnalizeSPDHits(TString hfn="galice.root",Int_t mod=-1,
     loadlibs();
   } else {
     if(gAlice){
-      delete gAlice->GetRunLoader();
+      delete AliRunLoader::Instance();
       delete gAlice;
       gAlice=0;
     }
@@ -18,7 +18,7 @@ void AliITSAnalizeSPDHits(TString hfn="galice.root",Int_t mod=-1,
   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 {
     printf("Using deafult storage \n");
@@ -64,7 +64,7 @@ void AliITSAnalizeSPDHits(TString hfn="galice.root",Int_t mod=-1,
   ITSloader->SetITSgeom(geom);
 
   Int_t evNumber1 = 0;
-  Int_t evNumber2 = gAlice->GetEventsPerRun();
+  Int_t evNumber2 = AliRunLoader::GetNumberOfEvents();
   if(evnt>=0){
     evNumber1 = evnt;
     evNumber2 = evnt+1;
@@ -252,4 +252,4 @@ void AliITSAnalizeSPDHits(TString hfn="galice.root",Int_t mod=-1,
   tvTree->Draw("ITS.fX*ITS.fX+ITS.fY*ITS.fY:ITS.fZ","ITS.fModule<240","", 
                 100000, 0);
 
-}
\ No newline at end of file
+}