Skip to content
Snippets Groups Projects
Commit b7966aeb authored by ming's avatar ming
Browse files

fix typo

parent 3369d9b0
Branches main
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ python example.py
## Project Structure
- `example.py`: Main file. Execute this to process the data.
- `config.py`: Initialize gloable variables, including mapping (input) and spectra (output).
- `utilities.py`: Custom data tyeps. For mapping, calibration coefficient of each SiPM channel is required as an input.
- `setupParser.py`: Set up the binaray file parser.
- `coincidenceSelection.py`: Responsible for data processing, including energy calibration and coincidence selection.
- `plotSpectra.py`: Plot the final results.
\ No newline at end of file
- `sources\utilities.py`: Custom data types. Apply new calibration coefficients here.
- `sources\setupParser.py`: Set up the binaray file parser.
- `sources\selectCoincidence.py`: Responsible for data processing, including energy calibration and coincidence selection.
- `sources\plotSpectra.py`: Plot the final results.
\ No newline at end of file
......@@ -10,17 +10,20 @@ from sources.utilities import Histogram, ImagerSetup
# Imager setup
global imagerSetup
# Single SiPM Channel spectra
# Single SiPM spectra, calibrated
global singleSiPMSpectra
# Calibrated SiPM Pair spectra
# Spectra of energy deposited in a single crystal (sum of light detected by two SiPMs)
global SiPMPairSpectra
# Coincidence energy spectra
# Spectra of total energy deposited in two crystals
global coincidenceSpectra
# list of coincidences
# list of coincidence events, needed for image reconstruction later
global coincidences
imagerSetup = ImagerSetup()
# use default settings
imagerSetup = ImagerSetup()
# # or load previous settings from file
# imagerSetup = ImagerSetup("tests/testSettings.json")
singleSiPMSpectra = [Histogram(0, 500, 200) for i in range(imagerSetup.NSiPMs)]
SiPMPairSpectra = [Histogram(0, 1000, 200) for i in range(imagerSetup.NCrystals)]
coincidenceSpectra = Histogram(0, 1000, 200)
coincidences = []
\ No newline at end of file
coincidences = []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment