Module to study resolution and performance of the top laser calibration.
Definition at line 30 of file studyLaserLight.py.
◆ event()
Event processor: fill histograms
Definition at line 122 of file studyLaserLight.py.
123 ''' Event processor: fill histograms '''
126 nhits = [0
for i
in range(16)]
128 if(
not self.ignoreNotCalibrated
and not digit.isTimeBaseCalibrated()):
130 if (digit.getHitQuality() == 1
and
131 digit.getPulseWidth() > self.m_minWidth
and digit.getPulseWidth() < self.m_maxWidth
and
132 digit.getPulseHeight() > self.m_minAmp
and digit.getPulseHeight() < self.m_maxAmp):
133 slotID = digit.getModuleID()
134 hwchan = digit.getChannel()
135 self.h_LaserTimingVSChannel.Fill(512 * (slotID - 1) + hwchan, digit.getTime())
136 simhits = digit.getRelationsWith(
'TOPSimHits')
137 nhits[slotID - 1] = nhits[slotID - 1] + 1
138 for simhit
in simhits:
139 self.h_LaserTimingVSChannelOneSlot.Fill(hwchan, simhit.getTime())
140 for slotA
in range(16):
141 for slotB
in range(16):
142 self.h_crossOccupancy[slotA][slotB].Fill(nhits[slotA], nhits[slotB])
A (simplified) python wrapper for StoreArray.
◆ ignoreNotCalibrated()
def ignoreNotCalibrated |
( |
|
self, |
|
|
|
ignoreNotCal |
|
) |
| |
◆ setMaxAmp()
def setMaxAmp |
( |
|
self, |
|
|
|
maxAmp |
|
) |
| |
◆ setMaxWidth()
def setMaxWidth |
( |
|
self, |
|
|
|
maxWidth |
|
) |
| |
◆ setMCCorrectionsFile()
def setMCCorrectionsFile |
( |
|
self, |
|
|
|
MCfile |
|
) |
| |
◆ setMinAmp()
def setMinAmp |
( |
|
self, |
|
|
|
minAmp |
|
) |
| |
◆ setMinWidth()
def setMinWidth |
( |
|
self, |
|
|
|
minWidth |
|
) |
| |
◆ setOutputName()
def setOutputName |
( |
|
self, |
|
|
|
outputname |
|
) |
| |
◆ terminate()
Write histograms to file, fills and fits the resolution plots
Definition at line 144 of file studyLaserLight.py.
◆ h_crossOccupancy
Initial value:= [[TH2F(
'crossOccupancy_' + str(slotA) + '_' + str(slotB),
' ',
200,
0,
200,
200,
0.,
200) for slotA in range(16)] for slotB in range(16)]
cross occupancy
Definition at line 56 of file studyLaserLight.py.
◆ h_LaserTimingVSChannel
Initial value:= TH2F(
'LaserTimingVSChannel',
'Laser timing in as function of the channel number',
512 * 16,
0,
512 * 16,
10000,
0.,
100)
Width as function of the sample number in each channel.
Definition at line 35 of file studyLaserLight.py.
◆ h_LaserTimingVSChannelOneSlot
h_LaserTimingVSChannelOneSlot |
|
static |
Initial value:= TH2F(
'LaserTimingVSChannelOneSlot',
'Laser timing in as function of the channel number',
512,
0,
512,
10000,
0.,
100)
Laser timing in as function of the channel number.
Definition at line 45 of file studyLaserLight.py.
The documentation for this class was generated from the following file: