So I have a .root file, and in it is a TTree. The setup looks like;
I can open this tree with pyroot, and myTree.Show() seems to print the values associated with a particular event;
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> myFile = ROOT.TFile("TTTo2L2Nu_ntp.root")
>>> myTree = myFile.Get("btagana/ttree")
>>> myTree.Show(0)
======> EVENT:0
nBitTrigger = 2
BitTrigger = 2049,
0
Run = -1
Evt = 15294515
LumiBlock = 16420
pthat = -1
mcweight = 72.6983
BX = -1
nPV = 3
etc....
Those are the numbers that I want to access. I want to be able to get some or all of the variables for a given event, so that I can work on one event at a time. What do I need to call?