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

Public Member Functions

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

Public Attributes

 file
 output file
 
 tree
 output ttree
 
 data
 instance of EventDataTrueHit class
 

Detailed Description

class to create the true hit ttree

Definition at line 42 of file SVDValidationTTreeTrueHit.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 45 of file SVDValidationTTreeTrueHit.py.

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

Member Function Documentation

◆ event()

def event (   self)
 Start with truehits and use the relation to get the corresponding clusters 

Definition at line 64 of file SVDValidationTTreeTrueHit.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 121 of file SVDValidationTTreeTrueHit.py.


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