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