15 from ROOT.Belle2
import KLMDatabaseImporter, KLMTimeConversion
17 basf2.set_log_level(basf2.LogLevel.INFO)
20 if (len(sys.argv) >= 2):
21 if (sys.argv[1] ==
'mc'):
24 dbImporter = KLMDatabaseImporter()
26 timeConversion = KLMTimeConversion()
28 timeConversion.setTimeOffset(0)
30 timeConversion.setCTimeShift(2)
33 dbImporter.setIOV(1002, 0, 1002, -1)
34 timeConversion.setCTimeShift(2)
35 dbImporter.importTimeConversion(timeConversion)
37 dbImporter.setIOV(1003, 0, 1003, -1)
38 timeConversion.setCTimeShift(0)
39 dbImporter.importTimeConversion(timeConversion)
41 dbImporter.setIOV(0, 0, 0, -1)
42 timeConversion.setCTimeShift(0)
43 dbImporter.importTimeConversion(timeConversion)
46 dbImporter.setIOV(0, 0, 3, -1)
47 timeConversion.setCTimeShift(2)
48 dbImporter.importTimeConversion(timeConversion)
50 dbImporter.setIOV(4, 0, -1, -1)
51 timeConversion.setCTimeShift(0)
52 dbImporter.importTimeConversion(timeConversion)