55def modify(event):
56 new_event=eformat.write.FullEventFragment()
57 new_event.copy_header(event)
58 for rob in event:
59 newrob=eformat.write.ROBFragment(rob)
60 if rob.source_id().human_detector()=='TDAQ_CALO_PREPROC':
61 continue
62 if rob.source_id().human_detector()=='TDAQ_LVL2':
63 continue
64 if rob.source_id().human_detector()=='TDAQ_EVENT_FILTER':
65 continue
66 if rob.source_id().human_group()=="TILECAL":
67 data = rob.rod_data()
68 newdata=reducedTILE(data)
69 newrob.rod_data(newdata)
70
71 if rob.source_id().human_group()=="LAR" and rob.rod_minor_version()==11:
72
73 data = rob.rod_data()
74 newdata=reducedLARFEB(data)
75 if len(data)>data[0]:
76 newdata+=[data[data[0]+ii] for ii in range(7)]
77 data=data[data[0]+7:]
78 newdata+=reducedLARFEB(data)
79 newrob.rod_data(newdata)
80 new_event.append(newrob)
81 return new_event.readonly()
82