User Tools

Site Tools


new_spectcl_in_python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
new_spectcl_in_python [2023/05/30 14:57]
swartzj
new_spectcl_in_python [2024/01/29 10:36] (current)
swartzj
Line 5: Line 5:
 In this new version of SpecTcl, written by Giordano Cerizza and Simon Giraud in Python, Xamine is replaced for online and offline data analysis by the CutiePie window, while the TreeGui and Spectcl control windows are retained from the previous version.  In this new version of SpecTcl, written by Giordano Cerizza and Simon Giraud in Python, Xamine is replaced for online and offline data analysis by the CutiePie window, while the TreeGui and Spectcl control windows are retained from the previous version. 
 To use this version, follow these instructions:  To use this version, follow these instructions: 
-  - While in the S800 account, issue from any directory //goQtspectcl_s800//. This command will open the TreeGui, the SpecTcl control window and log window, and the CutiePie window.   +  - While in the S800 account, issue from any directory //goQtspectcl_s800//. This command will open the TreeGui, the SpecTcl control window and log window, and the CutiePie window, which are all shown below//If it happens that Xamine is still opened instead of QtPy, close this SpecTcl session, and remove the comment on the line “set DisplayType qtpy” of “/user/s800/s800develop/s800Qtspectcl/SpecTclInit.tcl”, before issuing the command to start SpecTcl with QtPy again. //  
   - In the TreeGui, load the definition file.    - In the TreeGui, load the definition file. 
   - In the SpecTcl control window, click 'Attach to file' in the bottom-right, to attach to data file (of type .evt) and let it run the data.    - In the SpecTcl control window, click 'Attach to file' in the bottom-right, to attach to data file (of type .evt) and let it run the data. 
-  - Now click light-blue button called 'Get Data' on CutiePie.  +  - Now click the light-blue button called 'Get Data' on CutiePie.  
   - On CutiePie, click 'Load Geometry' and select the folder 'Windows/qtpy'. Here you will open a file of type *qtpy.win which will open a set of spectra from the data you want to look at.     - On CutiePie, click 'Load Geometry' and select the folder 'Windows/qtpy'. Here you will open a file of type *qtpy.win which will open a set of spectra from the data you want to look at.  
  
 You can now see and inspect your data set using CutiePie.  You can now see and inspect your data set using CutiePie. 
 +
 +{{:screenshot_from_2023-05-30_15-13-28.png?700|The TreeGui window}}
 +
 +{{:screenshot_from_2023-05-30_15-14-45.png?450|The SpecTcl control window}}
 +{{ :screenshot_from_2023-05-30_15-14-03.png?400|The SpecTcl log window}}
 +
 +
 +
 +
 +{{:cutiepie-window.png?900|The CutiePie main window}}
 +
 +=== The CutiePie window with geometry file for CRDC1 spectra. The data are from Run 1001 of Experiment 23605 in 2023, which utilized a 29Mg beam. ===
 +
  
 === Useful tips and tricks === === Useful tips and tricks ===
Line 18: Line 31:
   * At the top of the CutiePie window you will see two rows of buttons, one for functionalities related to the selected spectrum and one below it related to the gates.    * At the top of the CutiePie window you will see two rows of buttons, one for functionalities related to the selected spectrum and one below it related to the gates. 
   * You can modify the geometry using two buttons in the top-right of the CutiePie window where you can adjust the numbers of rows and columns.    * You can modify the geometry using two buttons in the top-right of the CutiePie window where you can adjust the numbers of rows and columns. 
-  * To make a gate on a given spectrum, click on the 'Create' button. You can then choose a name for your gate and thereafter also the type e.g. 'c' for contour. You can left-click on different points of the spectrum to draw lines for this contour gate. Double-click to end and save the gate. This gate should now also show up in the TreeGui. +  * To make a gate on a given spectrum, double-click on the spectrum, so the 'Create button becomes clickable, then click on the 'Create' button. You can then choose a name for your gate and thereafter also the type e.g. 'c' for contour. You can left-click on different points of the spectrum to draw lines for this contour gate. Double-click to end and save the gate. This gate should now also show up in the TreeGui. 
   * Double-click to work on only one spectrum. Double-click again to return to multiple panels.    * Double-click to work on only one spectrum. Double-click again to return to multiple panels. 
   * After selecting a gate, you can integrate over it using the purple 'Integrate' button.    * After selecting a gate, you can integrate over it using the purple 'Integrate' button. 
new_spectcl_in_python.1685473053.txt.gz · Last modified: 2023/05/30 14:57 by swartzj