Page 1 of 1
"select particles" function improvement
Posted: Wed 30 Nov 2022 10:32
by shliu
Hi Didier,
For beam distribution, right-clicking for "select particles" is a powerful function. I think some improvement could be added if possible.
1. Rescale the coordinate range to a required region, e.g. from 10 to 100, and "select particles", the selected region is a little larger than what we defined (about from 9.5 to 100+, zoom in to check the distribution edge). Maybe it could be fixed?
2. Invert selection?
3. Only rectangular area could be selected. Is it possible to add other shapes? Like circle, triangle or ellipse?
Kinds,
shliu
Re: "select particles" function improvement
Posted: Thu 1 Dec 2022 17:30
by Didier
Dear shliu,
1: You're rigth, it's fixed
2: Invert selection option has been added
3: Clearly not possible
Regards,
Didier
Re: "select particles" function improvement
Posted: Thu 8 Dec 2022 03:37
by shliu
Didier,
Thank you!
About the ellipse selection, how about cutting it according to the edge defined in "Charts - Output - Options - Emittance ellipses"?
- Ellipse.png (108.85 KiB) Viewed 3362 times
Kinds,
shliu
Re: "select particles" function improvement
Posted: Thu 8 Dec 2022 16:07
by Didier
Hi,
Yes, very good idea and much easier to implement.
Added in the last release.
Regards,
Didier
Re: "select particles" function improvement
Posted: Mon 12 Dec 2022 10:03
by shliu
Thank you!
Maybe the command "Select particles outside ellipse" is also necessary?
For example, how to select particles inside ellipse both in xx' and yy' planes?
Kinds,
shliu
Re: "select particles" function improvement
Posted: Mon 12 Dec 2022 12:42
by Didier
Dear Shliu,
I don't think so, because thank to you, now you can inverse selection
Regards,
Didier
Re: "select particles" function improvement
Posted: Mon 12 Dec 2022 14:24
by shliu
The initial distribution:
- init.png (35.77 KiB) Viewed 3332 times
Select particles in xx' plane:
- xxp_checked.png (34.19 KiB) Viewed 3332 times
Then select particles in yyp' plane:
- xxp_yyp_checked.png (28.01 KiB) Viewed 3332 times
The selected particles are in xx' ellipse OR yy' ellipse. How to select particles in xx' ellipse AND yy' ellipse at the same time?
Re: "select particles" function improvement
Posted: Mon 12 Dec 2022 16:19
by Didier
Dear Shliu,
First select particles in the XX' chart, then in the TYY' chart to have both in the same time!
Regards,
Didier
Re: "select particles" function improvement
Posted: Mon 12 Dec 2022 17:42
by shliu
That is the way I did in the last post. Could you please check it?
If I choose it in xx' and yy', some particles outside of the ellipse in xx' but inside the ellipse in yy' would be chosen, which is not my purpose.
Re: "select particles" function improvement
Posted: Tue 13 Dec 2022 09:43
by Didier
Dear Shlui,
Sorry, I didn't see the "AND".
Ok, it's done in the last release
Regards,
Didier