Belle II Software  release-08-01-10
SVDValidationTTreeRecoTrack Class Reference
Inheritance diagram for SVDValidationTTreeRecoTrack:
Collaboration diagram for SVDValidationTTreeRecoTrack:

Public Member Functions

def __init__ (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 file
 output root file
 
 tree
 output ttree
 
 data
 instance of EventData class
 

Detailed Description

class to create the reco track ttree

Definition at line 50 of file SVDValidationTTreeRecoTrack.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 53 of file SVDValidationTTreeRecoTrack.py.

53  def __init__(self):
54  """Initialize the module"""
55 
56  super(SVDValidationTTreeRecoTrack, self).__init__()
57 
58  self.file = ROOT.TFile('../SVDValidationTTreeRecoTrack.root', 'recreate')
59 
60  self.tree = ROOT.TTree('tree', 'Event data of SVD validation events')
61 
62  self.data = EventDataRecoTrack()
63 
64  # Declare tree branches
65  for key in EventDataRecoTrack.__dict__:
66  if '__' not in key:
67  formstring = '/F'
68  if isinstance(self.data.__getattribute__(key), int):
69  formstring = '/I'
70  self.tree.Branch(key, addressof(self.data, key), key + formstring)
71 

Member Function Documentation

◆ event()

def event (   self)
Take clusters from SVDRecoTracks with at least one truehit and save needed information

Definition at line 72 of file SVDValidationTTreeRecoTrack.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 184 of file SVDValidationTTreeRecoTrack.py.


The documentation for this class was generated from the following file: