Skip to content

Latest commit

 

History

History
54 lines (49 loc) · 1.94 KB

File metadata and controls

54 lines (49 loc) · 1.94 KB

Hall C RCDB

Setting up

All HallC run condition databases are updated with schema v2 and can now use the rcdb python library (https://pypi.org/project/rcdb/)

  1. Install rcdb if not done already
pip install rcdb
  1. Set environment variable for connection strings
setenv RCDB_CONNECTION mysql://rcdb@hallcdb.jlab.org/<database name> (csh, tcsh)
export RCDB_CONNECTION=mysql://rcdb@hallcdb.jlab.org/<database name> (bash, zsh)

If using SQLite databases, valid SQLite URL forms are:

sqlite:///:memory: (or, sqlite://)
sqlite:///relative/path/to/file.db
sqlite:////absolute/path/to/file.db
  1. Check if things are set properly using the command line tools. For example,
rcdb 

This will print out a summary about the database contents. For more information on the CLI, see https://jeffersonlab.github.io/rcdb/#/rcdb-cli


List of HallA/C databases

DB name Experiments
prex2 PREX2 and CREX
nps NPS
lad LAD
rsidis R-SIDIS
pionct PionCT
xem2 XEM2
at nucAT

The SQL dump files as well as SQLite databases for the past experiments can be found from databases folder.


Notes:

RCDB submodule

Connection string:

  • For updating DB entries: Master DB should be only used when making DB entries by start/end run scripts from cdaq machines. On cdaq computers, RCDB environment is set when login, and the connection string is set to the master database.
  • Please use the read-only copy otherwise:
    setenv RCDB_CONNECTION mysql://rcdb@hallcdb.jlab.org/c-rcdb
    

Useful information:

DB GUI for users

RCDB EDIT

rcdb_edit.py: this gui allows one to update run type, comment and flag the run.