pysrw.computations.computeSpectrum#
- pysrw.computations.computeSpectrum(particleBeam, magnetsContainer, observer, fromWavelength=None, toWavelength=None, numPoints=None, relPrec=None, srApprox=None)[source]#
- Compute the spectrum of synchrotron radiation emitted by a particle travelling along a magnetic structure. - Parameters:
- particleBeam – particle instance of - ParticleBeam.
- magnetsContainer – container instance of - MagnetsContainer.
- observer – mesh instance of - Observer. Check- WavefrontMultiWavelengthfor further details about the observer definition.
- fromWavelength – lower wavelength in nanometers. 
- toWavelength – upper wavelength in nanometers. 
- numPoints – number of wavelengths to simulate. 
- relPrec (optional) – relative precision target for the convergence of the computation. If None, the default value set in - CONFIGis used. Defaults to None.
- calcMeth (optional) – one of the - configuration.SR_APPROXapproximation methods to use for the computation. If None, the default value set in- CONFIGis used. Defaults to None.
 
- Returns:
- the calculated field spectral distribution. 
- Return type:
 
