18from ROOT
import Belle2
23 print(
"usage: basf2", argvs[0],
"expNo runNo [globalTag or localDB]")
33 b2.conditions.append_testing_payloads(tag)
35 b2.conditions.append_globaltag(tag)
39 ''' Search for the shared TBC constants within an ASIC '''
42 ''' initialize: search is done here '''
45 print(
'Experiment =', expNo,
'Run =', runNo,
'global tag =', tag)
50 for slot
in range(1, 17):
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):
59 if tbc.isAvailable(scrod, chan):
60 sampleTimes.append(tbc.getSampleTimes(scrod, chan))
61 while len(sampleTimes) > 1:
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))
69 not_eq.append(sampleTimes[i])
74main = b2.create_path()
77eventinfosetter = b2.register_module(
'EventInfoSetter')
78eventinfosetter.param({
'evtNumList': [1],
'runList': [runNo],
'expList': [expNo]})
79main.add_module(eventinfosetter)
82main.add_module(
'TOPGeometryParInitializer')
Class to access a DBObjPtr from Python.
static TOPGeometryPar * Instance()
Static method to obtain the pointer to its instance.