analyzing WATCH data on the fly during fitting
Posted: 06 Nov 2020, 08:13
All,
Is there a way, when performing multiple fits sequence and saving lattice in between, to access the output particle distribution for the next fitting step. Namely, I have an incoming beam with strong coupling (so that the Courant-Snyder parameters are not meaninful). I use skew-quadrupole magnets to remove the coupling and then would like to use the resulting final distribution to compute Courant-Snyder parameters to input in my next fitting pass using something like
&twiss_output
matched=0
concat_order = 1, ! for speed
beta_x = "{sddsanalyzebeam outputfrompreviousfit.sdds -pipe=out | sdds2stream -pipe -column=betax}",
beta_y = "{sddsanalyzebeam outputfrompreviousfit.sdds -pipe=out | sdds2stream -pipe -column=betay}",
alpha_x = "{sddsanalyzebeam outputfrompreviousfit.sdds -pipe=out | sdds2stream -pipe -column=alphax}",
alpha_y = "{sddsanalyzebeam outputfrompreviousfit.sdds -pipe=out | sdds2stream -pipe -column=alphay}",
filename="%s.twi"
&end
Of course I can do this piecewise (with several elegant runs) but it would be convenient to do this within one run.
Thank you, -- Philippe.
Is there a way, when performing multiple fits sequence and saving lattice in between, to access the output particle distribution for the next fitting step. Namely, I have an incoming beam with strong coupling (so that the Courant-Snyder parameters are not meaninful). I use skew-quadrupole magnets to remove the coupling and then would like to use the resulting final distribution to compute Courant-Snyder parameters to input in my next fitting pass using something like
&twiss_output
matched=0
concat_order = 1, ! for speed
beta_x = "{sddsanalyzebeam outputfrompreviousfit.sdds -pipe=out | sdds2stream -pipe -column=betax}",
beta_y = "{sddsanalyzebeam outputfrompreviousfit.sdds -pipe=out | sdds2stream -pipe -column=betay}",
alpha_x = "{sddsanalyzebeam outputfrompreviousfit.sdds -pipe=out | sdds2stream -pipe -column=alphax}",
alpha_y = "{sddsanalyzebeam outputfrompreviousfit.sdds -pipe=out | sdds2stream -pipe -column=alphay}",
filename="%s.twi"
&end
Of course I can do this piecewise (with several elegant runs) but it would be convenient to do this within one run.
Thank you, -- Philippe.