]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mchview.cxx
Registration of screenshots into amore.
[u/mrichter/AliRoot.git] / MUON / mchview.cxx
index b0debd5b0380f427a4dab4bb68387b2c9c75248d..557d67e5453d8fa7fcd2ef05975a511bd45f34f4 100644 (file)
@@ -52,6 +52,7 @@ Int_t Usage()
   cout << "  --asciimapping : load mapping from ASCII files instead of OCDB (for debug and experts only...)" << endl;
   cout << "  --de detElemId : start by displaying the given detection element instead of the default view (which is all the chambers)" << endl;
   cout << "  --chamber chamberId (from 1 to 10) : start by displaying the given chamber instead of the default view (which is all the chambers)" << endl;
+  cout << "  --ocdb ocdbPath : read the mapping from the given OCDB" << endl;
   return -1;
 }
 
@@ -73,6 +74,7 @@ int main(int argc, char** argv)
   Int_t gix, giy;
   Int_t gox,goy;
   Bool_t ASCIImapping(kFALSE);
+  TString defaultOCDB("local://$ALICE_ROOT/OCDB");
   
   for ( Int_t i = 0; i <= args.GetLast(); ++i ) 
   {
@@ -108,6 +110,13 @@ int main(int argc, char** argv)
       nok += 2;
       ++i;      
     }
+    else if ( a == "--ocdb" )
+    {
+      defaultOCDB = static_cast<TObjString*>(args.At(i+1))->String();
+      cout << "Using default storage  = " << defaultOCDB.Data() << endl;
+      nok += 2;
+      ++i;
+    }
     else
     {
       return Usage();
@@ -119,9 +128,7 @@ int main(int argc, char** argv)
     return Usage();
   }
   
-  AliWarningGeneral("main","FIXME ? Remove default storage and run number from here...");
-  
-  AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  AliCDBManager::Instance()->SetDefaultStorage(defaultOCDB.Data());
   AliCDBManager::Instance()->SetRun(0);
  
   if ( ASCIImapping ) 
@@ -170,8 +177,6 @@ int main(int argc, char** argv)
   
   AliMUONMchViewApplication* theApp = new AliMUONMchViewApplication("mchview", &argc, argv, w,h,gox,goy);
    
-  AliCodeTimer::Instance()->Print();
-
   TIter next(&filesToOpen);
   TObjString* s;
   while ( ( s = static_cast<TObjString*>(next()) ) )