Versions Compared

Key

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

...

This step is described in details in Account Setup section of the workbook. You need to be able to login to analysis host and source the environment setup script at logon time.

...

Either source the the environment setup script on every logon: . /reg/g/psdm/etc/ana_env.sh or add this command to the shell login script as explained in Account Setup section.

3. Kerberos ticket (Freq: every day or as necessary)

...

Releases are explained in Packages and Releases section. Create new test release with the command like this:

...

Code Block
cd analisys-rel
sit_setup

The last sit_setup command is very important and must be executed from the release directory every time you change the directory.

...

  • For Python-based analysis framework you need to execute following commands:
    Code Block
    mkdir my_ana_pkg/src   # only if src directory does not exist yet
    codegen -l pyana-module my_ana_pkg my_ana_mod
    
    This will create file my_ana_pkg/src/my_ana_mod.py which contains boilerplate code for analysis module. The codegen command can also be used to generate other template modules, as explained here.
  • For C++-based analysis framework you need to 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
    
    This will create files my_ana_pkg/include/my_ana_mod.h and my_ana_pkg/src/my_ana_mod.cpp which contain skeleton code for analysis module.

...

Use your favorite editor to add or modify code the analysis module. For Python modules see section Writing User Modules in Pyana User Manual for examples. For C++ modules see Psana User Manual - Old for examples.

9. Build (Freq: after every edit)

...