1
# Author: Christopher Tunnell <tunnell@hep.uchicago.edu>
6
from src.GenericWorker import *
8
class EdgeCompare(GenericWorker):
11
def ProcessStart(self):
14
def ProcessStop(self):
15
print 'edge samples', self.n
17
def ProcessRegion(self, region):
19
for event in region.GetEvents():
20
if event.runType == 'CIS' and\
21
event.data.has_key('problems') and\
22
event.data['problems'].has_key('Edge Sample') and\
23
event.data['problems']['Edge Sample']:
24
event.data['moreInfo']=True
28
event.data['moreInfo']=False
30
region.SetEvents(newevents)