TTree question Entry$ address?

I would like to access a TTree’s Entry$ value the same way I access branch data. Eg. I would like to have

Long64_t z; myTree->SetBranchAddress("Entry$",&z); but, alas, that is not legal. I have also tried to use an alias and set the address to the alias…no dice! Any other suggestions?

Note: my reason for doing this is that the code that analyzes the TTree looks at both un-sampled data (that is the raw TTree where I am interested in Entry$) and sampled data (only some of the entries, where I store the raw TTree’s Entry$ value in branch.



Hi Ed,

why isn’t TTree::GetReadEntry() (or the actual index used in the code as argument of TTree::GetEntry) bit enough?