Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
Related_Topics_Div_Open
Related_Topics_Div_Open

Recommended Next Topics

...

  • Account Setup
    Include Page
    Related_Topics_Div_Close
    Related_Topics_Div_Close

Include Page
PageMenuBegin
PageMenuBegin
Table of Contents
Include Page
PageMenuEnd
PageMenuEnd

About

This document explains which steps need to be done to begin using psana.

...

The newrel command requires two positional parameters: the name of a base release (in this example: ana-current) and the name of a directory which will be created for your test release (in this example: analisys-rel):

Code Block

newrel ana-current analisys-rel

This operation will create the directory and populate it with two files:

Code Block

% ls  analisys-rel/
SConstruct
.sit_release

...

These two command should be done just once when you're about to work with that test release.

Code Block

cd analisys-rel
sit_setup

...

Note

It's better to choose name which contains letters, digits, and underscores only because the package name will be used for Python package names.

Code Block

newpkg my_ana_pkg

This will create directory my_ana_pkg and populate it with few files and sub-directories:

Code Block

       .../analisys-rel/
                      ./my_ana_pkg/
                                   SConscript
                                   doc/
                                       README
                                       ChangeLog

...

Execute following commands:

Code Block

mkdir my_ana_pkg/src my_ana_pkg/include   # only if src and include directories do not exist yet
codegen -l psana-module my_ana_pkg my_ana_mod

...

Run the command which builds all necessary software in your test release:

Code Block

scons

7. Create configuration file (Freq: once)

In addition to analysis module the job usually needs a separate configuration file. The name and location of the file could be arbitrary. C++-based analysis uses file named psana.cfg in current directory by default, create it with your favorite editor:

Code Block

vi psana.cfg

The file will contain both the names of the modules you want to load and parameters you want to pass to those modules, exact content of the configuration file is explained in Psana User Manual.

...

Chose the data you want to process and start analysis job. Assuming properly prepared psana.cfg in current directory, execute:

Code Block

psana /reg/d/psdm/AMO/amo14410/xtc/e23-r0406-*.xtc

or:

Code Block
psana exp=amo14410:run=0406