Slash as part of name rather than TDictory?

I have a badly designed root file that I want to get a TGraph from but…

root [16] g1 = (TGraph*) f1.Get(“Digis/evt sect 0 (FECE bot)”)
Error in TFile::cd: Unknown directory Digis
(class TGraph*)0x0

Digis/ is not a Tdirectory, it’s just part of the name. Is there some way that root can see this as the name rather than as a directory?


You can retrieve your TGraph with:

TGraph *gr = (TGraph*)f.GetKey("Digis/evt sect 0 (FECE bot)")->ReadObj();