Belle II Software  release-05-02-19
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
 
 tree
 
 data
 

Detailed Description

class to produce the ttree for cluster validation

Definition at line 58 of file SVDValidationTTreeCluster.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 61 of file SVDValidationTTreeCluster.py.

61  def __init__(self):
62  """Initialize the module"""
63 
64  super(SVDValidationTTreeCluster, self).__init__()
65  self.file = ROOT.TFile('../SVDValidationTTreeCluster.root', 'recreate')
66  '''Output ROOT file'''
67  self.tree = ROOT.TTree('tree', 'Event data of SVD validation events')
68  '''TTrees for output data'''
69  self.data = EventDataCluster()
70  '''Instance of the EventData class'''
71 
72  # Declare tree branches
73  for key in EventDataCluster.__dict__:
74  if '__' not in key:
75  formstring = '/F'
76  if isinstance(self.data.__getattribute__(key), int):
77  formstring = '/I'
78  self.tree.Branch(key, AddressOf(self.data, key), key + formstring)
79 

Member Function Documentation

◆ event()

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

Definition at line 80 of file SVDValidationTTreeCluster.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 204 of file SVDValidationTTreeCluster.py.


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