RF_AxisFieldAnalysis#
- class orbit.py_linac.rf_field_readers.RF_AxisFieldAnalysis(splineFiled, zeroIsCenter=False)[source]#
Bases:
objectThis class analyzes the RF electric field on the axis of a whole cavity. The result of analysis are Time Transit Factors T,Tp,S,Sp for all gaps found in the cavity.
Methods Summary
dumpTTFandFitting(file_ttf_and_fitting_out)This method prints out the TTF T,Tp,S,Sp and polynomials fitting for all RF gaps.
dumpTransitTimeTables(file_ttf_out)This method prints out the final parameters of the transit time tables for all RF gaps.
The method will calculate the positions of d(Ez)/dz = 0 as centers of the gaps
Returns the spline normilized by the integral of the absolute value.
getTTPandSSP_Values(beta[, gap_index])Returns a tuple (T,T',S,S') for particular beta value for given gap_index.
makePlynomialFittings(n_order)The method will prepare the polynomial fitting for the T,Tp,S,Sp as functions of cappa for all RF gaps TTFs (T,S,Tp,Sp) are funcftions of the cappa variable = 2*pi*f/(c*beta)
makeTransitTimeTables(beta_min, beta_max, ...)It will calculate transit time factor tables for all RF gaps TTFs (T,S,Tp,Sp) are funcftions of the cappa variable = 2*pi*f/(c*beta)
The method will find the roots of the field distribution, and it will return the root array including the left and right edge points
Methods Documentation
- dumpTTFandFitting(file_ttf_and_fitting_out)[source]#
This method prints out the TTF T,Tp,S,Sp and polynomials fitting for all RF gaps.
- dumpTransitTimeTables(file_ttf_out)[source]#
This method prints out the final parameters of the transit time tables for all RF gaps.
- gapCentersAnalysis()[source]#
The method will calculate the positions of d(Ez)/dz = 0 as centers of the gaps
- getTTPandSSP_Values(beta, gap_index=0)[source]#
Returns a tuple (T,T’,S,S’) for particular beta value for given gap_index. The data for func_T,func_TP,func_S,func_SP should be prepared before by call makeTransitTimeTables(…).
- makePlynomialFittings(n_order)[source]#
The method will prepare the polynomial fitting for the T,Tp,S,Sp as functions of cappa for all RF gaps TTFs (T,S,Tp,Sp) are funcftions of the cappa variable = 2*pi*f/(c*beta)