You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

How

2019-02-01 cpo
O'Grady, Paul Christopher <cpo@slac.stanford.edu> 
2019-02-01, 11:39 AM             
      
Hi Mikhail and Chuck,
For developing the area detector det xface I created a jungfrau xtc2 file using Eliseo’s translation scripts:
~cpo/git/lcls2/psana/psana/dgramPort/jungfrau.xtc2

Instructions for running his translator are on this page:
https://github.com/slac-lcls/lcls2/tree/master/psana/psana/dgramPort
slac-lcls/lcls2
github.com
Contribute to slac-lcls/lcls2 development by creating an account on GitHub.
The python script below dumps configuration information and event data.  I think the two goals should be:
- have the script below be able to call a psalg C++ det.calib (via cython?)
- the drp be able to use the psalg C++ as well

chris

from psana import DataSource
ds = DataSource('jungfrau.xtc2')
run = next(ds.runs())
dg_cfg = run.configs[0]
print('Found cfg version',dg_cfg.software.myjungfrau.cfg.version)
print('Found raw version',dg_cfg.software.myjungfrau.raw.version)
print('Config number of pixels:',dg_cfg.myjungfrau.cfg.numPixels)
for evt in ds.events():
    dg = evt._dgrams[0]
    print(dg.myjungfrau.raw.frame.shape)

====
- the drp be able
to use the psalg C++ as well

Thinking about it, I think the way to start might be for me to give
 you some C++ code that “simulates” what the drp will give you: a 
configure datagram and event data.  I think Chuck and I did this with 
the HSD.
After this “drp” version works,  we think about the python wrapping, I guess.
chris
Access xtc examples C++
/reg/neh/home/cpo/git/lcls2/psana/psana/dgramPort/jungfrau.xtc2
lcls2/xtcdata/xtcdata/app/jungfrau.cc - cpo
psalg/psalg/tests/test_hsd.cc  - cpo + chuck
lcls2/psalg/psalg/tests/test_xtc_data.cc - my

 

References

 

  • No labels