19 from basf2
import conditions, create_path, process, Module, set_log_level, LogLevel
20 from ROOT
import Belle2
23 localDBName =
"localDB-FEMaps/localDB.txt"
25 localDBName = sys.argv[1]
28 conditions.expert_settings(save_payloads=localDBName)
32 """ database importer for TOPFrontEndMaps """
35 """ initialize method: import a payload to local database """
39 if not mapper.isValid():
41 mapper.importPayload(iov)
44 print(
'Mapping of boardstacks to SCROD IDs')
45 for slot
in range(1, 17):
48 femap = mapper.getMap(slot, bs)
50 print(
' BS' + str(bs) +
':', femap.getScrodID())
52 print(
' BS' + str(bs) +
': *not available*')
53 print(
'--> FrontEndMaps imported to local database ' + localDBName)
56 set_log_level(LogLevel.ERROR)
59 main.add_module(
'EventInfoSetter')
60 main.add_module(
'Gearbox')
61 main.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.