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

Public Member Functions

def setOutputName (self, outputname)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 outname
 output name
 

Static Public Attributes

list hist
 Width VS amplitude plot in each slot. More...
 
list histSampling
 Width as function of the sample number in each channel. More...
 
string outname = 'calpulseCheck.root'
 Default output name.
 

Detailed Description

A module to histogram width and amplitude of calibration pulses

Definition at line 20 of file checkHitHeightAndWidth.py.

Member Function Documentation

◆ event()

def event (   self)
Event processor: fill histograms 

Definition at line 46 of file checkHitHeightAndWidth.py.

46  def event(self):
47  ''' Event processor: fill histograms '''
48 
49  digits = Belle2.PyStoreArray('TOPDigits')
50  for digit in digits:
51  quality = digit.getHitQuality()
52  slotID = digit.getModuleID()
53  hwchan = digit.getChannel()
54  self.hist[slotID - 1].Fill(digit.getPulseHeight(), digit.getPulseWidth())
55  self.histSampling[hwchan][slotID - 1].Fill(digit.getModulo256Sample(), digit.getPulseWidth())
56 

◆ setOutputName()

def setOutputName (   self,
  outputname 
)
Sets the output file name 

Definition at line 40 of file checkHitHeightAndWidth.py.

◆ terminate()

def terminate (   self)
Write histograms to file 

Definition at line 57 of file checkHitHeightAndWidth.py.

Member Data Documentation

◆ hist

list hist
static
Initial value:
= [TH2F('WidthVSAmplitude_Slot_' + str(k + 1), 'With VS amplidute of the Digits in slot ' + str(k + 1),
2000, 0., 2000, 80, 0., 20) for k in range(16)]

Width VS amplitude plot in each slot.

Definition at line 25 of file checkHitHeightAndWidth.py.

◆ histSampling

list histSampling
static
Initial value:
= [[TH2F('WidthVSample_Slot_' + str(k + 1) + '_Channel_' + str(j),
'With VS amplidute of the Digits in slot ' + str(k + 1) + ' channel ' + str(j),
256,
0.,
256,
100,
0.,
20) for k in range(16)] for j in range(512)]

Width as function of the sample number in each channel.

Definition at line 29 of file checkHitHeightAndWidth.py.


The documentation for this class was generated from the following file:
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146
Belle2::PyStoreArray
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:58