Instruments to make photocounting statistics from histograms and raw oscillograms
Project description
OscSiPM
Instruments to make photocounting statistics from histograms and raw oscillograms (made by LeCroy oscilloscope or old Tektronix oscilloscope) of SiPM signal. One can correct the baseline of the oscillogram and compensate a crosstalk noise of photocounting statistics.
Installation
OscSiPM is available at pip. It may be installed with
pip install oscsipm
How to use?
Import necessary modules:
from oscsipm import PulsesHistMaker, QStatisticsMaker, optimize_pcrosstalk, compensate
Import an experimental data
datadir = "C:\\expdata\\"
parser = PulsesHistMaker(datadir, vendor='tek', parallel=True, parallel_jobs=2)
parser.read()
Make a histogram
histfile = "C:\\histograms\\test.txt"
parser.multi_pulse_histogram(frequency=1e6, time_window=10e-9)
parser.save_hist(histfile)
Make a photocounting statistics
histfile = "C:\\histograms\\test.txt"
qmaker = QStatisticsMaker(histfile, discrete=0.021, method='fit')
Q = qmaker.getq()
Determine a crosstalk probability (if an optical signal is coherent) and compensate it
PDE = 0.4
pcrosstalk, res = optimize_pcrosstalk(Q, PDE, N=50)
Q1 = compensate(Q, pcrosstalk)
Requirements
See requirements.txt
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oscsipm-0.1.1.tar.gz
(13.0 kB
view hashes)
Built Distribution
oscsipm-0.1.1-py3-none-any.whl
(15.4 kB
view hashes)