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
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
Class to access a DBObjPtr from Python.
static TOPGeometryPar * Instance()
Static method to obtain the pointer to its instance.