class to create the reco track ttree
Definition at line 40 of file SVDValidationTTreeRecoTrack.py.
◆ __init__()
Initialize the module
Definition at line 43 of file SVDValidationTTreeRecoTrack.py.
44 """Initialize the module"""
46 super(SVDValidationTTreeRecoTrack, self).__init__()
47 self.file = ROOT.TFile(
'../SVDValidationTTreeRecoTrack.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 = EventDataRecoTrack()
52 '''Instance of the EventData class'''
55 for key
in EventDataRecoTrack.__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: