hep.lcd.util.driver
Interface Processor

All Known Subinterfaces:
Tracker, VertexDetector
All Known Implementing Classes:
AbstractProcessor, Driver

public interface Processor

A processor represents a reconstruction or MC processing stage, such as a track finder or cluster finder.

See Also:
AbstractProcessor, Driver
Source Code:
Processor.java

Method Summary
 void clearContext()
          Called by the Driver when this processor is removed from the Driver
 String getName()
          Called by the Driver to get the name of this processor
 void process(LCDEvent event)
          Called by the driver when this processor should process an event.
 void setContext(ProcessorContext context)
          Called by the Driver when this processor is added to the Driver
 void setDetector(Detector detector)
          Called by the driver when a new detector geometry is set.
 void start()
          Called at the beginning of processing
 void stop()
          Called at the end of processing
 

Method Detail

process

public void process(LCDEvent event)
Called by the driver when this processor should process an event. If the processor produces new output it should add it to the event.
Parameters:
event - The event to process

setDetector

public void setDetector(Detector detector)
Called by the driver when a new detector geometry is set. This will always be called before the first call to process(), and subsequently each time the Detector geometry changes.

start

public void start()
Called at the beginning of processing

stop

public void stop()
Called at the end of processing

setContext

public void setContext(ProcessorContext context)
Called by the Driver when this processor is added to the Driver
Parameters:
context - the new ProcessorContext

clearContext

public void clearContext()
Called by the Driver when this processor is removed from the Driver

getName

public String getName()
Called by the Driver to get the name of this processor
Returns:
The name of the processor


The LCD Group