A question about data output

Hi:
Output data recently when I found a problem, I will I want to detect objects defined as SD, and then in CalorimeterSD: : ProcessHits by step extraction of the particle’s position information and energy deposition.

But when I look at my output file, I find that my output file will count different energy deposits at the same coordinate, such as this data.

-0.264201	-9.58193	0	1
-0.264864	-9.58135	-0.000256851	9.58E-08
-0.264864	-9.58135	-0.000256851	4.12E-05
-0.264849	-9.58136	-0.000254701	0.0036373
-0.264864	-9.58135	-0.000256851	0.0265982
-0.264864	-9.58135	-0.000256851	5.85E-05
-0.302646	-9.58222	0.0522651	0.00047882
-0.302646	-9.58222	0.0522651	0.00321968
-0.264864	-9.58135	-0.000256851	0.000152431
-0.264864	-9.58135	-0.000256851	0.000484371
-0.264864	-9.58135	-0.000256851	0.000368692
-0.264864	-9.58135	-0.000256851	2.26E-05
-0.264864	-9.58135	-0.000256851	2.15E-05
-0.264864	-9.58135	-0.000256851	2.15E-05
-0.264864	-9.58135	-0.000256851	7.44E-05
-0.264864	-9.58135	-0.000256851	2.40E-05
-0.264864	-9.58135	-0.000256851	2.24E-05
-0.264864	-9.58135	-0.000256851	2.24E-05
-0.264864	-9.58135	-0.000256851	2.40E-05
-0.264864	-9.58135	-0.000256851	2.24E-05
-0.264864	-9.58135	-0.000256851	0.000189169
-0.264864	-9.58135	-0.000256851	1.62E-08
-0.264864	-9.58135	-0.000256851	4.21E-13
-0.264864	-9.58135	-0.000256851	0.000153372
-0.264864	-9.58135	-0.000256851	2.96E-05
-0.264864	-9.58135	-0.000256851	0.000484352
-0.264864	-9.58135	-0.000256851	3.11E-05
-0.264864	-9.58135	-0.000256851	1.38E-05
-0.264864	-9.58135	-0.000256851	2.30E-05
-0.264864	-9.58135	-0.000256851	2.24E-05
-0.264864	-9.58135	-0.000256851	3.26E-05
-0.264864	-9.58135	-0.000256851	2.30E-05
-0.264864	-9.58135	-0.000256851	2.15E-05
-0.264864	-9.58135	-0.000256851	0.000156353

I use /run/beamOn 1 to emit a particle. I wonder if this is the right phenomenon

Just to clarify, do you mean you’d expect the coordinates to be different, or that you’re expecting the energy depositions to be the same for each step?

What are the dimensions/shape of the volume the SD is attached to, and what particle is being emitted? Are any user limits on the step length in force?

Thank you for your reply, I am using a 26cm26cm26cm tank that emits I125 particles. I defined this tank as SD. i did not set a step limit. I’m just wondering if the data I’m extracting is reasonable, i.e., would using /run/beamOn 1 result in this situation of different energy deposits at the same location?

What energy, position, and momentum direction does the initial I-125 ion have? A low energy heavy nucleus in a dense medium won’t travel very far, so, depending on the units these numbers have (meters?), they may not actually be the same as the output looks truncated to 6 significant figures?).

Thank you for your answer. Here is my GPS file

/gps/source/add 1
/gps/particle ion
/gps/ion 53 125
/gps/pos/centre 0 0 0 
/gps/pos/type Plane
/gps/pos/shape Annulus
/gps/pos/rot1 1 0 0
#/gps/pos/rot2 0 1 0
/gps/pos/radius 2.0 mm
/gps/pos/inner_radius 1.5 mm
/gps/source/list
/gps/ang/type iso

I’m not defines the initial energy of the I - 125, I define a physical process: RegisterPhysics (new G4RadioactiveDecayPhysics ()). And then through this physical process I-125 will produce overdecay, and I’m collecting the energy deposition in the tank from the particles generated during the decay process. This program is based on the B4c example, I do not know if B4c has defined truncation

Given what I’d guess is an at rest or extremely low energy nucleus, I don’t see any obvious issue with the numbers, though without knowing the exact particles these correspond to I can’t make a hard judgment.

I’d suggest running with more verbose tracking, e.g. in a macro or interactively use the command

/tracking/verbose 1

to log to the terminal detailed information about the step, particle and processes. That’s best for exploratory runs, and you might want to set the number of threads to 1, or see:

to ensure the output is buffered clearly.

Thanks for your reply I will try the method you mentioned.