Instruments to make photocounting statistics from histograms and raw oscillograms
Project description
OscSiPM
Instruments to make a 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 in the 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, find_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, amplitude_discrete=0.021, method='manual')
Q = qmaker.Q
Determine a crosstalk probability (if an optical signal is coherent) and compensate it
PDE = 0.4
pcrosstalk, res = find_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oscsipm-0.6.4.tar.gz.
File metadata
- Download URL: oscsipm-0.6.4.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e906aea4fdf905e63100ad5caa97a9d0b114ccbec1bc7c567eb9044b077aa2f
|
|
| MD5 |
394d06d967b822d665170d4ffe532a51
|
|
| BLAKE2b-256 |
51ac3e495694aef5810460915293cc1fc63a5facfa1ef5b124d569a43d480e28
|
File details
Details for the file oscsipm-0.6.4-py3-none-any.whl.
File metadata
- Download URL: oscsipm-0.6.4-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d7a9958603f4f81245a8024c1bb441868d22f53f647dc084d7d8fef1539649
|
|
| MD5 |
0946cc7a5a16722c89d964ae2d0a997e
|
|
| BLAKE2b-256 |
e7bf869106a5c8acfe7707bcbede5c6198a286a8b5e158b201b0c770ca51d7b6
|