|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hep.analysis.EventHandler | +--hep.analysis.EventAnalyzer | +--hep.lcd.util.driver.Driver
A driver is a steering routine which can call a number of processors It also allows controlling the debug level of the processors being called and handles coordination of random numbers between Monte Carlo processors. Driver also implements Processor, so Drivers can be nested as Processors within other Drivers. When used as a nested driver all parameters such as histogramLevel and debugLevel are inherited from the parent driver.
Processor
,
ProcessorContext
,
ReconDriver
Fields inherited from class hep.analysis.EventHandler |
out |
Constructor Summary | |
Driver()
|
Method Summary | |
void |
add(Processor p)
Add a Processor to this Driver |
void |
afterLastEvent()
|
void |
beforeFirstEvent()
|
void |
clearContext()
Called by the Driver when this processor is removed from the Driver |
boolean |
contains(Processor p)
Tests to see if a given Processor is already added to this Driver |
int |
getDebugLevel()
|
int |
getHistogramLevel()
|
String |
getName()
Called by the Driver to get the name of this processor |
long |
getSeed()
|
void |
process(LCDEvent event)
Called by the driver when this processor should process an event. |
void |
processEvent(EventData data)
|
void |
remove(Processor p)
Removes a Processor from this Driver |
void |
setContext(ProcessorContext value)
Called by the Driver when this processor is added to the Driver |
void |
setDebugLevel(int level)
|
void |
setDetector(Detector det)
Called by the driver when a new detector geometry is set. |
void |
setHistogramLevel(int level)
|
void |
setSeed(long newSeed)
|
void |
start()
Called at the beginning of processing |
void |
stop()
Called at the end of processing |
Methods inherited from class hep.analysis.EventHandler |
histogram, histogram, sendMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Driver()
Method Detail |
public void add(Processor p)
p
- The Processor to be addedpublic void remove(Processor p)
p
- The Processor to be removedpublic boolean contains(Processor p)
p
- Processor to be checkedpublic void processEvent(EventData data)
processEvent
in class EventAnalyzer
public void setDetector(Detector det)
Processor
setDetector
in interface Processor
public void beforeFirstEvent()
beforeFirstEvent
in class EventHandler
public void afterLastEvent()
afterLastEvent
in class EventHandler
public long getSeed()
public void setSeed(long newSeed)
public int getDebugLevel()
public void setDebugLevel(int level)
public int getHistogramLevel()
public void setHistogramLevel(int level)
public void process(LCDEvent event)
Processor
process
in interface Processor
hep.lcd.util.driver.Processor
event
- The event to processpublic void start()
Processor
start
in interface Processor
public void stop()
Processor
stop
in interface Processor
public void setContext(ProcessorContext value)
Processor
setContext
in interface Processor
hep.lcd.util.driver.Processor
context
- the new ProcessorContextpublic void clearContext()
Processor
clearContext
in interface Processor
public String getName()
Processor
getName
in interface Processor
hep.lcd.util.driver.Processor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |