18from ROOT
import Belle2
19from ROOT.Belle2
import TOPDatabaseImporter
24b2.conditions.expert_settings(save_payloads=
"localDB/localDB.txt")
28fNames = glob.glob(folder_name +
'/*.root')
30 print(
'No root files found in', folder_name)
36 fileNames = fileNames +
' ' + fName
39class PayloadImporter(b2.Module):
40 ''' Payload importer using TOPDatabaseImporter '''
43 ''' Import timebase calibration '''
45 dbImporter = TOPDatabaseImporter()
46 dbImporter.importSampleTimeCalibration(fileNames)
50main = b2.create_path()
53main.add_module(
'EventInfoSetter')
56main.add_module(
'Gearbox')
59main.add_module(
'TOPGeometryParInitializer', useDB=
False)