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

Public Member Functions

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

Public Attributes

 file
 
 tree
 
 data
 

Detailed Description

class to create the reco track ttree

Definition at line 40 of file SVDValidationTTreeRecoTrack.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialize the module

Definition at line 43 of file SVDValidationTTreeRecoTrack.py.

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

Member Function Documentation

◆ event()

def event (   self)
Take clusters from SVDRecoTracks with a truehit and save needed information

Definition at line 62 of file SVDValidationTTreeRecoTrack.py.

◆ terminate()

def terminate (   self)
Close the output file. 

Definition at line 172 of file SVDValidationTTreeRecoTrack.py.


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