Belle II Software  release-08-01-10
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

 tfile
 output file
 
 hist
 Width VS amplitude plot in each slot.
 
 histSampling
 Width as function of the sample number in each channel.
 

Detailed Description

 A module to histogram width and amplitude of TOPDigits 

Definition at line 24 of file checkHitHeightAndWidth.py.

Member Function Documentation

◆ event()

def event (   self)
 Event processor: fill histograms 

Definition at line 49 of file checkHitHeightAndWidth.py.

49  def event(self):
50  ''' Event processor: fill histograms '''
51 
52  digits = Belle2.PyStoreArray('TOPDigits')
53  for digit in digits:
54  if digit.getHitQuality() == 0:
55  continue
56  slotID = digit.getModuleID()
57  hwchan = digit.getChannel()
58  self.hist[slotID - 1].Fill(digit.getPulseHeight(), digit.getPulseWidth())
59  self.histSampling[slotID - 1][hwchan].Fill(digit.getModulo256Sample(), digit.getPulseWidth())
60 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

◆ initialize()

def initialize (   self)
 Open output file and book histograms 

Definition at line 28 of file checkHitHeightAndWidth.py.

◆ terminate()

def terminate (   self)
 Write histograms to file 

Definition at line 61 of file checkHitHeightAndWidth.py.


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