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

Detailed Description

class to produced the validation ttree 

Definition at line 58 of file SVDValidationTTree.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 61 of file SVDValidationTTree.py.

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

Member Function Documentation

◆ beginRun()

def beginRun (   self)
Does nothing 

Definition at line 81 of file SVDValidationTTree.py.

◆ event()

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

Definition at line 84 of file SVDValidationTTree.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 187 of file SVDValidationTTree.py.


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