<?xml version="1.0"?>
<Project>
<Beams type="prop">
	<None type="flat"></None>
	<geometricSource01beamGlobal01 type="flat"></geometricSource01beamGlobal01>
	<doubleParaboloidLens01beamGlobal01 type="flat"></doubleParaboloidLens01beamGlobal01>
	<doubleParaboloidLens01beamLocal101 type="flat"></doubleParaboloidLens01beamLocal101>
	<doubleParaboloidLens01beamLocal201 type="flat"></doubleParaboloidLens01beamLocal201>
	<doubleParaboloidLens02beamGlobal01 type="flat"></doubleParaboloidLens02beamGlobal01>
	<doubleParaboloidLens02beamLocal101 type="flat"></doubleParaboloidLens02beamLocal101>
	<doubleParaboloidLens02beamLocal201 type="flat"></doubleParaboloidLens02beamLocal201>
	<doubleParaboloidLens03beamGlobal01 type="flat"></doubleParaboloidLens03beamGlobal01>
	<doubleParaboloidLens03beamLocal101 type="flat"></doubleParaboloidLens03beamLocal101>
	<doubleParaboloidLens03beamLocal201 type="flat"></doubleParaboloidLens03beamLocal201>
	<screen01beamLocal01 type="flat"></screen01beamLocal01>
</Beams>
<Materials type="prop">
	<material01 type="value">
		<properties type="prop">
			<elements type="param">Be</elements>
			<quantities type="param">None</quantities>
			<kind type="param">lens</kind>
			<rho type="param">1.85</rho>
			<t type="param">0</t>
			<table type="param">Chantler total</table>
			<efficiency type="param">None</efficiency>
			<efficiencyFile type="param">None</efficiencyFile>
			<name type="param">None</name>
		</properties>
		<_object type="object">xrt.backends.raycing.materials.Material</_object>
	</material01>
</Materials>
<beamLine type="value">
	<properties type="prop">
		<azimuth type="param">0.0</azimuth>
		<height type="param">0.0</height>
		<alignE type="param">9000.0</alignE>
	</properties>
	<_object type="object">xrt.backends.raycing.BeamLine</_object>
	<geometricSource01 type="value">
		<properties type="prop">
			<bl type="param">beamLine</bl>
			<name type="param">None</name>
			<center type="param">(0, 0, 0)</center>
			<pitch type="param">0</pitch>
			<yaw type="param">0</yaw>
			<nrays type="param">100000</nrays>
			<distx type="param">normal</distx>
			<dx type="param">0.1</dx>
			<disty type="param">None</disty>
			<dy type="param">0</dy>
			<distz type="param">normal</distz>
			<dz type="param">0.1</dz>
			<distxprime type="param">normal</distxprime>
			<dxprime type="param">0.0</dxprime>
			<distzprime type="param">normal</distzprime>
			<dzprime type="param">0.</dzprime>
			<distE type="param">lines</distE>
			<energies type="param">(9000.0,)</energies>
			<polarization type="param">horizontal</polarization>
			<filamentBeam type="param">False</filamentBeam>
			<uniformRayDensity type="param">False</uniformRayDensity>
		</properties>
		<_object type="object">xrt.backends.raycing.sources.GeometricSource</_object>
		<shine type="prop">
			<parameters type="prop">
				<toGlobal type="param">True</toGlobal>
				<withAmplitudes type="param">False</withAmplitudes>
				<accuBeam type="param">None</accuBeam>
			</parameters>
			<_object type="object">xrt.backends.raycing.sources.GeometricSource.shine</_object>
			<output type="prop">
				<beamGlobal type="param">geometricSource01beamGlobal01</beamGlobal>
			</output>
		</shine>
	</geometricSource01>
	<doubleParaboloidLens01 type="value">
		<properties type="prop">
			<bl type="param">beamLine</bl>
			<name type="param">None</name>
			<center type="param">[0, 10000, 0]</center>
			<pitch type="param">np.pi/2</pitch>
			<roll type="param">0</roll>
			<yaw type="param">0</yaw>
			<positionRoll type="param">0</positionRoll>
			<extraPitch type="param">0</extraPitch>
			<extraRoll type="param">0</extraRoll>
			<extraYaw type="param">0</extraYaw>
			<rotationSequence type="param">RzRyRx</rotationSequence>
			<extraRotationSequence type="param">RzRyRx</extraRotationSequence>
			<material type="param">material01</material>
			<alpha type="param">None</alpha>
			<limPhysX type="param">[-0.65, 0.65]</limPhysX>
			<limOptX type="param">None</limOptX>
			<limPhysY type="param">[-0.65, 0.65]</limPhysY>
			<limOptY type="param">None</limOptY>
			<isParametric type="param">False</isParametric>
			<shape type="param">rect</shape>
			<gratingDensity type="param">None</gratingDensity>
			<shouldCheckCenter type="param">False</shouldCheckCenter>
			<alarmLevel type="param">None</alarmLevel>
			<t type="param">0.1</t>
			<focus type="param">0.1</focus>
			<zmax type="param">0.5</zmax>
			<nCRL type="param">1</nCRL>
			<targetOpenCL type="param">None</targetOpenCL>
			<precisionOpenCL type="param">float64</precisionOpenCL>
		</properties>
		<_object type="object">xrt.backends.raycing.oes.DoubleParaboloidLens</_object>
		<multiple_refract type="prop">
			<parameters type="prop">
				<beam type="param">geometricSource01beamGlobal01</beam>
				<needLocal type="param">True</needLocal>
				<returnLocalAbsorbed type="param">None</returnLocalAbsorbed>
			</parameters>
			<_object type="object">xrt.backends.raycing.oes.DoubleParaboloidLens.multiple_refract</_object>
			<output type="prop">
				<beamGlobal type="param">doubleParaboloidLens01beamGlobal01</beamGlobal>
				<beamLocal1 type="param">doubleParaboloidLens01beamLocal101</beamLocal1>
				<beamLocal2 type="param">doubleParaboloidLens01beamLocal201</beamLocal2>
			</output>
		</multiple_refract>
	</doubleParaboloidLens01>
	<doubleParaboloidLens02 type="value">
		<properties type="prop">
			<bl type="param">beamLine</bl>
			<name type="param">None</name>
			<center type="param">[0, 10003, 0]</center>
			<pitch type="param">np.pi/2</pitch>
			<roll type="param">0</roll>
			<yaw type="param">0</yaw>
			<positionRoll type="param">0</positionRoll>
			<extraPitch type="param">0</extraPitch>
			<extraRoll type="param">0</extraRoll>
			<extraYaw type="param">0</extraYaw>
			<rotationSequence type="param">RzRyRx</rotationSequence>
			<extraRotationSequence type="param">RzRyRx</extraRotationSequence>
			<material type="param">material01</material>
			<alpha type="param">None</alpha>
			<limPhysX type="param">[-0.65, 0.65]</limPhysX>
			<limOptX type="param">None</limOptX>
			<limPhysY type="param">[-0.65, 0.65]</limPhysY>
			<limOptY type="param">None</limOptY>
			<isParametric type="param">False</isParametric>
			<shape type="param">rect</shape>
			<gratingDensity type="param">None</gratingDensity>
			<shouldCheckCenter type="param">False</shouldCheckCenter>
			<alarmLevel type="param">None</alarmLevel>
			<t type="param">0.1</t>
			<focus type="param">0.1</focus>
			<zmax type="param">0.5</zmax>
			<nCRL type="param">1</nCRL>
			<targetOpenCL type="param">None</targetOpenCL>
			<precisionOpenCL type="param">float64</precisionOpenCL>
		</properties>
		<_object type="object">xrt.backends.raycing.oes.DoubleParaboloidLens</_object>
		<multiple_refract type="prop">
			<parameters type="prop">
				<beam type="param">doubleParaboloidLens01beamGlobal01</beam>
				<needLocal type="param">True</needLocal>
				<returnLocalAbsorbed type="param">None</returnLocalAbsorbed>
			</parameters>
			<_object type="object">xrt.backends.raycing.oes.DoubleParaboloidLens.multiple_refract</_object>
			<output type="prop">
				<beamGlobal type="param">doubleParaboloidLens02beamGlobal01</beamGlobal>
				<beamLocal1 type="param">doubleParaboloidLens02beamLocal101</beamLocal1>
				<beamLocal2 type="param">doubleParaboloidLens02beamLocal201</beamLocal2>
			</output>
		</multiple_refract>
	</doubleParaboloidLens02>
	<doubleParaboloidLens03 type="value">
		<properties type="prop">
			<bl type="param">beamLine</bl>
			<name type="param">None</name>
			<center type="param">[0, 10006, 0]</center>
			<pitch type="param">np.pi/2</pitch>
			<roll type="param">0</roll>
			<yaw type="param">0</yaw>
			<positionRoll type="param">0</positionRoll>
			<extraPitch type="param">0</extraPitch>
			<extraRoll type="param">0</extraRoll>
			<extraYaw type="param">0</extraYaw>
			<rotationSequence type="param">RzRyRx</rotationSequence>
			<extraRotationSequence type="param">RzRyRx</extraRotationSequence>
			<material type="param">material01</material>
			<alpha type="param">None</alpha>
			<limPhysX type="param">[-0.65, 0.65]</limPhysX>
			<limOptX type="param">None</limOptX>
			<limPhysY type="param">[-0.65, 0.65]</limPhysY>
			<limOptY type="param">None</limOptY>
			<isParametric type="param">False</isParametric>
			<shape type="param">rect</shape>
			<gratingDensity type="param">None</gratingDensity>
			<shouldCheckCenter type="param">False</shouldCheckCenter>
			<alarmLevel type="param">None</alarmLevel>
			<t type="param">0.1</t>
			<focus type="param">0.1</focus>
			<zmax type="param">0.5</zmax>
			<nCRL type="param">1</nCRL>
			<targetOpenCL type="param">None</targetOpenCL>
			<precisionOpenCL type="param">float64</precisionOpenCL>
		</properties>
		<_object type="object">xrt.backends.raycing.oes.DoubleParaboloidLens</_object>
		<multiple_refract type="prop">
			<parameters type="prop">
				<beam type="param">doubleParaboloidLens02beamGlobal01</beam>
				<needLocal type="param">True</needLocal>
				<returnLocalAbsorbed type="param">None</returnLocalAbsorbed>
			</parameters>
			<_object type="object">xrt.backends.raycing.oes.DoubleParaboloidLens.multiple_refract</_object>
			<output type="prop">
				<beamGlobal type="param">doubleParaboloidLens03beamGlobal01</beamGlobal>
				<beamLocal1 type="param">doubleParaboloidLens03beamLocal101</beamLocal1>
				<beamLocal2 type="param">doubleParaboloidLens03beamLocal201</beamLocal2>
			</output>
		</multiple_refract>
	</doubleParaboloidLens03>
	<screen01 type="value">
		<properties type="prop">
			<bl type="param">beamLine</bl>
			<name type="param">None</name>
			<center type="param">[0, 20000, 0]</center>
			<x type="param">auto</x>
			<z type="param">auto</z>
			<compressX type="param">None</compressX>
			<compressZ type="param">None</compressZ>
		</properties>
		<_object type="object">xrt.backends.raycing.screens.Screen</_object>
		<expose type="prop">
			<parameters type="prop">
				<beam type="param">doubleParaboloidLens03beamGlobal01</beam>
			</parameters>
			<_object type="object">xrt.backends.raycing.screens.Screen.expose</_object>
			<output type="prop">
				<beamLocal type="param">screen01beamLocal01</beamLocal>
			</output>
		</expose>
	</screen01>
</beamLine>
<plots type="value">
</plots>
<run_ray_tracing type="prop">
	<_object type="object">xrt.runner.run_ray_tracing</_object>
	<plots type="param">plots</plots>
	<repeats type="param">1</repeats>
	<updateEvery type="param">1</updateEvery>
	<pickleEvery type="param">None</pickleEvery>
	<energyRange type="param">None</energyRange>
	<backend type="param">raycing</backend>
	<beamLine type="param">beamLine</beamLine>
	<threads type="param">1</threads>
	<processes type="param">1</processes>
	<generator type="param">None</generator>
	<generatorArgs type="param">[]</generatorArgs>
	<generatorKWargs type="param">auto</generatorKWargs>
	<globalNorm type="param">0</globalNorm>
	<afterScript type="param">None</afterScript>
	<afterScriptArgs type="param">[]</afterScriptArgs>
	<afterScriptKWargs type="param">{}</afterScriptKWargs>
</run_ray_tracing>
<description>This example has three double-parabolic CRLs. To visualize them nicely and to see that they do focus x-rays, start Glow, and:

- In Navigation select all 6 lens surfaces in the column "Surface" (if hidden, enlarge the window) and center the view at one of them.

- In Transformation set all 3 Log scales equal to 4. 

- In Color / Color Axis select xzprime -- the axial divergence, :math:`(xz)'=\sqrt{x'^2+ z'^2}`.

- Rotate and zoom the view as convenient.

- Observe with a close zoom that the footprint points deviate from the surface because the surfaces are too simplified by OpenGL. To make the surfaces more precise, put two equal larger numbers as tessellation parameters in Scene. This will result in better surfaces but also slower 3D manipulation of the scene.


 </description>
</Project>
