-
Notifications
You must be signed in to change notification settings - Fork 8
Class structure for COMPASS measurements #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
RemDelaporteMathurin
merged 18 commits into
main
from
rem/class-structure-compass-measurements
May 9, 2025
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f30a84c
Initial add
cdunn314 15b2a8f
black
RemDelaporteMathurin 34ed2e0
create the detector objects
RemDelaporteMathurin cc296f4
minor refactor
RemDelaporteMathurin bcbde2a
added histogramme
RemDelaporteMathurin 2b2836a
documentation to get_live_time from root
RemDelaporteMathurin 995d781
working example
RemDelaporteMathurin 6c38398
docstrings
RemDelaporteMathurin 4e2a60d
Merge branch 'main' into rem/class-structure-compass-measurements
RemDelaporteMathurin ec8de0d
removed example file
RemDelaporteMathurin 9c8e5b3
fixed error message
RemDelaporteMathurin 1dee848
added test
RemDelaporteMathurin 7f6fb1e
extended test
RemDelaporteMathurin 723a332
test no root file case
RemDelaporteMathurin 9edff03
test for different bins
RemDelaporteMathurin 899d106
info file can be optional
RemDelaporteMathurin 0923cb9
raise error if not optional
RemDelaporteMathurin 1c969ce
removed double
RemDelaporteMathurin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...data/complete_measurement/data/Data_CH1@V1725_292_Co60_0_872uCi_19Mar2014_250318_run2.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| BOARD;CHANNEL;TIMETAG;ENERGY;ENERGYSHORT;FLAGS | ||
| 0;5;234859459;2;2;0x4000 | ||
| 0;5;421999310;0;1;0x4000 | ||
| 0;5;535148093;1237;810;0x4000 | ||
| 0;5;1623550122;589;396;0x4000 | ||
| 0;5;5997211248;375;251;0x4000 | ||
| 0;5;6685836624;515;340;0x4000 | ||
| 0;5;11116032249;568;380;0x4000 | ||
| 0;5;11281099382;1;0;0x4000 | ||
| 0;5;12783039350;5;0;0x4000 | ||
| 0;5;18306299412;2;0;0x4000 |
4 changes: 4 additions & 0 deletions
4
...ta/complete_measurement/data/Data_CH1@V1725_292_Co60_0_872uCi_19Mar2014_250318_run2_1.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| 0;5;234859459;2;2;0x4000 | ||
| 0;5;421999310;0;1;0x4000 | ||
| 0;5;535148093;1237;810;0x4000 | ||
| 0;5;1623550122;589;396;0x4000 |
Binary file added
BIN
+81.4 KB
...neutron_detection/compass_test_data/complete_measurement/data/Hcompass_Co60_20241107.root
Binary file not shown.
31 changes: 31 additions & 0 deletions
31
test/neutron_detection/compass_test_data/complete_measurement/run.info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| id=Co60_0_872uCi_19Marc2014_250319_run3 | ||
| time.start=2025/03/19 09:47:46.724-0400 | ||
| time.stop=2025/03/19 09:53:05.651-0400 | ||
| time.real=00:05:18 | ||
| board.0-14-292.readout.rate=51.149 kb/s | ||
| board.0-14-292.4.rejections.singles=0.0 | ||
| board.0-14-292.4.rejections.pileup=0.0 | ||
| board.0-14-292.4.rejections.saturation=1301.87 | ||
| board.0-14-292.4.rejections.energy=0.0 | ||
| board.0-14-292.4.rejections.psd=0.0 | ||
| board.0-14-292.4.rejections.timedistribution=0.0 | ||
| board.0-14-292.4.throughput=2627.31 | ||
| board.0-14-292.4.icr=3059.24 | ||
| board.0-14-292.4.ocr=1293.91 | ||
| board.0-14-292.4.calibration.energy.c0=0.0 | ||
| board.0-14-292.4.calibration.energy.c1=1.0 | ||
| board.0-14-292.4.calibration.energy.c2=0.0 | ||
| board.0-14-292.4.calibration.energy.uom=keV | ||
| board.0-14-292.5.rejections.singles=0.0 | ||
| board.0-14-292.5.rejections.pileup=0.0 | ||
| board.0-14-292.5.rejections.saturation=717.247 | ||
| board.0-14-292.5.rejections.energy=0.0 | ||
| board.0-14-292.5.rejections.psd=0.0 | ||
| board.0-14-292.5.rejections.timedistribution=0.0 | ||
| board.0-14-292.5.throughput=1694.65 | ||
| board.0-14-292.5.icr=1703.71 | ||
| board.0-14-292.5.ocr=984.476 | ||
| board.0-14-292.5.calibration.energy.c0=0.0 | ||
| board.0-14-292.5.calibration.energy.c1=1.0 | ||
| board.0-14-292.5.calibration.energy.c2=0.0 | ||
| board.0-14-292.5.calibration.energy.uom=keV |
11 changes: 11 additions & 0 deletions
11
...plete_measurement_no_root/data/Data_CH1@V1725_292_Co60_0_872uCi_19Mar2014_250318_run2.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| BOARD;CHANNEL;TIMETAG;ENERGY;ENERGYSHORT;FLAGS | ||
| 0;5;234859459;2;2;0x4000 | ||
| 0;5;421999310;0;1;0x4000 | ||
| 0;5;535148093;1237;810;0x4000 | ||
| 0;5;1623550122;589;396;0x4000 | ||
| 0;5;5997211248;375;251;0x4000 | ||
| 0;5;6685836624;515;340;0x4000 | ||
| 0;5;11116032249;568;380;0x4000 | ||
| 0;5;11281099382;1;0;0x4000 | ||
| 0;5;12783039350;5;0;0x4000 | ||
| 0;5;18306299412;2;0;0x4000 |
4 changes: 4 additions & 0 deletions
4
...ete_measurement_no_root/data/Data_CH1@V1725_292_Co60_0_872uCi_19Mar2014_250318_run2_1.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| 0;5;234859459;2;2;0x4000 | ||
| 0;5;421999310;0;1;0x4000 | ||
| 0;5;535148093;1237;810;0x4000 | ||
| 0;5;1623550122;589;396;0x4000 |
31 changes: 31 additions & 0 deletions
31
test/neutron_detection/compass_test_data/complete_measurement_no_root/run.info
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| id=Co60_0_872uCi_19Marc2014_250319_run3 | ||
| time.start=2025/03/19 09:47:46.724-0400 | ||
| time.stop=2025/03/19 09:53:05.651-0400 | ||
| time.real=00:05:18 | ||
| board.0-14-292.readout.rate=51.149 kb/s | ||
| board.0-14-292.4.rejections.singles=0.0 | ||
| board.0-14-292.4.rejections.pileup=0.0 | ||
| board.0-14-292.4.rejections.saturation=1301.87 | ||
| board.0-14-292.4.rejections.energy=0.0 | ||
| board.0-14-292.4.rejections.psd=0.0 | ||
| board.0-14-292.4.rejections.timedistribution=0.0 | ||
| board.0-14-292.4.throughput=2627.31 | ||
| board.0-14-292.4.icr=3059.24 | ||
| board.0-14-292.4.ocr=1293.91 | ||
| board.0-14-292.4.calibration.energy.c0=0.0 | ||
| board.0-14-292.4.calibration.energy.c1=1.0 | ||
| board.0-14-292.4.calibration.energy.c2=0.0 | ||
| board.0-14-292.4.calibration.energy.uom=keV | ||
| board.0-14-292.5.rejections.singles=0.0 | ||
| board.0-14-292.5.rejections.pileup=0.0 | ||
| board.0-14-292.5.rejections.saturation=717.247 | ||
| board.0-14-292.5.rejections.energy=0.0 | ||
| board.0-14-292.5.rejections.psd=0.0 | ||
| board.0-14-292.5.rejections.timedistribution=0.0 | ||
| board.0-14-292.5.throughput=1694.65 | ||
| board.0-14-292.5.icr=1703.71 | ||
| board.0-14-292.5.ocr=984.476 | ||
| board.0-14-292.5.calibration.energy.c0=0.0 | ||
| board.0-14-292.5.calibration.energy.c1=1.0 | ||
| board.0-14-292.5.calibration.energy.c2=0.0 | ||
| board.0-14-292.5.calibration.energy.uom=keV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.