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

Public Member Functions

def event (self)
 
def terminate (self)
 

Static Public Attributes

list hist
 2D histograms More...
 
int pixelID = 482
 pixel ID
 
 propTime
 histogram More...
 

Detailed Description

A module to histogram pixel hits from individual fibers

Definition at line 21 of file laserPixelIlumination.py.

Member Function Documentation

◆ event()

def event (   self)
Event processor: fill histograms 

Definition at line 36 of file laserPixelIlumination.py.

36  def event(self):
37  ''' Event processor: fill histograms '''
38 
39  digits = Belle2.PyStoreArray('TOPDigits')
40  for digit in digits:
41  simhits = digit.getRelationsWith('TOPSimHits') # several simhits can contribute
42  for simhit in simhits:
43  photon = simhit.getRelated('TOPSimPhotons') # one or none possible
44  if photon:
45  k = int((photon.getEmissionPoint().X() + 22.5) / 5.5)
46  if k >= 0 and k < 9:
47  self.hist[k].Fill(digit.getPixelCol(), digit.getPixelRow())
48  else:
49  B2ERROR('wrong decoding of fiber number: ' + str(k + 1))
50  if digit.getPixelID() == self.pixelID:
51  t = photon.getDetectionTime() - photon.getEmissionTime()
52  self.propTime.Fill(k + 1, t)
53 

◆ terminate()

def terminate (   self)
Write histograms to file 

Definition at line 54 of file laserPixelIlumination.py.

Member Data Documentation

◆ hist

list hist
static
Initial value:
= [TH2F('fiber' + str(k + 1), 'Pixel hit distribution from fiber No.' + str(k + 1),
64, 0.5, 64.5, 8, 0.5, 8.5) for k in range(9)]

2D histograms

Definition at line 26 of file laserPixelIlumination.py.

◆ propTime

propTime
static
Initial value:
= TH2F('propTime', 'Photon propagation times for pixel ' + str(pixelID) +
' vs. fiber number', 9, 0.5, 9.5, 200, 0.0, 1.0)

histogram

Definition at line 31 of file laserPixelIlumination.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