Belle II Software  release-08-01-10
ImportFrontEndMaps Class Reference
Inheritance diagram for ImportFrontEndMaps:
Collaboration diagram for ImportFrontEndMaps:

Public Member Functions

def initialize (self)
 

Detailed Description

 database importer for TOPFrontEndMaps 

Definition at line 31 of file importFrontEndMaps.py.

Member Function Documentation

◆ initialize()

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

Definition at line 34 of file importFrontEndMaps.py.

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