Belle II Software  release-08-01-10
ImportTimeCableDelay.py
1 #!/usr/bin/env python3
2 
3 
10 
11 # Import KLM time cable delay payloads.
12 
13 from ROOT import Belle2
14 
15 timeCableDelay = Belle2.KLMTimeCableDelay()
16 index = Belle2.KLMChannelIndex()
17 index2 = Belle2.KLMChannelIndex()
18 while (index != index2.end()):
19  channel = index.getKLMChannelNumber()
20  timeCableDelay.setTimeDelay(channel, 0.0)
21  index.increment()
22 
24 
25 iov = Belle2.IntervalOfValidity(0, 0, 0, -1)
26 db.storeData("KLMTimeCableDelay", timeCableDelay, iov)
27 
28 iov = Belle2.IntervalOfValidity(1002, 0, 1002, -1)
29 db.storeData("KLMTimeCableDelay", timeCableDelay, iov)
30 
31 iov = Belle2.IntervalOfValidity(1003, 0, 1003, -1)
32 db.storeData("KLMTimeCableDelay", timeCableDelay, iov)
A class that describes the interval of experiments/runs for which an object in the database is valid.
KLM channel index.
Class to store BKLM delay time coused by cable in the database.
static Database & Instance()
Instance of a singleton Database.
Definition: Database.cc:42