Go to the documentation of this file.00001 void testgui()
00002 {
00003 new TH1I("testhisto1","histo title", 100, 1., 100.);
00004 new TH1I("testhisto2","histo title", 100, 1., 100.);
00005 new TH1I("testhisto3","histo title", 100, 1., 100.);
00006
00007 TGo4ObjectManager objm("ObjManager","Go4 object manager");
00008
00009 TNamed* name1 = new TNamed("name1","name1 title");
00010 TNamed* name2 = new TNamed("name2","name2 title");
00011 TNamed* name3 = new TNamed("name3","name3 title");
00012
00013 objm.Add("data/folder1/folder2", name1);
00014 objm.Add("data/folder1/folder5", name2);
00015 objm.Add("data/folder3", name3);
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 objm.AddROOTFolders("data");
00036 objm.AddFile("data", "hist.root");
00037
00038 objm.SyncGuiSlots("gui","data");
00039 objm.PrintSlots();
00040
00041
00042
00043
00044
00045
00046 std::cout << std::endl << "------------------------------- " << std::endl;
00047 objm.DeleteSlot("data/hist.root");
00048
00049 objm.SyncGuiSlots("gui","data");
00050 objm.PrintSlots();
00051
00052
00053
00054
00055 }