Versions Compared

Key

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

...

Example for Module ImgAlgos::TimeStampFilter and PSXtcOutput.XtcOutputModule

See Module ImgAlgos::TimeStampFilter and
Module PSXtcOutput::PackagePSXtcOutput

This example demonstrates how to run in psana with the time stamp filter with and event writing writer in xtc file.
Both modules are already available in psana library and they needs need only to be described in the configuration file for psana. For example, the configuration file ./ana-cxi49012/psana-cxi49012-r0021-tstamp-filter-and-event-writer.cfg may looks like:

...

Command to run psana is:
psana -c ./ana-cxi49012/psana-cxi49012-r0021-tstamp-filter-and-event-writer.cfg
Psana For this configuration file psana will skip 10 events and loop over the next 100 events from the /reg/d/psdm/cxi/cxi49012/xtc/e158-r0021-s0*-c00.xtc files and
pass control consequtively to the
run consecutively modules = ImgAlgos.TimeStampFilter PSXtcOutput.XtcOutputModule. Parameters of these modules are described in the bottom part of the configuration file. Module TimeStampFilter will pass the passes events in from the specified time interval and print prints some useful information. Module XtcOutputModule will write passed events in the file with auto-generated name ./test_out/e158-r0021-s00-c00.xtcf.

See also: Module ImgAlgos::TimeStampFilter and PSXtcOutput::PSXtcOutput