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

Detailed Description

class to create the true hit ttree

Definition at line 33 of file SVDValidationTTreeTrueHit.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 36 of file SVDValidationTTreeTrueHit.py.

36  def __init__(self):
37  """Initialize the module"""
38 
39  super(SVDValidationTTreeTrueHit, self).__init__()
40  self.file = ROOT.TFile('../SVDValidationTTreeTrueHit.root', 'recreate')
41  '''Output ROOT file'''
42  self.tree = ROOT.TTree('tree', 'Event data of SVD validation events')
43  '''TTrees for output data'''
44  self.data = EventDataTrueHit()
45  '''Instance of the EventDataTrueHit class'''
46 
47  # Declare tree branches
48  for key in EventDataTrueHit.__dict__:
49  if '__' not in key:
50  formstring = '/F'
51  if isinstance(self.data.__getattribute__(key), int):
52  formstring = '/I'
53  self.tree.Branch(key, AddressOf(self.data, key), key + formstring)
54 

Member Function Documentation

◆ event()

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

Definition at line 55 of file SVDValidationTTreeTrueHit.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 109 of file SVDValidationTTreeTrueHit.py.


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