Add plotting feature for beam spot and rotation angle.

This commit is contained in:
2012-04-27 21:33:12 +00:00
parent a8bbb6f44e
commit 45209156fa
4 changed files with 517 additions and 419 deletions

View File

@ -39,7 +39,7 @@
</property>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
<cstring>SpinRotator</cstring>
</property>
<attribute name="title">
<string>Spin Rotator</string>
@ -150,146 +150,6 @@
</widget>
</hbox>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout11</cstring>
</property>
<property name="geometry">
<rect>
<x>160</x>
<y>210</y>
<width>140</width>
<height>50</height>
</rect>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<widget class="QLabel" row="1" column="2">
<property name="name">
<cstring>textLabel2_2_2_2_3_2_2</cstring>
</property>
<property name="backgroundMode">
<enum>PaletteBackground</enum>
</property>
<property name="paletteForegroundColor">
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="text">
<string>kV</string>
</property>
</widget>
<widget class="QLabel" row="0" column="2">
<property name="name">
<cstring>textLabel2_2_2_2_3_2</cstring>
</property>
<property name="backgroundMode">
<enum>PaletteBackground</enum>
</property>
<property name="paletteForegroundColor">
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="text">
<string>T</string>
</property>
</widget>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2_2_2_2_3</cstring>
</property>
<property name="backgroundMode">
<enum>PaletteBackground</enum>
</property>
<property name="paletteForegroundColor">
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="text">
<string>&lt;b&gt;&lt;font size="+1"&gt;SR_B&lt;/font&gt;&lt;/b&gt;</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<property name="name">
<cstring>SR_B</cstring>
</property>
<property name="text">
<string>-0.0331</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2_2_2_2_2_3</cstring>
</property>
<property name="backgroundMode">
<enum>PaletteBackground</enum>
</property>
<property name="paletteForegroundColor">
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="text">
<string>&lt;b&gt;&lt;font size="+1"&gt;SR_E&lt;/font&gt;&lt;/b&gt;</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<property name="name">
<cstring>SR_E</cstring>
</property>
<property name="text">
<string>12.55</string>
</property>
</widget>
</grid>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout13</cstring>
@ -874,14 +734,154 @@
</widget>
</grid>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout11</cstring>
</property>
<property name="geometry">
<rect>
<x>160</x>
<y>210</y>
<width>140</width>
<height>50</height>
</rect>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<property name="spacing">
<number>0</number>
</property>
<widget class="QLabel" row="1" column="2">
<property name="name">
<cstring>textLabel2_2_2_2_3_2_2</cstring>
</property>
<property name="backgroundMode">
<enum>PaletteBackground</enum>
</property>
<property name="paletteForegroundColor">
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="text">
<string>kV</string>
</property>
</widget>
<widget class="QLabel" row="0" column="2">
<property name="name">
<cstring>textLabel2_2_2_2_3_2</cstring>
</property>
<property name="backgroundMode">
<enum>PaletteBackground</enum>
</property>
<property name="paletteForegroundColor">
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="text">
<string>A</string>
</property>
</widget>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2_2_2_2_3</cstring>
</property>
<property name="backgroundMode">
<enum>PaletteBackground</enum>
</property>
<property name="paletteForegroundColor">
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="text">
<string>&lt;b&gt;&lt;font size="+1"&gt;SR_B&lt;/font&gt;&lt;/b&gt;</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<property name="name">
<cstring>SR_B</cstring>
</property>
<property name="text">
<string>-8.214</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2_2_2_2_2_3</cstring>
</property>
<property name="backgroundMode">
<enum>PaletteBackground</enum>
</property>
<property name="paletteForegroundColor">
<color>
<red>0</red>
<green>0</green>
<blue>0</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="text">
<string>&lt;b&gt;&lt;font size="+1"&gt;SR_E&lt;/font&gt;&lt;/b&gt;</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1">
<property name="name">
<cstring>SR_E</cstring>
</property>
<property name="text">
<string>6.275</string>
</property>
</widget>
</grid>
</widget>
</widget>
</widget>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
<cstring>Old</cstring>
</property>
<attribute name="title">
<string>Current</string>
<string>Old</string>
</attribute>
<widget class="QFrame">
<property name="name">
@ -1601,21 +1601,21 @@
</widget>
<widget class="QWidget">
<property name="name">
<cstring>TabPage</cstring>
<cstring>tab150778240</cstring>
</property>
<attribute name="title">
<string>Options</string>
</attribute>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout13</cstring>
<cstring>layout12</cstring>
</property>
<property name="geometry">
<rect>
<x>11</x>
<y>10</y>
<width>780</width>
<height>170</height>
<x>12</x>
<y>11</y>
<width>770</width>
<height>140</height>
</rect>
</property>
<grid>
@ -1624,18 +1624,10 @@
</property>
<widget class="QLineEdit" row="2" column="1">
<property name="name">
<cstring>SaveData</cstring>
<cstring>ROOTSYS</cstring>
</property>
<property name="text">
<string>.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<property name="name">
<cstring>textLabel2_2_5</cstring>
</property>
<property name="text">
<string>Save Data Path</string>
<string></string>
</property>
</widget>
<widget class="QPushButton" row="1" column="2">
@ -1646,23 +1638,15 @@
<string>Browse</string>
</property>
</widget>
<widget class="QPushButton" row="2" column="2">
<widget class="QLineEdit" row="0" column="1">
<property name="name">
<cstring>SaveDataButton</cstring>
<cstring>musrSim</cstring>
</property>
<property name="text">
<string>Browse</string>
<string>/home/l_salman/LEM/simulation/geant4/musrSim/</string>
</property>
</widget>
<widget class="QPushButton" row="0" column="2">
<property name="name">
<cstring>musrSimButton</cstring>
</property>
<property name="text">
<string>Browse</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<widget class="QLabel" row="2" column="0">
<property name="name">
<cstring>textLabel2_2_4</cstring>
</property>
@ -1678,6 +1662,14 @@
<string>/usr/local/geant4/4.9.3</string>
</property>
</widget>
<widget class="QPushButton" row="0" column="2">
<property name="name">
<cstring>musrSimButton</cstring>
</property>
<property name="text">
<string>Browse</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2_2_6</cstring>
@ -1694,7 +1686,7 @@
<string>musrSim Path</string>
</property>
</widget>
<widget class="QPushButton" row="3" column="2">
<widget class="QPushButton" row="2" column="2">
<property name="name">
<cstring>ROOTSYSButton</cstring>
</property>
@ -1702,22 +1694,6 @@
<string>Browse</string>
</property>
</widget>
<widget class="QLineEdit" row="3" column="1">
<property name="name">
<cstring>ROOTSYS</cstring>
</property>
<property name="text">
<string>/usr/local</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1">
<property name="name">
<cstring>musrSim</cstring>
</property>
<property name="text">
<string>/home/l_salman/LEM/simulation/geant4/musrSim/</string>
</property>
</widget>
</grid>
</widget>
</widget>
@ -1810,7 +1786,6 @@
<cstring>MenuBar</cstring>
</property>
<item text="&amp;File" name="fileMenu">
<action name="fileNewAction"/>
<action name="fileOpenAction"/>
<action name="fileSaveAction"/>
<action name="fileSaveAsAction"/>
@ -1819,19 +1794,9 @@
<separator/>
<action name="fileExitAction"/>
</item>
<item text="&amp;Edit" name="editMenu">
<action name="editUndoAction"/>
<action name="editRedoAction"/>
<separator/>
<action name="editCutAction"/>
<action name="editCopyAction"/>
<action name="editPasteAction"/>
<separator/>
<action name="editFindAction"/>
</item>
<item text="Plot" name="Plot">
<action name="plotEnvelopesAction"/>
<action name="plotBeam_SliceAction"/>
<action name="plotBeamSpot_Action"/>
</item>
<item text="&amp;Help" name="helpMenu">
<action name="helpContentsAction"/>
@ -2087,6 +2052,9 @@
<property name="name">
<cstring>plotEnvelopesAction</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Envelopes</string>
</property>
@ -2096,13 +2064,13 @@
</action>
<action>
<property name="name">
<cstring>plotBeam_SliceAction</cstring>
<cstring>plotBeamSpot_Action</cstring>
</property>
<property name="text">
<string>Beam Slice</string>
<string>Beam Spot</string>
</property>
<property name="menuText">
<string>Beam Slice</string>
<string>Beam Spot</string>
</property>
</action>
</actions>
@ -2254,16 +2222,16 @@
<slot>GetPATH()</slot>
</connection>
<connection>
<sender>SaveDataButton</sender>
<sender>Geant4Button</sender>
<signal>clicked()</signal>
<receiver>QmuSRSim</receiver>
<slot>GetPATH()</slot>
</connection>
<connection>
<sender>Geant4Button</sender>
<signal>clicked()</signal>
<sender>plotBeamSpot_Action</sender>
<signal>activated()</signal>
<receiver>QmuSRSim</receiver>
<slot>GetPATH()</slot>
<slot>plotBeamSpot()</slot>
</connection>
</connections>
<tabstops>
@ -2291,8 +2259,6 @@
<tabstop>BFIELD_2</tabstop>
<tabstop>musrSim</tabstop>
<tabstop>musrSimButton</tabstop>
<tabstop>SaveData</tabstop>
<tabstop>SaveDataButton</tabstop>
<tabstop>ROOTSYS</tabstop>
<tabstop>ROOTSYSButton</tabstop>
</tabstops>
@ -2319,6 +2285,7 @@
<slot>StartCalc()</slot>
<slot>GetPATH()</slot>
<slot>CheckSim()</slot>
<slot>plotBeamSpot()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>