18from basf2
import conditions, create_path, process, Module, set_log_level, LogLevel
19from ROOT
import Belle2
22localDBName =
"localDB-FEMaps/localDB.txt"
24 localDBName = sys.argv[1]
27conditions.expert_settings(save_payloads=localDBName)
31 """ database importer for TOPFrontEndMaps """
34 """ initialize method: import a payload to local database """
38 if not mapper.isValid():
40 mapper.importPayload(iov)
43 print(
'Mapping of boardstacks to SCROD IDs')
44 for slot
in range(1, 17):
47 femap = mapper.getMap(slot, bs)
49 print(
' BS' + str(bs) +
':', femap.getScrodID())
51 print(
' BS' + str(bs) +
': *not available*')
52 print(
'--> FrontEndMaps imported to local database ' + localDBName)
55set_log_level(LogLevel.ERROR)
58main.add_module(
'EventInfoSetter')
59main.add_module(
'Gearbox')
60main.add_module(
'TOPGeometryParInitializer', useDB=
False)
A class that describes the interval of experiments/runs for which an object in the database is valid.
static TOPGeometryPar * Instance()
Static method to obtain the pointer to its instance.