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

Public Member Functions

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

Public Attributes

 file
 output file
 
 tree
 output ttree
 
 data
 instance of EventDataSpacePoint class
 

Detailed Description

class to create spacepoint ttree

Definition at line 44 of file SVDValidationTTreeSpacePoint.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 47 of file SVDValidationTTreeSpacePoint.py.

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

Member Function Documentation

◆ event()

def event (   self)
Find SVD SpacePoints in the event

Definition at line 66 of file SVDValidationTTreeSpacePoint.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 104 of file SVDValidationTTreeSpacePoint.py.


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