18from ROOT.Belle2
import TOPDatabaseImporter
23b2.conditions.expert_settings(save_payloads=
"localDB/localDB.txt")
27fNames = glob.glob(folder_name +
'/*.root')
29 print(
'No root files found in', folder_name)
35 fileNames = fileNames +
' ' + fName
38class PayloadImporter(b2.Module):
39 ''' Payload importer using TOPDatabaseImporter '''
42 ''' Import timebase calibration '''
44 dbImporter = TOPDatabaseImporter()
45 dbImporter.importSampleTimeCalibration(fileNames)
49main = b2.create_path()
52main.add_module(
'EventInfoSetter')
55main.add_module(
'Gearbox')
58main.add_module(
'TOPGeometryParInitializer', useDB=
False)