Definition at line 387 of file xAODRootTest.py.
◆ __init__()
def xAODRootTest.Analysis.__init__ |
( |
|
self, |
|
|
|
ifname, |
|
|
|
ofname = None |
|
) |
| |
Definition at line 388 of file xAODRootTest.py.
388 def __init__ (self, ifname, ofname = None):
390 self.f = ROOT.TFile (ifname)
391 self.event = ROOT.xAOD.TEvent (ROOT.xAOD.TEvent.kAthenaAccess)
392 CHECK (self.event.readFrom (self.f,
True,
'CollectionTree'))
393 self.tree = ROOT.xAOD.MakeTransientTree(self.event,
'CollectionTree')
396 self.fout = ROOT.TFile.Open (ofname,
'recreate')
397 CHECK (self.event.writeTo (self.fout))
◆ add()
def xAODRootTest.Analysis.add |
( |
|
self, |
|
|
|
alg |
|
) |
| |
◆ finalize()
def xAODRootTest.Analysis.finalize |
( |
|
self | ) |
|
Definition at line 417 of file xAODRootTest.py.
419 CHECK (self.event.finishWritingTo (self.fout))
◆ run()
def xAODRootTest.Analysis.run |
( |
|
self, |
|
|
|
n = None |
|
) |
| |
Definition at line 404 of file xAODRootTest.py.
404 def run (self, n=None):
408 for i
in range(nent):
409 self.tree.GetEntry(i)
410 print (
'---> Event', i)
412 a.execute (self.tree, self.event)
413 if self.fout !=
None:
◆ algs
xAODRootTest.Analysis.algs |
◆ event
xAODRootTest.Analysis.event |
◆ fout
xAODRootTest.Analysis.fout |
◆ tree
xAODRootTest.Analysis.tree |
The documentation for this class was generated from the following file: