|
| file |
| Output ROOT file.
|
|
| tree |
| TTree for output data.
|
|
| data |
| Instance of EventData class.
|
|
A simple module to check the reconstruction of PXDTrueHits.
This module writes its output to a ROOT tree.
Definition at line 46 of file PXDHitErrorsTTree.py.
◆ __init__()
Initialize the module
Definition at line 53 of file PXDHitErrorsTTree.py.
54 """Initialize the module"""
56 super(PXDHitErrorsTTree, self).__init__()
58 self.file = ROOT.TFile(
'PXDHitErrorOutput.root',
'recreate')
60 self.tree = ROOT.TTree(
'tree',
'Event data of PXD simulation')
62 self.data = EventData()
64 for key
in EventData.__dict__:
67 if isinstance(self.data.__getattribute__(key), int):
69 self.tree.Branch(key, AddressOf(self.data, key), key + formstring)
◆ beginRun()
◆ event()
◆ terminate()
The documentation for this class was generated from the following file: