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

Public Member Functions

def initialize (self)
 

Detailed Description

 Search for the shared TBC constants within an ASIC 

Definition at line 38 of file checkTBCAsic.py.

Member Function Documentation

◆ initialize()

def initialize (   self)
 initialize: search is done here 

Definition at line 41 of file checkTBCAsic.py.

41 def initialize(self):
42 ''' initialize: search is done here '''
43
44 print()
45 print('Experiment =', expNo, 'Run =', runNo, 'global tag =', tag)
46 print()
47
48 mapper = Belle2.TOP.TOPGeometryPar.Instance().getFrontEndMapper()
49 tbc = Belle2.PyDBObj('TOPCalTimebase')
50 for slot in range(1, 17):
51 for bs in range(4):
52 femap = mapper.getMap(slot, bs)
53 scrod = femap.getScrodID()
54 print('slot' + str(slot), 'BS' + str(bs), 'scrodID =', scrod)
55 for asic in range(16):
56 sampleTimes = []
57 for ch in range(8):
58 chan = asic * 8 + ch
59 if tbc.isAvailable(scrod, chan):
60 sampleTimes.append(tbc.getSampleTimes(scrod, chan))
61 while len(sampleTimes) > 1:
62 not_eq = []
63 for i in range(1, len(sampleTimes)):
64 if sampleTimes[i].getTimeAxis() == sampleTimes[0].getTimeAxis():
65 ch = sampleTimes[i].getChannel() - asic * 8
66 ch0 = sampleTimes[0].getChannel() - asic * 8
67 print('--> asic =', asic, ': ch' + str(ch), 'sample times are same as ch' + str(ch0))
68 else:
69 not_eq.append(sampleTimes[i])
70 sampleTimes = not_eq
71
72
73# create path
Class to access a DBObjPtr from Python.
Definition: PyDBObj.h:50
static TOPGeometryPar * Instance()
Static method to obtain the pointer to its instance.

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