Skip to content

Getting information from TTime fMilliSec member #859

Answered by jpivarski
aleberti asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the structures in the two files are different, but it might be just that the ROOT 5 one was written with full splitting (splitLevel=99) and the ROOT 6 one was written without splitting (splitLevel=0).

>>> import uproot
>>> f5 = uproot.open("example_root5.root")
>>> f6 = uproot.open("example_root6.root")

>>> f5["Events/MTime/fTime"].show()
name                 | typename                 | interpretation                
---------------------+--------------------------+-------------------------------
fTime                | TTime                    | AsGroup(<TBranchElement 'fTime
fTime.fMilliSec      | int64_t                  | AsDtype('>i8')

>>> f6["Events/MTime/fTime"].show()
name

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aleberti
Comment options

@jpivarski
Comment options

Answer selected by aleberti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants