Belle II Software development
ImportFrontEndMaps Class Reference
Inheritance diagram for ImportFrontEndMaps:

Public Member Functions

def initialize (self)
 

Detailed Description

 database importer for TOPFrontEndMaps 

Definition at line 30 of file importFrontEndMaps.py.

Member Function Documentation

◆ initialize()

def initialize (   self)
 initialize method: import a payload to local database 

Definition at line 33 of file importFrontEndMaps.py.

33 def initialize(self):
34 """ initialize method: import a payload to local database """
35
36 iov = Belle2.IntervalOfValidity(0, 0, -1, -1)
37 mapper = Belle2.TOP.TOPGeometryPar.Instance().getFrontEndMapper()
38 if not mapper.isValid():
39 return
40 mapper.importPayload(iov)
41
42 print()
43 print('Mapping of boardstacks to SCROD IDs')
44 for slot in range(1, 17):
45 print('slot', slot)
46 for bs in range(4):
47 femap = mapper.getMap(slot, bs)
48 if femap:
49 print(' BS' + str(bs) + ':', femap.getScrodID())
50 else:
51 print(' BS' + str(bs) + ': *not available*')
52 print('--> FrontEndMaps imported to local database ' + localDBName)
53
54
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.

The documentation for this class was generated from the following file: