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

Compare with Current View Page History

Version 1 Next »

This note describes calibration constants Data Base for LCLS-II.

Intro

In LCLS-II calibration constants resides in the data bases. Access to the DB can be done through python API, CLI, and GUI. At regular deployment calibration constants goes in two databases designated  for experiment and for detector. In regular request for calibration constants experimental DB is addressed first, then if constants not found, the detector DB is included in search. These features are sufficient for regular operations with detectors.

Regular DB

Calibration constant on MongoDB server are grouped in databases identified by their names

  • cdb_<experiment-name>
  • cdb_<detector-name>

for example

  • cdb_rixx45619
  • cdb_epixhr2x2_000001

Add constants to the DB

Constants can be deployed with commands

  • cdb add <parameters> ...
  • epix10ka_deploy_constants <parameters>...

for example

  • cdb add -e rixx45619 -d epixhr2x2_000001 -t 2021-10-01T00:00:00-0800 -c pedestals -f mypeds
  • cdb add -e rixx45619 -d epixhr2x2_000001 -t 2021-10-01T00:00:00-0800 -c geometry -f mygeo -i txt
  • epix10ka_deploy_constants -e rixx45619 -d epixhr -r121 -D

Use constants

Example script to get calibrated data

ds = DataSource(exp='rixx45619', run=121)
det = run.Detector('epixhr')
arr = det.raw.calib(evt)
img = det.raw.image(evt)

References

  • No labels