16from ROOT
import Belle2
17from ROOT.Belle2
import KLMDatabaseImporter, KLMScintillatorDigitizationParameters
19basf2.set_log_level(basf2.LogLevel.INFO)
22if (len(sys.argv) >= 2):
23 if (sys.argv[1] ==
'mc'):
26dbImporter = KLMDatabaseImporter()
28digPar = KLMScintillatorDigitizationParameters()
30digPar.setADCRange(4096)
32digPar.setADCSamplingTDCPeriods(1)
34digPar.setNDigitizations(200)
36digPar.setADCPedestal(3700)
38digPar.setADCPEAmplitude(20)
40digPar.setADCThreshold(3640)
42digPar.setADCSaturation(1000)
44digPar.setNPEperMeV(22)
46digPar.setMinCosTheta(math.cos(26.7 / 180.0 * math.pi))
48digPar.setMirrorReflectiveIndex(0.95)
50digPar.setScintillatorDeExcitationTime(3.0)
52digPar.setFiberDeExcitationTime(10.0)
54digPar.setFiberLightSpeed(17.0)
56digPar.setAttenuationLength(300.0)
59digPar.setPEAttenuationFrequency(0.11428571428571428571)
61digPar.setMeanSiPMNoise(-1)
63digPar.setEnableConstBkg(
False)
66 dbImporter.setIOV(1002, 0, 1002, -1)
67 dbImporter.importScintillatorDigitizationParameters(digPar)
69 dbImporter.setIOV(1003, 0, 1003, -1)
70 dbImporter.importScintillatorDigitizationParameters(digPar)
72 dbImporter.setIOV(0, 0, 0, -1)
73 dbImporter.importScintillatorDigitizationParameters(digPar)
76 dbImporter.setIOV(0, 0, -1, -1)
77 dbImporter.importScintillatorDigitizationParameters(digPar)