<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def EndOfEventAction(self, event):
 """At the end of an event, grab sensitive detector hits then run processor loop"""

        self.log.debug('Processesing simulated event %d', event.GetEventID())

        docs = self.sd.getDocs()
        self.sd.clearDocs()

        for processor in self.processors:
            docs = processor.process(docs)
            if not docs:
                self.log.warning('%s did not return documents in process()!',
                    processor.__class__.__name__)