I’m surprised that you would have to state the filename again when extracting the tree from the file - but then again I’ve never used castor… Anyway, try that:
[quote]Though it’s still interesting why it is not working if given the whole link to TTree… [/quote]The function TFile::Get expects a name relative to the file it is being called on ; In the general case supporting the syntax as you expected it would require TFile::Get to open yet another TFile object hence effectively executing an action on a TFile object different from the one you explicitly requested the action to be executed on … leading to confusion …