Page 1 of 1

touschek_scatter output including element name

Posted: 09 Mar 2023, 03:32
by blanco-garcia
Dear all,

the function touschek_scatter allows to split the output in several files with an index taken from an inner counter.
This works well if all touschek scattering elements have the same name, therefore, the counter and the output index are the same.

However, I wonder if it is possible to use different names for the touschek scattering element, therefore, having a counter per element name and a total counter. For example,
<rootname>_<element-name>_<element-name-counter>_<total-element-counter>.loss

This would allow to quickly classify the touschek scattering outputs by name, which should be easier to analyse lattice sections with similar optics.

Best regards,
o

Re: touschek_scatter output including element name

Posted: 27 Mar 2023, 10:52
by michael_borland
This is a good suggestion, but would be fairly complicated to implement.

As an alternative, I added some parameters to the output file that should help you do what you want. These are ElementName, ElementOccurence, PreviousElementName, PreviousElementOccurence, NextElementName, and NextElementOccurence.

This change will appear in the next release.

--Michael