class to produced the validation ttree
Definition at line 58 of file SVDValidationTTree.py.
◆ __init__()
Initialize the module
Definition at line 61 of file SVDValidationTTree.py.
62 """Initialize the module"""
64 super(SVDValidationTTree, self).__init__()
66 self.file = ROOT.TFile(
'../SVDValidationTTree.root',
'recreate')
67 '''Output ROOT file'''
68 self.tree = ROOT.TTree(
'tree',
'Event data of SVD validation events')
69 '''TTrees for output data'''
70 self.data = EventData()
71 '''Instance of the EventData class'''
74 for key
in EventData.__dict__:
77 if isinstance(self.data.__getattribute__(key), int):
79 self.tree.Branch(key, AddressOf(self.data, key), key + formstring)
◆ beginRun()
◆ event()
◆ terminate()
The documentation for this class was generated from the following file: