Page History
...
returning 64-bit integer numbers. For better human readability the segment Id name can be formatted as '%020d%d-%020d%d-%020d%d', e.g. "000000000000015086131508613-000000000000039979433997943-0000002263072106293322630721062933".
Then, total Jungfrau Id is a variable-length dash separated combination of sequential segment Id names, i.g. for two segments of exp=xcsls3716:run=631, XcsEndstation.0:Jungfrau.0 Id is 0000000000015086131508613-00002263072106293322630721062933-0000000000039978723997872-0000000000015086131508613-00002263072106293322630721062933-0000000000039979433997943.
API
Method returning Jungfrau and its segments' Ids is implemented in Detector/src/UtilsJungfrau.py, and can be used as shown in example:
Code Block |
---|
import psana from Detector.UtilsJungfrau import id_jungfrau ds = psana.DataSource('exp=xcsls3716xpptut15:run=631430') srcenv = psanads.Source('XcsEndstationenv() src = 'MfxEndstation.0:Jungfrau.0') co = ds.env().configStore().get(psana.Jungfrau.ConfigV3, src) print( # or part of the DetInfo name 'Jung' or 'Jungfrau.1' or alias 'jungfrau1M' print 'id_jungfrau(coenv, src, 0):', id_jungfrau(co,0)) print(env, src, iseg=0) # for segment 0 print 'id_jungfrau(coenv, src, 1):', id_jungfrau(co,1)) print(env, src, iseg=1) # for segment 1 print 'id_jungfrau(coenv, src) :', id_jungfrau(co))env, src) # for all segments |
prints something like
Code Block |
---|
id_jungfrau(coenv, src, 0): 000000000000015086131508613-0000002263072106293322630721062933-000000000000039978723997872 id_jungfrau(coenv, src, 1): 000000000000015086131508613-0000002263072106293322630721062933-000000000000039979433997943 id_jungfrau(co) : 00000000000001508613-00000022630721062933-00000000000003997872-00000000000001508613-00000022630721062933-00000000000003997943env, src) : 1508613-22630721062933-3997872-1508613-22630721062933-3997943 |
CLI
A few commands which shed lights on data with jungfrau detector are listed below.
Command line to get jungfrau Id:
Code Block |
---|
jungfrau_id exp=xpptut15:run=430 [Jungfrau.0] |
Command line to get jungfrau psana.EventKey objects:
Code Block |
---|
event_keys -d exp=xpptut15:run=430 -m2 -p Jung |
Command line to find experiment runs with jungfrau:
Code Block |
---|
find_detector_runs MFX jungfrau |
Available data
Code Block | ||||
---|---|---|---|---|
| ||||
Dataset Runs DetInfo name Panel/detector Id or configuration object version
-----------------------------------------------------------------------------------------------------------------------------
exp=mfx00616:run=8 1-8 MfxEndstation.0:Jungfrau.0 psana.Jungfrau.ConfigV1
exp=mfx05516:run=16 16 MfxEndstation.0:Jungfrau.0 1511699-23403815178277-3997872-1511699-23403815178277-3997943
exp=mfxlr1716:run=295 1-295 MfxEndstation.0:Jungfrau.0 1511699-23403815178277-3997872-1511699-23403815178277-3997943
exp=mfxlr5016:run=197 194-197 MfxEndstation.0:Jungfrau.0 1511699-23403815178277-3997872-1511699-23403815178277-3997943
exp=mfxx20515:run=2 1-2 MfxEndstation.0:Jungfrau.0 1508613-22630721062933-3997872-1508613-22630721062933-3997943
exp=mfx11116:run=697 563-697 MfxEndstation.0:Jungfrau.1 1511699-23403815178277-3997947
exp=mfxls0816:run=193 1-193 MfxEndstation.0:Jungfrau.1 1511699-23403815178277-3997947
exp=xcs11116:run=18 4-18 XcsEndstation.0:Jungfrau.0 psana.Jungfrau.ConfigV2
exp=xcsls3716:run=631 1-631 XcsEndstation.0:Jungfrau.0 1508613-22630721062933-3997872-1508613-22630721062933-3997943
exp=xcsx22015:run=555 503-555 XcsEndstation.0:Jungfrau.0 psana.Jungfrau.ConfigV2
exp=xcslr6316:run=17 4-17 XcsEndstation.0:Jungfrau.1 1511699-23403815178277-3997947
exp=detdaq17:run=68 3-68 DetLab.0:Jungfrau.0 1511699-23403815178277-3997947
exp=xppls2416:run=247 1-247 XppEndstation.0:Jungfrau.1 1511699-23403815178277-3997872-1511699-23403815178277-3997943
exp=cxi11216:run=54 4-54 CxiEndstation.0:Jungfrau.0 psana.Jungfrau.ConfigV1
exp=mecls3216:run=226 2-226 MecTargetChamber.0:Jungfrau.0 1508613-22630721062933-3997872-1508613-22630721062933-3997943 |
Calibration production
For now firmware calibration is produced per segment (named as M044, M068, M088, etc.) for gain and offsets in /reg/g/psdm/detector/gains/jungfrau, e.g.:
...
directory /reg/g/psdm/detector/gains/jungfrau/M088/ contains:
Code Block |
---|
g0_gain.npy /reg/g/psdm/detector/gains/jungfrau/M088/g0_offset.npy /reg/g/psdm/detector/gains/jungfrau/M088/g1_gain.npy /reg/g/psdm/detector/gains/jungfrau/M088/g1_offset.npy /reg/g/psdm/detector/gains/jungfrau/M088/g2_gain.npy /reg/g/psdm/detector/gains/jungfrau/M088/g2_offset.npy |
For auto-generation of calibration files it is suggested to
...
Calibration file for particular detector can be generated dynamically using names of its segments from configuration data. Thus generated file can be deployed in the calib or "generic" repository.
Content of panel calibration directory
/reg/g/psdm/detector/gains/jungfrau/
Code Block |
---|
1508613-22630721062933-3997872/
1508613-22630721062933-3997943/
1511699-23403815178277-3997872/
1511699-23403815178277-3997943/
1511699-23403815178277-3997947/
M044/
M068/
M088/ |
Questions
- prefix zeroes in the name
- calibration versions
...