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

Public Member Functions

def set_descr (self, h, D)
 
def initialize (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 tfile
 root file pointer
 
 recBunchNo
 validation histogram
 
 offset
 validation histogram
 
 numTracks
 validation histogram
 
 usedTracks
 validation histogram
 
 effi_numTracks
 validation histogram
 
 effi_usedTracks
 validation histogram
 
 effi
 validation histogram
 
 nev
 number of events with valid TOPRecBunch object pointer
 

Detailed Description

Makes validation histograms for bunch finder

Definition at line 27 of file 3_bunchFinderPlots.py.

Member Function Documentation

◆ event()

def event (   self)
 Event processor: fill histograms 

Definition at line 101 of file 3_bunchFinderPlots.py.

101  def event(self):
102 
103  ''' Event processor: fill histograms '''
104 
105  recBunch = Belle2.PyStoreObj('TOPRecBunch')
106  if not recBunch.isValid():
107  return
108  self.nev += 1
109  if recBunch.isReconstructed():
110  self.recBunchNo.Fill(recBunch.getBunchNo())
111  self.offset.Fill(recBunch.getCurrentOffset())
112  self.numTracks.Fill(recBunch.getNumTracks())
113  self.usedTracks.Fill(recBunch.getUsedTracks())
114  if recBunch.getBunchNo() == recBunch.getMCBunchNo():
115  self.effi_numTracks.Fill(recBunch.getNumTracks())
116  self.effi_usedTracks.Fill(recBunch.getUsedTracks())
117 
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ initialize()

def initialize (   self)
 Initializes the Module: book histograms and set descriptions and checks

Definition at line 45 of file 3_bunchFinderPlots.py.

◆ set_descr()

def set_descr (   self,
  h,
  D 
)
Sets description, check and contact to validation histogram.
:param h validation histogram
:param D description text

Definition at line 32 of file 3_bunchFinderPlots.py.

◆ terminate()

def terminate (   self)
 Processes and writes histograms to file

Definition at line 118 of file 3_bunchFinderPlots.py.


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