Definition at line 378 of file xAODRootTest.py.
◆ __init__()
| def xAODRootTest.Analysis.__init__ |
( |
|
self, |
|
|
|
ifname, |
|
|
|
ofname = None |
|
) |
| |
Definition at line 379 of file xAODRootTest.py.
379 def __init__ (self, ifname, ofname = None):
381 self.f = ROOT.TFile (ifname)
382 from xAODRootAccess.TPyEvent
import TPyEvent
383 self.event = TPyEvent (ROOT.xAOD.TEvent.kAthenaAccess)
384 CHECK (self.event.readFrom (self.f,
True,
'CollectionTree'))
387 self.fout = ROOT.TFile.Open (ofname,
'recreate')
388 CHECK (self.event.writeTo (self.fout))
◆ add()
| def xAODRootTest.Analysis.add |
( |
|
self, |
|
|
|
alg |
|
) |
| |
◆ finalize()
| def xAODRootTest.Analysis.finalize |
( |
|
self | ) |
|
Definition at line 408 of file xAODRootTest.py.
410 CHECK (self.event.finishWritingTo (self.fout))
◆ run()
| def xAODRootTest.Analysis.run |
( |
|
self, |
|
|
|
n = None |
|
) |
| |
Definition at line 395 of file xAODRootTest.py.
395 def run (self, n=None):
396 nent = self.event.getEntries()
399 for i
in range(nent):
400 self.event.getEntry(i)
401 print (
'---> Event', i)
403 a.execute (self.event)
404 if self.fout !=
None:
◆ algs
| xAODRootTest.Analysis.algs |
◆ event
| xAODRootTest.Analysis.event |
◆ fout
| xAODRootTest.Analysis.fout |
The documentation for this class was generated from the following file: