def __init__(self, bl=None, instrument='origin', d_offset=0, **kwargs):
     """
     inputs:
         bl: instance of the beamline class from xrt
         instrument: LCLS instrument ('TXI','XPP','XCS','MFX','CXI','MEC')
         d_offset: offset distance from the sample position
         **kwargs: kwargs argument to pass to GeometricSource instance
     """
     GeometricSource.__init__(self, bl=bl, name=instrument, **kwargs)
     FWHM, div = self.LCLS_source_properties()
     d = {
         'origin': 0,
         'TXI': 140,
         'XPP': 150,
         'XCS': 400,
         'MFX': 415,
         'CXI': 425,
         'MEC': 440
     }  #[m]
     # Sample position for each instrument
     d = d[instrument] + d_offset
     FWHM = FWHM + div * d  #um
     self.dx = FWHM / 1000 / 2.634  # sigma [mm]
     self.dz = FWHM / 1000 / 2.634  # sigma [mm]
     self.dxprime = div / 1e6  # [rad]
     self.dzprime = div / 1e6  # [rad]
예제 #2
0
 def __init__(self, *args, **kwargs):
     self.enstep = kwargs.pop('enstep', None)
     self.ensig = kwargs.pop('ensig', None)
     self.enmix = kwargs.pop('enmix', 1)
     GeometricSource.__init__(self, *args, **kwargs)
     self.distE = 'lines'