|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthep.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| Field Summary |
| 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()
|
java.lang.String |
getEventPrefix()
Get the prefix to be prepended to anything added to the event. |
int |
getHistogramLevel()
|
java.lang.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)
|
java.util.Iterator |
processors()
Returns an iterator over all the processors added to this Driver |
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 |
setEventPrefix(java.lang.String prefix)
Set the prefix to prepend to anything added to the event. |
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 java.util.Iterator processors()
public boolean contains(Processor p)
p - Processor to be checkedpublic void processEvent(EventData data)
public void setDetector(Detector det)
Processor
setDetector in interface Processorpublic void beforeFirstEvent()
public void afterLastEvent()
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 setEventPrefix(java.lang.String prefix)
public java.lang.String getEventPrefix()
public void process(LCDEvent event)
Processor
process in interface Processorevent - The event to processpublic void start()
Processor
start in interface Processorpublic void stop()
Processor
stop in interface Processorpublic void setContext(ProcessorContext value)
Processor
setContext in interface Processorvalue - the new ProcessorContextpublic void clearContext()
Processor
clearContext in interface Processorpublic java.lang.String getName()
Processor
getName in interface Processor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||