Hi Rooters,
I have the following problem :
After loading the rootfile I list the objects by using the usual .ls :
root [1] .ls
TFile** ../2011-12-07_run_04-14-29_2_10.root
TFile* ../2011-12-07_run_04-14-29_2_10.root
KEY: TProcessID ProcessID0;1 33370fc8-4f40-11e1-8001-0101007fbeef
and then if I use TKey :
root [2] _file0->GetListOfKeys()->Print()
Collection name='THashList', class='THashList', size=16
TKey Name = ProcessID0, Title = 33370fc8-4f40-11e1-8001-0101007fbeef, Cycle = 1
TKey Name = Mgr_./2011-12-07_run_04-14-29_2_10_ch_0, Title = Mgr_./2011-12-07_run_04-14-29_2_10_ch_0, Cycle = 1
TKey Name = Mgr1_./2011-12-07_run_04-14-29_2_10_ch_0, Title = Mgr1_./2011-12-07_run_04-14-29_2_10_ch_0, Cycle = 1
TKey Name = Gr_./2011-12-07_run_04-14-29_2_10_ch_0, Title = Graph (./2011-12-07_run_04-14-29_2_10_ch_0 ), Cycle = 1
TKey Name = Gr_Norm_./2011-12-07_run_04-14-29_2_10_ch_0, Title = Graph_Norm (./2011-12-07_run_04-14-29_2_10_ch_0 ), Cycle = 1
TKey Name = Gr_Cor593_./2011-12-07_run_04-14-29_2_10_ch_0, Title = Graph_Cor593 (./2011-12-07_run_04-14-29_2_10_ch_0, Normalized with EPICS NONI(593) ), Cycle = 1
TKey Name = Mgr_./2011-12-07_run_04-14-29_2_10_ch_1, Title = Mgr_./2011-12-07_run_04-14-29_2_10_ch_1, Cycle = 1
TKey Name = Mgr1_./2011-12-07_run_04-14-29_2_10_ch_1, Title = Mgr1_./2011-12-07_run_04-14-29_2_10_ch_1, Cycle = 1
TKey Name = Gr_./2011-12-07_run_04-14-29_2_10_ch_1, Title = Graph (./2011-12-07_run_04-14-29_2_10_ch_1 ), Cycle = 1
TKey Name = Gr_Norm_./2011-12-07_run_04-14-29_2_10_ch_1, Title = Graph_Norm (./2011-12-07_run_04-14-29_2_10_ch_1 ), Cycle = 1
TKey Name = Gr_Cor593_./2011-12-07_run_04-14-29_2_10_ch_1, Title = Graph_Cor593 (./2011-12-07_run_04-14-29_2_10_ch_1, Normalized with EPICS NONI(593) ), Cycle = 1
TKey Name = Mgr_./2011-12-07_run_04-14-29_2_10_ch_2, Title = Mgr_./2011-12-07_run_04-14-29_2_10_ch_2, Cycle = 1
TKey Name = Mgr1_./2011-12-07_run_04-14-29_2_10_ch_2, Title = Mgr1_./2011-12-07_run_04-14-29_2_10_ch_2, Cycle = 1
TKey Name = Gr_./2011-12-07_run_04-14-29_2_10_ch_2, Title = Graph (./2011-12-07_run_04-14-29_2_10_ch_2 ), Cycle = 1
TKey Name = Gr_Norm_./2011-12-07_run_04-14-29_2_10_ch_2, Title = Graph_Norm (./2011-12-07_run_04-14-29_2_10_ch_2 ), Cycle = 1
TKey Name = Gr_Cor593_./2011-12-07_run_04-14-29_2_10_ch_2, Title = Graph_Cor593 (./2011-12-07_run_04-14-29_2_10_ch_2, Normalized with EPICS NONI(593) ), Cycle = 1
I don’t know how to force the objects to be visible by .ls because as soon as I try to search for them using
(TGraph *)gDirectory->Get("… ") it does not work, like the object is in other directory (which I have not created …).
Any ideas/help are welcome !
Many thanks,
Cheers