20 from ROOT.Belle2
import TOPDatabaseImporter
25 b2.conditions.expert_settings(save_payloads=
"localDB/localDB.txt")
29 fNames = glob.glob(folder_name +
'/*/*.root')
31 print(
'No root files found in', folder_name)
37 fileNames = fileNames +
' ' + fName
41 ''' Payload importer using TOPDatabaseImporter '''
44 ''' Import timebase calibration '''
46 dbImporter = TOPDatabaseImporter()
47 dbImporter.importSampleTimeCalibration(fileNames)
51 main = b2.create_path()
54 main.add_module(
'EventInfoSetter')
57 main.add_module(
'Gearbox')
60 main.add_module(
'TOPGeometryParInitializer', useDB=
False)