You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@rtesse
Hi, I am sorry to bother you again.
I have a question about setting SigmaP (SigmaE, or SigmaEk, which all work to set energy spread). I can't find some functions for setting SigmaP (Similar to using BDSIM, set initial particles with Gaussian energy distribution), but I only find these parameters about energy spread as shown in the following figure.
Does Georges have a function similar to what I said?
The text was updated successfully, but these errors were encountered:
We do not have specific functions to populate the dpp values in beam distributions. All in all these are simple numpy arrays, so it should be straightforward to use any type of generator (for example random Gaussian in numpy) and to set the 5th coordinate in the array using that vector array.
In the screenshot you showed, you have the parameter dpprms, which is equivalent to the SigmaP in BDSIM. If you know or if the distribution of your momentum is not Gaussian, you can set the distribution as Cedric said.
@rtesse
Hi, I am sorry to bother you again.
I have a question about setting SigmaP (SigmaE, or SigmaEk, which all work to set energy spread). I can't find some functions for setting SigmaP (Similar to using BDSIM, set initial particles with Gaussian energy distribution), but I only find these parameters about energy spread as shown in the following figure.
Does Georges have a function similar to what I said?
The text was updated successfully, but these errors were encountered: