Definition at line 308 of file xAODRootTest.py.
◆ __init__()
def xAODRootTest.Analysis.__init__ |
( |
|
self, |
|
|
|
ifname, |
|
|
|
ofname = None |
|
) |
| |
Definition at line 309 of file xAODRootTest.py.
309 def __init__ (self, ifname, ofname = None):
311 self.f = ROOT.TFile (ifname)
312 self.event = ROOT.xAOD.TEvent (ROOT.xAOD.TEvent.kAthenaAccess)
313 CHECK (self.event.readFrom (self.f,
True,
'CollectionTree'))
314 self.tree = ROOT.xAOD.MakeTransientTree(self.event,
'CollectionTree')
317 self.fout = ROOT.TFile.Open (ofname,
'recreate')
318 CHECK (self.event.writeTo (self.fout))
◆ add()
def xAODRootTest.Analysis.add |
( |
|
self, |
|
|
|
alg |
|
) |
| |
◆ finalize()
def xAODRootTest.Analysis.finalize |
( |
|
self | ) |
|
Definition at line 338 of file xAODRootTest.py.
340 CHECK (self.event.finishWritingTo (self.fout))
◆ run()
def xAODRootTest.Analysis.run |
( |
|
self, |
|
|
|
n = None |
|
) |
| |
Definition at line 325 of file xAODRootTest.py.
325 def run (self, n=None):
329 for i
in range(nent):
330 self.tree.GetEntry(i)
331 print (
'---> Event', i)
333 a.execute (self.tree, self.event)
334 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: