Belle II Software  release-06-00-14
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 validation

Definition at line 70 of file SVDValidationTTreeCluster.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 73 of file SVDValidationTTreeCluster.py.

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

Member Function Documentation

◆ event()

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

Definition at line 93 of file SVDValidationTTreeCluster.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 246 of file SVDValidationTTreeCluster.py.


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