Belle II Software  release-06-01-15
SVDValidationTTree Class Reference
Inheritance diagram for SVDValidationTTree:
Collaboration diagram for SVDValidationTTree:

Public Member Functions

def __init__ (self)
 
def beginRun (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 produced the validation ttree 

Definition at line 64 of file SVDValidationTTree.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 67 of file SVDValidationTTree.py.

67  def __init__(self):
68  """Initialize the module"""
69 
70  super(SVDValidationTTree, self).__init__()
71 
72 
73  self.file = ROOT.TFile('../SVDValidationTTree.root', 'recreate')
74 
75  self.tree = ROOT.TTree('tree', 'Event data of SVD validation events')
76 
77  self.data = EventData()
78 
79  # Declare tree branches
80  for key in EventData.__dict__:
81  if '__' not in key:
82  formstring = '/F'
83  if isinstance(self.data.__getattribute__(key), int):
84  formstring = '/I'
85  self.tree.Branch(key, addressof(self.data, key), key + formstring)
86 

Member Function Documentation

◆ beginRun()

def beginRun (   self)
 Does nothing 

Definition at line 87 of file SVDValidationTTree.py.

◆ event()

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

Definition at line 90 of file SVDValidationTTree.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 193 of file SVDValidationTTree.py.


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