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

Public Member Functions

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

Public Attributes

 file
 output file
 
 tree
 ttree
 
 data
 instance of event data class
 

Detailed Description

class to create reco digitis ttree

Definition at line 46 of file SVDValidationTTreeRecoDigit.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 49 of file SVDValidationTTreeRecoDigit.py.

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

Member Function Documentation

◆ event()

def event (   self)
Take digits from SVDRecoDigits with at least one truehit and save needed information

Definition at line 68 of file SVDValidationTTreeRecoDigit.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 119 of file SVDValidationTTreeRecoDigit.py.


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