class to create the true hit ttree
Definition at line 33 of file SVDValidationTTreeTrueHit.py.
◆ __init__()
Initialize the module
Definition at line 36 of file SVDValidationTTreeTrueHit.py.
37 """Initialize the module"""
39 super(SVDValidationTTreeTrueHit, self).__init__()
40 self.file = ROOT.TFile(
'../SVDValidationTTreeTrueHit.root',
'recreate')
41 '''Output ROOT file'''
42 self.tree = ROOT.TTree(
'tree',
'Event data of SVD validation events')
43 '''TTrees for output data'''
44 self.data = EventDataTrueHit()
45 '''Instance of the EventDataTrueHit class'''
48 for key
in EventDataTrueHit.__dict__:
51 if isinstance(self.data.__getattribute__(key), int):
53 self.tree.Branch(key, AddressOf(self.data, key), key + formstring)
◆ event()
◆ terminate()
The documentation for this class was generated from the following file: