17from ROOT
import Belle2
18from ROOT.Belle2
import CDCDatabaseImporter
19from ROOT.Belle2
import FileSystem
28mapfile = FileSystem.findFile(
'data/cdc/ch_map.dat')
29t0file = FileSystem.findFile(
'data/cdc/t0_v1.dat')
30bwfile = FileSystem.findFile(
'data/cdc/badwire_v1.dat')
31psfile = FileSystem.findFile(
'data/cdc/propspeed_v0.dat')
32twfile = FileSystem.findFile(
'data/cdc/tw_off.dat')
33xtfile = FileSystem.findFile(
'data/cdc/xt_v3.0.1_chebyshev.dat.gz')
34sgfile = FileSystem.findFile(
'data/cdc/sigma_v2.dat')
35fffile = FileSystem.findFile(
'data/cdc/ffactor.dat')
36dispfile = FileSystem.findFile(
'data/cdc/displacement_v1.1.dat')
37alfile = FileSystem.findFile(
'data/cdc/alignment_v2.dat')
39fefile = FileSystem.findFile(
'cdc/data/fee_phase3.dat')
41b2.use_local_database(
"localDB/database.txt",
"localDB")
43main = b2.create_path()
46eventinfosetter = b2.register_module(
'EventInfoSetter')
47eventinfosetter.param({
'evtNumList': [1],
'runList': [1]})
48main.add_module(eventinfosetter)
51gearbox = b2.register_module(
'Gearbox')
52main.add_module(gearbox)
59dbImporter.importChannelMap(mapfile)
61dbImporter.importTimeZero(t0file)
62dbImporter.importBadWire(bwfile)
63dbImporter.importPropSpeed(psfile)
64dbImporter.importTimeWalk(twfile)
65dbImporter.importXT(xtfile)
66dbImporter.importSigma(sgfile)
67dbImporter.importFFactor(fffile)
68dbImporter.importDisplacement(dispfile)
69dbImporter.importWirPosAlign(alfile)
70dbImporter.importADCDeltaPedestal()
71dbImporter.importFEElectronics(fefile)