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