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
 file object
 
 height_vs_width
 histogram of pulse height vs. More...
 
 height_vs_sample
 histogram of pulse height vs. More...
 
 width_vs_sample
 histogram of pulse width vs. More...
 
 time
 histogram of time distribution
 
 asic_channels
 histogram of asic channel occupancy
 

Detailed Description

 Makes histograms from TOPDigits 

Definition at line 52 of file checkCalpulse.py.

Member Function Documentation

◆ event()

def event (   self)
 event processing: fill histograms 

Definition at line 74 of file checkCalpulse.py.

74  def event(self):
75  ''' event processing: fill histograms '''
76 
77  for digit in Belle2.PyStoreArray('TOPDigits'):
78  if digit.getHitQuality() == 0:
79  continue
80  if cal_channel is not None and digit.getASICChannel() != cal_channel:
81  continue
82  if time_cut_lo is not None and digit.getTime() < time_cut_lo:
83  continue
84  if time_cut_hi is not None and digit.getTime() > time_cut_hi:
85  continue
86  self.height_vs_width.Fill(digit.getPulseWidth(), digit.getPulseHeight())
87  self.height_vs_sample.Fill(digit.getModulo256Sample(), digit.getPulseHeight())
88  if digit.getPulseHeight() > 100:
89  self.width_vs_sample.Fill(digit.getModulo256Sample(), digit.getPulseWidth())
90  self.time.Fill(digit.getTime())
91  self.asic_channels.Fill(digit.getASICChannel())
92 
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72

◆ initialize()

def initialize (   self)
 initialize: open root file, book histograms 

Definition at line 55 of file checkCalpulse.py.

◆ terminate()

def terminate (   self)
 terminate: write histograms and close the file 

Definition at line 93 of file checkCalpulse.py.

Member Data Documentation

◆ height_vs_sample

height_vs_sample

histogram of pulse height vs.

sample number

Definition at line 64 of file checkCalpulse.py.

◆ height_vs_width

height_vs_width

histogram of pulse height vs.

pulse width

Definition at line 61 of file checkCalpulse.py.

◆ width_vs_sample

width_vs_sample

histogram of pulse width vs.

sample number

Definition at line 67 of file checkCalpulse.py.


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