Updated example
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Jan 2011 17:46:45 +0000 (17:46 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Jan 2011 17:46:45 +0000 (17:46 +0000)
OADB/test.C

index 16751d3..98f8c3e 100644 (file)
@@ -16,10 +16,8 @@ void test()
   // 
   con->WriteToFile("test.root");
   //
-  TFile* file = TFile::Open("test.root");
-  //
-  AliOADBContainer* cont0;
-  file->GetObject("OADB", cont0); 
-  cont0->Dump();
-  cont0->List();
+  AliOADBContainer cont0;
+  cont0.InitFromFile("test.root", "OADB");
+  cont0.Dump();
+  cont0.List();
 }