|
| file |
| output file
|
|
| tree |
| output ttree
|
|
| data |
| instance of EventDataTrueHit class
|
|
class to create the true hit ttree
Definition at line 41 of file SVDValidationTTreeTrueHit.py.
◆ __init__()
Initialize the module
Definition at line 44 of file SVDValidationTTreeTrueHit.py.
45 """Initialize the module"""
47 super(SVDValidationTTreeTrueHit, self).__init__()
49 self.file = ROOT.TFile(
'../SVDValidationTTreeTrueHit.root',
'recreate')
51 self.tree = ROOT.TTree(
'tree',
'Event data of SVD validation events')
53 self.data = EventDataTrueHit()
56 for key
in EventDataTrueHit.__dict__:
59 if isinstance(self.data.__getattribute__(key), int):
61 self.tree.Branch(key, addressof(self.data, key), key + formstring)
◆ event()
◆ terminate()
The documentation for this class was generated from the following file: