Belle II Software development
DBClockImporter.py
1#!/usr/bin/env python
2
3
10
11# Import clocks payloads
12# Note: frequencies must be given in GHz (default unit in basf2)
13
14from ROOT import Belle2
15
17clocks.setAcceleratorRF(508.876e-3)
18clocks.setClockPrescale(Belle2.Const.EDetector.TOP, "sampling", 6)
19clocks.setClockPrescale(Belle2.Const.EDetector.SVD, "sampling", 4)
20clocks.setClockPrescale(Belle2.Const.EDetector.ECL, "sampling", 3 * 24)
21clocks.setClockPrescale(Belle2.Const.EDetector.KLM, "TDC", 0.125)
22
25db.storeData("HardwareClockSettings", clocks, iov)
Database object containing the nominal accelerator RF value and the prescales to derive the clock fre...
static IntervalOfValidity always()
Function that returns an interval of validity that is always valid, c.f.
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:42