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

Public Member Functions

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

Public Attributes

 file
 output file
 
 tree
 output ttree
 
 data
 instance of EventDataStrip class
 

Detailed Description

class to create the strip ttree

Definition at line 46 of file SVDValidationTTreeStrip.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 49 of file SVDValidationTTreeStrip.py.

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

Member Function Documentation

◆ event()

def event (   self)
Find digit with a cluster and save needed information

Definition at line 68 of file SVDValidationTTreeStrip.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 165 of file SVDValidationTTreeStrip.py.


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