20from ROOT
import Belle2
21from ROOT.Belle2
import TOPDatabaseImporter
26b2.conditions.expert_settings(save_payloads=
"localDB/localDB.txt")
30fNames = glob.glob(folder_name +
'/*/*.root')
32 print(
'No root files found in', folder_name)
38 fileNames = fileNames +
' ' + fName
42 ''' Payload importer using TOPDatabaseImporter '''
45 ''' Import timebase calibration '''
47 dbImporter = TOPDatabaseImporter()
48 dbImporter.importSampleTimeCalibration(fileNames)
52main = b2.create_path()
55main.add_module(
'EventInfoSetter')
58main.add_module(
'Gearbox')
61main.add_module(
'TOPGeometryParInitializer', useDB=
False)