Definition at line 383 of file xAODRootTest.py.
◆ __init__()
| def xAODRootTest.Analysis.__init__ |
( |
|
self, |
|
|
|
ifname, |
|
|
|
ofname = None, |
|
|
|
is_rntuple = False |
|
) |
| |
Definition at line 384 of file xAODRootTest.py.
384 def __init__ (self, ifname, ofname = None, is_rntuple = False):
387 from xAODRootAccess.RPyEvent
import RPyEvent
388 self.event = RPyEvent()
389 CHECK (self.event.readFrom (ifname))
391 from xAODRootAccess.TPyEvent
import TPyEvent
392 self.f = ROOT.TFile (ifname)
393 self.event = TPyEvent (TPyEvent.kAthenaAccess)
394 CHECK (self.event.readFrom (self.f,
True,
'CollectionTree'))
397 self.fout = ROOT.TFile.Open (ofname,
'recreate')
398 CHECK (self.event.writeTo (self.fout))
◆ add()
| def xAODRootTest.Analysis.add |
( |
|
self, |
|
|
|
alg |
|
) |
| |
◆ finalize()
| def xAODRootTest.Analysis.finalize |
( |
|
self | ) |
|
Definition at line 418 of file xAODRootTest.py.
420 CHECK (self.event.finishWritingTo (self.fout))
◆ run()
| def xAODRootTest.Analysis.run |
( |
|
self, |
|
|
|
n = None |
|
) |
| |
Definition at line 405 of file xAODRootTest.py.
405 def run (self, n=None):
406 nent = self.event.getEntries()
409 for i
in range(nent):
410 self.event.getEntry(i)
411 print (
'---> Event', i)
413 a.execute (self.event)
414 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: