Belle II Software  release-08-01-10
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 
14 from ROOT import Belle2
15 
17 clocks.setAcceleratorRF(508.876e-3)
18 clocks.setClockPrescale(Belle2.Const.EDetector.TOP, "sampling", 6)
19 clocks.setClockPrescale(Belle2.Const.EDetector.SVD, "sampling", 4)
20 clocks.setClockPrescale(Belle2.Const.EDetector.ECL, "sampling", 3 * 24)
21 clocks.setClockPrescale(Belle2.Const.EDetector.KLM, "TDC", 0.125)
22 
25 db.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