Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python parser for DT5550W bin file
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NML
Python parser for DT5550W bin file
Commits
b7966aeb
Commit
b7966aeb
authored
2 years ago
by
ming
Browse files
Options
Downloads
Patches
Plain Diff
fix typo
parent
3369d9b0
Branches
main
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+4
-4
4 additions, 4 deletions
README.md
config.py
+9
-6
9 additions, 6 deletions
config.py
with
13 additions
and
10 deletions
README.md
+
4
−
4
View file @
b7966aeb
...
...
@@ -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
This diff is collapsed.
Click to expand it.
config.py
+
9
−
6
View file @
b7966aeb
...
...
@@ -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 coincidence
s
# 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
=
[]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment