How to access data from a TNonSplitBrowsable variable

I have this ROOT file where there is a TTree called “Events” that contains the TBranch called “recoGenJets_ak4GenJets__HLT.obj” Within this TBranch is a TNonSplitBrowsable variable called “m_state”. Nested in that is a TNonSplitBrowsable called “p4Polar_” which contains the TMethodBrowsable “Px()” variable that I want to access.

How can I access the variable “Px()” and perform plots on it?

Hi,

as far as I remember, for CMS datasets, it was enough to click on the right leaf.
Did you set up the appropriate CMSSW release before opening the file (i.e. were all data model libraries found?)?
In any case, I think going for FWLite will be better for something more complex than a single quick plot.

Cheers,
D

PS
This is more of a CMS answer than a ROOT one, but I just happened to know the answer :slight_smile:

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.