44 """Runs the dumping routines"""
48 print(
"Opening %s" % bsfile)
53 input = eformat.istream(bsfile)
54 subdet = eformat.helper.SubDetector.TDAQ_EVENT_FILTER
if opt.ef
else eformat.helper.SubDetector.TDAQ_LVL2
57 ev = ( event.global_id(), event.lvl1_id() )
60 for f
in event.children():
61 if f.source_id().subdetector_id() == subdet:
63 chains_data = list(res.getChainResult())
65 for c
in chains_data[1:]:
67 chains[chain.getChainCounter()] = chain.isPrescaled()
72 output = open(opt.pickle,
"wb")
73 cPickle.dump(events, output)