A module to histogram pixel hits from individual fibers
Definition at line 30 of file laserPixelIlumination.py.
◆ event()
Event processor: fill histograms
Definition at line 45 of file laserPixelIlumination.py.
46 ''' Event processor: fill histograms '''
50 simhits = digit.getRelationsWith(
'TOPSimHits')
51 for simhit
in simhits:
52 photon = simhit.getRelated(
'TOPSimPhotons')
54 k = int((photon.getEmissionPoint().X() + 22.5) / 5.5)
56 self.hist[k].Fill(digit.getPixelCol(), digit.getPixelRow())
58 b2.B2ERROR(
'wrong decoding of fiber number: ' + str(k + 1))
59 if digit.getPixelID() == self.pixelID:
60 t = photon.getDetectionTime() - photon.getEmissionTime()
61 self.propTime.Fill(k + 1, t)
A (simplified) python wrapper for StoreArray.
◆ terminate()
◆ hist
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 35 of file laserPixelIlumination.py.
◆ propTime
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 40 of file laserPixelIlumination.py.
The documentation for this class was generated from the following file: