class to create sim hit ttree
Definition at line 41 of file SVDValidationTTreeSimhit.py.
◆ __init__()
Initialize the module
Definition at line 44 of file SVDValidationTTreeSimhit.py.
45 """Initialize the module"""
47 super(SVDValidationTTreeSimhit, self).__init__()
48 self.file = ROOT.TFile(
'../SVDValidationTTreeSimhit.root',
'recreate')
49 '''Output ROOT file'''
50 self.tree = ROOT.TTree(
'tree',
'Event data of SVD validation events')
51 '''TTrees for output data'''
52 self.data = EventDataSimhit()
53 '''Instance of the EventDataSimhit class'''
56 for key
in EventDataSimhit.__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: