You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 67 Next »

Introduction

This is ... to be continued.

Quick Example

To do analysis with a psana python script execute the following commands.  This requires the ability to ssh to an LCLS unix account and the ability to open up a graphics window on your computer ("X-windows").  Replace "YOURACCOUNTNAME" in the first line below with your unix account name.

ssh -X pslogin.slac.stanford.edu -l YOURACCOUNTNAME
ssh -X psana

# If you don't know which shell you are using
# try both commands below to see which one succeeds
 
# USE THIS LINE IF YOUR SHELL IS "C-SHELL".
source /reg/g/psdm/etc/ana_env.csh
# USE THIS LINE IF YOUR SHELL IS "BASH"
. /reg/g/psdm/etc/ana_env.sh

sit_setup
cp /reg/g/psdm/tutorials/xcs/ipsana.py ipsana.py
python ipsana.py

The 17-line ipsana.py script loops over 4 events and plots a princeton camera image (close each image window to see the next one).  You can examine the script with the command "more ipsana.py" or edit it with unix editors like emacs, vim, or vi.

  • No labels