Page History
...
- Everything is done in the context of the off-line analysis releases, your environment should be prepared and you should have test release setup based on one of the recent analysis releases. Consult Workbook which should help you going.
You need your own package which may host several analysis modules. Package name must be unique. If the package has not be created yet run this command:
Code Block newpkg MyPackage mkdir MyPackage/include MyPackage/src
Generate skeleton module class from template:
Code Block codegen -l psana-module MyPackage MyModule
this will create two files:
MyPackage/include/MyModule.h
andMyPackage/src/MyModule.cpp
- Edit these two files, add necessary data members and implementation of the methods.
- For examples of accessing different data types see collection of modules in
psana_examples
package. Reference for all event and configuration data types is located at https://pswww.slac.stanford.edu/swdoc/releases/ana-current/psddl_psana/ - Reference for other classes in psana framework: Psana Reference Manual
- Run
scons
to build the module library. - Create psana config file if necessary.
- Run
psana
providing input data, configuration file, etc. - It is also possible that somebody wrote a module which you can reuse for your analysis, check the module catalog: Psana Module Catalog
...
Overview
Content Tools