touschek_scatter output including element name

Moderators: cyao, michael_borland

Post Reply
blanco-garcia
Posts: 68
Joined: 29 Oct 2021, 10:41

touschek_scatter output including element name

Post by blanco-garcia » 09 Mar 2023, 03:32

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

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: touschek_scatter output including element name

Post by michael_borland » 27 Mar 2023, 10:52

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

Post Reply