From 3da53b5c55039c5db7de107b3aee5d204621bf8d Mon Sep 17 00:00:00 2001
From: Elena.Budnik <ebudnik@irap.omp.eu>
Date: Fri, 28 Sep 2018 12:58:06 +0200
Subject: [PATCH] mex_o_flux

---
 PARAM_DEF/mex_o_flux.xml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+), 0 deletions(-)
 create mode 100644 PARAM_DEF/mex_o_flux.xml

diff --git a/PARAM_DEF/mex_o_flux.xml b/PARAM_DEF/mex_o_flux.xml
new file mode 100644
index 0000000..56b89f9
--- /dev/null
+++ b/PARAM_DEF/mex_o_flux.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<param xml:id="mex_o_flux_##anode##">
+	<info>    
+		<table>
+			<centerAutoTable variable="true" name="Energy" centerName="mex_ima_energy" units="eV" log="false"/>
+		</table>
+	</info>
+	<get>
+		<amdaParam name="mex_ima_energy"/>
+		<vi name="mex:ima:extra">
+			<baseParam name="HeavySpec" dim3Num="2" dim3CutIndex="##anode##"/>
+		</vi>
+	</get>
+	<process>total(mex_imao_calculate($mex_ima_extra_HeavySpec,$mex_ima_energy,$mex_ima_extra_Pacc),1)</process>
+	<output>
+		<plot>
+			<timePlot>
+				<params>
+					<param id="mex_o_flux_##anode##">
+						<spectro yAxis="y-left"/>
+					</param>
+				</params> 
+				<axes>
+					<yAxis>
+						<digitalAxis id="y-left" scale="logarithmic"/>               
+					</yAxis>
+					<zAxis>
+						<colorAxis scale="logarithmic"/>
+					</zAxis>
+				</axes>
+			</timePlot>  
+	  </plot>
+	</output>
+</param>
--
libgit2 0.21.2