class to create spacepoint ttree
Definition at line 40 of file SVDValidationTTreeSpacePoint.py.
◆ __init__()
Initialize the module
Definition at line 43 of file SVDValidationTTreeSpacePoint.py.
44 """Initialize the module"""
46 super(SVDValidationTTreeSpacePoint, self).__init__()
47 self.file = ROOT.TFile(
'../SVDValidationTTreeSpacePoint.root',
'recreate')
48 '''Output ROOT file'''
49 self.tree = ROOT.TTree(
'tree',
'Event data of SVD validation events')
50 '''TTrees for output data'''
51 self.data = EventDataSpacePoint()
52 '''Instance of the EventDataSpacePoint class'''
55 for key
in EventDataSpacePoint.__dict__:
58 if isinstance(self.data.__getattribute__(key), int):
60 self.tree.Branch(key, AddressOf(self.data, key), key + formstring)
◆ event()
◆ terminate()
The documentation for this class was generated from the following file: