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

Detailed Description

class to create reco digitis ttree

Definition at line 41 of file SVDValidationTTreeRecoDigit.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 44 of file SVDValidationTTreeRecoDigit.py.

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

Member Function Documentation

◆ event()

def event (   self)
Take digits from SVDRecoDigits with a truehit and save needed information

Definition at line 63 of file SVDValidationTTreeRecoDigit.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 99 of file SVDValidationTTreeRecoDigit.py.


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