Variablethinmultipole WHITENOISE buffer - #1136
Conversation
|
Dear all, who could review this PR ? |
|
@oscarxblanco , isn't this already covered by FuncA, FuncB? -> the user can provide an arbitrary buffer |
|
Hi @swhite2401 ,
|
|
These are 2 different things, this comments was relating to the possible of saving a history of Polynom[A/B], to record was was applied to the beam turn by turn. What I mention here is case 2 in the passmethod, it allow to load any buffer that would then be applied periodically to the beam, which I believe covers what you implemented here |
|
@swhite2401 , ok, this is my mistake. Sorry. |
|
@swhite2401 , I will close this PR. Thank you again, and sorry for the distraction. |
The PR adds the possibility to have a buffer for the WHITENOISE mode of the VariableThinMultipole.
Two new parameters are added:
BufferSizeandBufferOffset. The buffer size sets the lenght of the buffer and allows to store in an array the random value used in every turn, while the buffer offset sets the first turn to be stored in the array.The parameter seed is removed because it had no use in this pass method. Instead, the seed for the random number generator should be set through the tracking functio, and it is mentioned in the help message of the element.