Belle II Software  release-08-01-10
ImportTimeWindow.py
1 #!/usr/bin/env python3
2 
3 
10 
11 # Import KLM time window payloads.
12 
13 import basf2
14 from ROOT.Belle2 import KLMDatabaseImporter, KLMTimeWindow
15 
16 basf2.set_log_level(basf2.LogLevel.INFO)
17 
18 dbImporter = KLMDatabaseImporter()
19 
20 timeWindow = KLMTimeWindow()
21 timeWindow.setCoincidenceWindow(50)
22 timeWindow.setPromptTime(0)
23 # Raw KLM scintillator hit times are in the range from -5000 to -4000 ns approximately.
24 # The prompt window can be readjusted after the implementation of KLM time calibration.
25 # timeWindow.setPromptWindow(50)
26 timeWindow.setPromptWindow(10000)
27 
28 dbImporter.setIOV(0, 0, 0, -1)
29 dbImporter.importTimeWindow(timeWindow)
30 
31 dbImporter.setIOV(1002, 0, 1002, -1)
32 dbImporter.importTimeWindow(timeWindow)
33 
34 dbImporter.setIOV(1003, 0, 1003, -1)
35 dbImporter.importTimeWindow(timeWindow)