... | ... | @@ -3,5 +3,5 @@ On this page, you can explore how to convert existing data in different formats |
|
|
## Xtc1 to Xtc2 Conversion
|
|
|
Like how their name suggested, Xtc1 is the data format for running with lcls1 system (likewise for Xtc2). Both systems (1 and 2) have different environments and cannot be loaded at runtime together easily. You'll need two processes (one for each environment) running and communicating through zmq to share data.
|
|
|
|
|
|
We use a simple zmq push and pull model for this work. The [zmq_push.py](https://github.com/monarin/xtc1to2/blob/master/examples/zmq_push.py) opens psana1-style DataSource and starts getting events from a run. Any data that need to be converted to Xtc2 format will be sent to [zmq_pull.py] (https://github.com/monarin/xtc1to2/blob/master/examples/zmq_pull.py). The pull script makes use of DgramPy library in Psana2 to create Xtc2-style transitions (Configures, BeginRun, etc) and add retrieved data from the push script as an L1Accept event.
|
|
|
We use a simple zmq push and pull model for this work. The [zmq_push.py](https://github.com/monarin/xtc1to2/blob/master/examples/zmq_push.py) opens psana1-style DataSource and starts getting events from a run. Any data that need to be converted to Xtc2 format will be sent to [zmq_pull.py](https://github.com/monarin/xtc1to2/blob/master/examples/zmq_pull.py). The pull script makes use of DgramPy library in Psana2 to create Xtc2-style transitions (Configures, BeginRun, etc) and add retrieved data from the push script as an L1Accept event.
|
|
|
From the def |
|
|
\ No newline at end of file |