16 from ROOT.Belle2
import KLMDatabaseImporter, KLMScintillatorDigitizationParameters
18 basf2.set_log_level(basf2.LogLevel.INFO)
21 if (len(sys.argv) >= 2):
22 if (sys.argv[1] ==
'mc'):
25 dbImporter = KLMDatabaseImporter()
27 digPar = KLMScintillatorDigitizationParameters()
29 digPar.setADCRange(4096)
31 digPar.setADCSamplingTDCPeriods(1)
33 digPar.setNDigitizations(200)
35 digPar.setADCPedestal(3700)
37 digPar.setADCPEAmplitude(20)
39 digPar.setADCThreshold(3640)
41 digPar.setADCSaturation(1000)
43 digPar.setNPEperMeV(22)
45 digPar.setMinCosTheta(math.cos(26.7 / 180.0 * math.pi))
47 digPar.setMirrorReflectiveIndex(0.95)
49 digPar.setScintillatorDeExcitationTime(3.0)
51 digPar.setFiberDeExcitationTime(10.0)
53 digPar.setFiberLightSpeed(17.0)
55 digPar.setAttenuationLength(300.0)
58 digPar.setPEAttenuationFrequency(0.11428571428571428571)
60 digPar.setMeanSiPMNoise(-1)
62 digPar.setEnableConstBkg(
False)
65 dbImporter.setIOV(1002, 0, 1002, -1)
66 dbImporter.importScintillatorDigitizationParameters(digPar)
68 dbImporter.setIOV(1003, 0, 1003, -1)
69 dbImporter.importScintillatorDigitizationParameters(digPar)
71 dbImporter.setIOV(0, 0, 0, -1)
72 dbImporter.importScintillatorDigitizationParameters(digPar)
75 dbImporter.setIOV(0, 0, -1, -1)
76 dbImporter.importScintillatorDigitizationParameters(digPar)