Module to study resolution and performance of the top laser calibration.
Definition at line 28 of file studyLaserLight.py.
◆ event()
Event processor: fill histograms
Definition at line 120 of file studyLaserLight.py.
121 ''' Event processor: fill histograms '''
124 nhits = [0
for i
in range(16)]
126 if(
not self.ignoreNotCalibrated
and not digit.isTimeBaseCalibrated()):
128 if (digit.getHitQuality() == 1
and
129 digit.getPulseWidth() > self.m_minWidth
and digit.getPulseWidth() < self.m_maxWidth
and
130 digit.getPulseHeight() > self.m_minAmp
and digit.getPulseHeight() < self.m_maxAmp):
131 slotID = digit.getModuleID()
132 hwchan = digit.getChannel()
133 self.h_LaserTimingVSChannel.Fill(512 * (slotID - 1) + hwchan, digit.getTime())
134 simhits = digit.getRelationsWith(
'TOPSimHits')
135 nhits[slotID - 1] = nhits[slotID - 1] + 1
136 for simhit
in simhits:
137 self.h_LaserTimingVSChannelOneSlot.Fill(hwchan, simhit.getTime())
138 for slotA
in range(16):
139 for slotB
in range(16):
140 self.h_crossOccupancy[slotA][slotB].Fill(nhits[slotA], nhits[slotB])
◆ 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 142 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 54 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 33 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 43 of file studyLaserLight.py.
The documentation for this class was generated from the following file: