|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hep.lcd.util.aida.HistogramManager | +--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
,
hep.lcd.recon.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()
Called after the last event is handled. |
void |
beforeFirstEvent()
Called before the first event is handled. |
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(hep.lcd.event.LCDEvent event)
Called by the driver when this processor should process an event. |
void |
processEvent(EventData data)
When implementing this method, use the given EventData object to access data for an event and use the data appropriately. |
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(hep.lcd.geometry.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, sendMessage |
Methods inherited from class hep.lcd.util.aida.HistogramManager |
analysisFactory, cloud1D, cloud1D, cloud2D, cloud2D, cloud3D, cloud3D, histogram1D, histogram1D, histogram2D, histogram2D, histogram3D, histogram3D, histogramFactory, profile1D, profile1D, profile2D, profile2D, tree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hep.lcd.util.aida.IHistogramManager |
analysisFactory, cloud1D, cloud1D, cloud2D, cloud2D, cloud3D, cloud3D, histogram1D, histogram1D, histogram2D, histogram2D, histogram3D, histogram3D, histogramFactory, profile1D, profile1D, profile2D, profile2D, tree |
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)
EventAnalyzer
processEvent
in class EventAnalyzer
public void setDetector(hep.lcd.geometry.Detector det)
Processor
setDetector
in interface Processor
public void beforeFirstEvent()
EventHandler
beforeFirstEvent
in class EventHandler
public void afterLastEvent()
EventHandler
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 setEventPrefix(java.lang.String prefix)
public java.lang.String getEventPrefix()
public void process(hep.lcd.event.LCDEvent event)
Processor
process
in interface 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
value
- the new ProcessorContextpublic void clearContext()
Processor
clearContext
in interface Processor
public 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 |