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