15from ROOT
import Belle2
16from ROOT.Belle2
import KLMDatabaseImporter, KLMChannelStatus
18basf2.set_log_level(basf2.LogLevel.INFO)
21if (len(sys.argv) >= 2):
22 if (sys.argv[1] ==
'mc'):
25dbImporter = KLMDatabaseImporter()
27channelStatus = KLMChannelStatus()
28channelStatus.setStatusAllChannels(KLMChannelStatus.c_Normal)
31 dbImporter.setIOV(1002, 0, 1002, -1)
32 dbImporter.importChannelStatus(channelStatus)
34 dbImporter.setIOV(1003, 0, 1003, -1)
35 dbImporter.importChannelStatus(channelStatus)
37 dbImporter.setIOV(0, 0, 0, -1)
38 dbImporter.importChannelStatus(channelStatus)
41 dbImporter.setIOV(0, 0, -1, -1)
42 dbImporter.importChannelStatus(channelStatus)