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

Public Member Functions

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

Public Attributes

 file
 Output ROOT file.
 
 tree
 TTree for output data.
 
 data
 instance of EventData class
 

Detailed Description

class to produce the ttree for cluster reconstruction validation

Definition at line 72 of file SVDValidationTTreeCluster.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 75 of file SVDValidationTTreeCluster.py.

75  def __init__(self):
76  """Initialize the module"""
77 
78  super(SVDValidationTTreeCluster, self).__init__()
79 
80 
81  self.file = ROOT.TFile('../SVDValidationTTreeCluster.root', 'recreate')
82 
83  self.tree = ROOT.TTree('tree', 'Event data of SVD validation events')
84 
85  self.data = EventDataCluster()
86 
87  # Declare tree branches
88  for key in EventDataCluster.__dict__:
89  if '__' not in key:
90  formstring = '/F'
91  if isinstance(self.data.__getattribute__(key), int):
92  formstring = '/I'
93  self.tree.Branch(key, addressof(self.data, key), key + formstring)
94 

Member Function Documentation

◆ event()

def event (   self)
 Find clusters with a truehit and save needed information 

Definition at line 95 of file SVDValidationTTreeCluster.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 255 of file SVDValidationTTreeCluster.py.


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