Belle II Software  release-05-02-19
SVDValidationTTreeStrip Class Reference
Inheritance diagram for SVDValidationTTreeStrip:
Collaboration diagram for SVDValidationTTreeStrip:

Public Member Functions

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

Public Attributes

 file
 
 tree
 
 data
 

Detailed Description

class to create the strip ttree

Definition at line 42 of file SVDValidationTTreeStrip.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 45 of file SVDValidationTTreeStrip.py.

45  def __init__(self):
46  """Initialize the module"""
47 
48  super(SVDValidationTTreeStrip, self).__init__()
49  self.file = ROOT.TFile('../SVDValidationTTreeStrip.root', 'recreate')
50  '''Output ROOT file'''
51  self.tree = ROOT.TTree('tree', 'Event data of SVD validation events')
52  '''TTrees for output data'''
53  self.data = EventDataStrip()
54  '''Instance of the EventDataStrip class'''
55 
56  # Declare tree branches
57  for key in EventDataStrip.__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)
Find digit with a cluster and save needed information

Definition at line 64 of file SVDValidationTTreeStrip.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 161 of file SVDValidationTTreeStrip.py.


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