Versions Compared

Key

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

Draft, in work.

Table of Contents

Include Page
Xtc Second-Level Topic Map
Xtc Second-Level Topic Map

Once you've cloned the LCLS-II PSDM repository and built the executables therein, you can generate sample Xtc data files and use iPython and psana to inspect the structures therein.

Setting Up

Switch to PSDM conda Environment

In case you've exited the PSDM conda environment...

Create a Basic psana Data Import Script

We need a simple script to execute in the iPython session.

Code Block
languagepy
 from psana import DataSource

ds = DataSource('test.xtc')

for evt in ds.events():
	pass

Generating a Sample Data File