Skip to content

Commit 1315c39

Browse files
Merge pull request #76 from ETSInitiative/DetectorIdType
introduce DetectorId type
2 parents eb60569 + d43a6c6 commit 1315c39

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

model/CoincidenceEvent.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# All information about a coincidence event specified as identifiers or indices (i.e. discretized). Indices start from 0.
1+
# All information about a coincidence event specified as identifiers (i.e. discretized).
22
# TODO: this might take up too much space, so some/all of these could be combined in a single index if necessary.
33
CoincidenceEvent: !record
44
fields:
5-
# the pair of detector elements
6-
detectorIds: uint*2
5+
# identifiers of the two detecting elements (see doc for DetectorId)
6+
detectorIds: DetectorId*2
77
# an index into the tofBinEdges field in the ScannerInformation
88
tofIdx: uint
99
# a pair of indices into the energyBinEdges field in the ScannerInformation

model/DetectorInformation.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,15 @@ ScannerGeometry: !record
4040
ids: uint*
4141
# shielding etc
4242
nonDetectingVolumes: GenericSolidVolume*?
43+
44+
# This is the type for detector IDs using in `CoincidenceEvent` and `TripleEvent`.
45+
# It is an unsigned integer that runs over all the "elementary detector elements" (aka crystals),
46+
# starting from 0.
47+
# The correspondence between this integer and a module/det_el is not decided (TODO),
48+
# but the current proposal is to effectively increment the detectorID in nested loops:
49+
# 1. ScannerGeometry.replicated_modules
50+
# 2. replicated_module.transforms
51+
# 3. replicated_module.detecting_elements
52+
# 4. detecting_element.transforms
53+
# (with therefore the detector IDs running faster over the 4th loop)
54+
DetectorId: uint

model/TripleEvent.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
# All information about a triple event specified as identifiers or indices (i.e. discretized).
1+
# All information about a triple event specified as identifiers (i.e. discretized).
22
TripleEvent: !record
33
fields:
4-
detectorIds: uint*3
4+
# Identifiers of the three detecting elements (see doc for DetectorId)
5+
# Note that it is possible that 2 detectorIDs are equal (e.g. for
6+
# inter-crystal Compton events)
7+
detectorIds: DetectorId*3
58
# timing differences (converted to mm) w.r.t. first event, stored as
69
# indices into the tofBinEdges field in the ScannerInformation
710
# Note: only 2, corresponding to the arrival time differences of the second and third detectorId

0 commit comments

Comments
 (0)