hep.lcd.mc.randomBkgr
Class AddRandomEndCpBkg
java.lang.Object
|
+--hep.lcd.util.driver.AbstractProcessor
|
+--hep.lcd.mc.randomBkgr.AddRandomBkg
|
+--hep.lcd.mc.randomBkgr.AddRandomEndCpBkg
- public final class AddRandomEndCpBkg
- extends AddRandomBkg
Extracts TPC Endcap hits, mix them with bacground hits and put back .
Density of background hits is defined by two parameters, passed to class constructor:
first is base density in hit/cm**2 at radius 1 cm from the beam, and second
is the power to which radius will be rased to define density at radius r.
Or it may be completely user-defined function which should implement
OneArgumentFunction interface and should be passed as argument to constructor.
- Source Code:
- AddRandomEndCpBkg.java
Method Summary |
void |
process(LCDEvent e)
Called by the driver when this processor should process an event. |
void |
start()
A default implementation of Processor.start(). |
Methods inherited from class hep.lcd.util.driver.AbstractProcessor |
clearContext, getDebugLevel, getDebugStream, getHistogramLevel, getName, getParameterFile, getParameters, getParameters, getRandom, histogram, init, setContext, setDetector, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddRandomEndCpBkg
public AddRandomEndCpBkg(double baseden,
double pow)
AddRandomEndCpBkg
public AddRandomEndCpBkg(OneArgumentFunction fun)
start
public void start()
- Description copied from class:
AbstractProcessor
- A default implementation of Processor.start(). Does nothing.
- Overrides:
start
in class AbstractProcessor
process
public void process(LCDEvent e)
- Description copied from interface:
Processor
- Called by the driver when this processor should process an event.
If the processor produces new output it should add it to the event.
- Following copied from interface:
hep.lcd.util.driver.Processor
- Parameters:
event
- The event to process
The LCD Group