Belle II Software  release-06-00-14
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 27 of file checkHitHeightAndWidth.py.

Member Function Documentation

◆ event()

def event (   self)
 Event processor: fill histograms 

Definition at line 53 of file checkHitHeightAndWidth.py.

53  def event(self):
54  ''' Event processor: fill histograms '''
55 
56  digits = Belle2.PyStoreArray('TOPDigits')
57  for digit in digits:
58  # quality = digit.getHitQuality()
59  slotID = digit.getModuleID()
60  hwchan = digit.getChannel()
61  self.hist[slotID - 1].Fill(digit.getPulseHeight(), digit.getPulseWidth())
62  self.histSampling[hwchan][slotID - 1].Fill(digit.getModulo256Sample(), digit.getPulseWidth())
63 
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:56

◆ setOutputName()

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

Definition at line 47 of file checkHitHeightAndWidth.py.

◆ terminate()

def terminate (   self)
 Write histograms to file 

Definition at line 64 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 32 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 36 of file checkHitHeightAndWidth.py.


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