Dear all,
How is possible to read the .dst or .txt input parameter file?
I tried to put the path into the dedicated line but doesn't work.
theDistribution k // If flag=k, Toutatis generate a 4D WB distribution. If flag=f, the complete path to an input dst file must be provided.
Toutatis input particle distribution
-
giovanni rutigliani - Beginner

- Posts: 5
- Joined: Tue 29 Apr 2025 12:56
- Location: italy
- Country:
Italy (it)
-
RomualdDuperrier - Global moderators

- Posts: 85
- Joined: Fri 28 Aug 2020 14:59
- Location: Paris-Saclay
- Country:
France (fr)
Re: Toutatis input particle distribution
Hi
Only a .dst file can be used as input.
Does the code tell you that it does not find the .dst file or another error message is displayed?
In principle, a command line like:
theDistribution f C:\Users\rduperri\Pro\MyProject\toutatis.dst
should work. Also, check that you have proper access rights to the the folder where the .dst file is located.
Last, when a dst file is used, the command line:
input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE
where n is the number of particles, is not ignored by the code. It means that n must lower or equal than the number of particles in dst file. When n is lower, a subset of the particles will be read from the file.
I hope it helps,
Romuald
Only a .dst file can be used as input.
Does the code tell you that it does not find the .dst file or another error message is displayed?
In principle, a command line like:
theDistribution f C:\Users\rduperri\Pro\MyProject\toutatis.dst
should work. Also, check that you have proper access rights to the the folder where the .dst file is located.
Last, when a dst file is used, the command line:
input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE
where n is the number of particles, is not ignored by the code. It means that n must lower or equal than the number of particles in dst file. When n is lower, a subset of the particles will be read from the file.
I hope it helps,
Romuald
-
giovanni rutigliani - Beginner

- Posts: 5
- Joined: Tue 29 Apr 2025 12:56
- Location: italy
- Country:
Italy (it)
Re: Toutatis input particle distribution
Hi,
I put the correct path and correct number of particles "input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE" but it doesn't work. Toutatis closes without error messages after Run button
If you want I can send you the .inp and dst. file
I put the correct path and correct number of particles "input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE" but it doesn't work. Toutatis closes without error messages after Run button
If you want I can send you the .inp and dst. file
-
giovanni rutigliani - Beginner

- Posts: 5
- Joined: Tue 29 Apr 2025 12:56
- Location: italy
- Country:
Italy (it)
Re: Toutatis input particle distribution
Hi,
I have to convert an Input file with this units:
X (cm) Xp (rad) Y (cm) Yp (rad) phi (rad) W (MeV)
which are the correct unit for .dst input file?
giovanni
I have to convert an Input file with this units:
X (cm) Xp (rad) Y (cm) Yp (rad) phi (rad) W (MeV)
which are the correct unit for .dst input file?
giovanni
-
giovanni rutigliani - Beginner

- Posts: 5
- Joined: Tue 29 Apr 2025 12:56
- Location: italy
- Country:
Italy (it)
Re: Toutatis input particle distribution
Hi,
which is the correct units of that line?
input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE
which is the correct units of that line?
input -6 n alphaX betaX EmitX alphaY betaY EmitY dPhi dE
-
giovanni rutigliani - Beginner

- Posts: 5
- Joined: Tue 29 Apr 2025 12:56
- Location: italy
- Country:
Italy (it)
Re: Toutatis input particle distribution
Which is the units of EmitY,X?
-
gwhitlock71 - Novice

- Posts: 3
- Joined: Sun 1 Nov 2026 03:48
- Country:
France (fr)
Re: Toutatis input particle distribution
giovanni rutigliani, fair question, the manual is a bit vague on that one tbh. I reckon its normalised or not in pi.mm.mrad but dont quote me, i'd check the example .inp that ships with the code before trusting it. Got caught out mixing cm and mm on a job once and lost a whole afternoon to it... never again 