Belle II Software  release-06-02-00
Histogrammer Class Reference
Inheritance diagram for Histogrammer:
Collaboration diagram for Histogrammer:

Public Member Functions

def initialize (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 hist
 list of histograms
 

Detailed Description

Make validation histograms for BG overlay.

Definition at line 30 of file validateOverlay.py.

Member Function Documentation

◆ event()

def event (   self)
 Event processor: fill histograms 

Definition at line 64 of file validateOverlay.py.

64  def event(self):
65  ''' Event processor: fill histograms '''
66 
67  for h in self.hist:
68  digits = Belle2.PyStoreArray(h.GetName())
69  if h.GetName() == 'ECLDigits':
70  n = 0
71  for digit in digits:
72  if digit.getAmp() > 500: # roughly 25 MeV
73  n += 1
74  h.Fill(n)
75  else:
76  h.Fill(digits.getEntries())
77 
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:56

◆ initialize()

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

Definition at line 36 of file validateOverlay.py.

◆ terminate()

def terminate (   self)
 Write histograms to file.

Definition at line 78 of file validateOverlay.py.


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