AliOADBContainer first commit.
[u/mrichter/AliRoot.git] / OADB / test.C
CommitLineData
cc336771 1void test()
2{
3 gSystem->Load("libOADB");
4 con = new AliOADBContainer("OADB");
5 //
6 obj1 = new TNamed("obj1", "");
7 obj2 = new TNamed("obj2", "");
8 obj3 = new TNamed("obj3", "");
9 obj4 = new TNamed("obj4", "");
10 //
11 con->AppendObject(obj1, 1, 10);
12 con->AppendObject(obj2, 11, 20);
13 con->AppendObject(obj3, 21, 30);
14 con->UpdateObject(1, obj4, 100, 101);
15 con->RemoveObject(0);
16 //
17 con->WriteToFile("test.root");
18 //
19 TFile* file = TFile::Open("test.root");
20 //
21 AliOADBContainer* cont0;
22 file->GetObject("OADB", cont0);
23 cont0->Dump();
24 cont0->List();
25}