Jpp
|
Default CLB simulation. More...
#include <JCLBDefaultSimulatorInterface.hh>
Classes | |
class | JStateMachine |
Interface to mimic hit ordering effects due to state machine inside CLB. More... | |
class | JTDC |
Interface for TDC. More... | |
Public Member Functions | |
JCLBDefaultSimulatorInterface (JTDC *__TDC, JStateMachine *__state_machine) | |
Constructor. More... | |
virtual void | processData (const JCLBInput &input, JDAQFrame &output) const |
Process data. More... | |
Static Public Member Functions | |
static JTOT_t | getMaximalToT () |
Get maximal pulse length of time-over-threshold measurement. More... | |
static double | getMinimalToT () |
Get minimal pulse length of time-over-threshold measurement. More... | |
Protected Types | |
typedef JDAQHit::JPMT_t | JPMT_t |
typedef JDAQHit::JTDC_t | JTDC_t |
typedef JDAQHit::JTOT_t | JTOT_t |
Private Attributes | |
JLANG::JSinglePointer< JTDC > | TDC |
JLANG::JSinglePointer < JStateMachine > | state_machine |
std::vector< JDAQHit > | buffer |
Default CLB simulation.
This class provides for a default implementation of the JCLBSimulator interface which is based on a simulation of the TDC and the state machine inside the CLB. In this, the number of hits may actually change due to the dynamic range of the TDC (loss of hits) and the dynamic range of the time-over-threshold (gain of hits). The nested class JStateMachine constitutes a user interface for the simulation of the state machine through method JStateMachine::maybeSwapped(). With the default implementation, the overall time ordering if hits is maintained. For a realistic simulation of the CLB, a pointer to an implementation of this interface should be provided.
Definition at line 40 of file JCLBDefaultSimulatorInterface.hh.
|
protected |
Definition at line 45 of file JCLBDefaultSimulatorInterface.hh.
|
protected |
Definition at line 46 of file JCLBDefaultSimulatorInterface.hh.
|
protected |
Definition at line 47 of file JCLBDefaultSimulatorInterface.hh.
|
inline |
Constructor.
N.B: This class owns the object pointed to using JSinglePointer<>.
__TDC | pointer TDC simulator |
__state_machine | pointer state machine |
Definition at line 113 of file JCLBDefaultSimulatorInterface.hh.
|
inlinevirtual |
Process data.
input | PMT data |
output | CLB data |
Implements JDETECTOR::JCLBSimulator.
Definition at line 126 of file JCLBDefaultSimulatorInterface.hh.
|
inlinestatic |
Get maximal pulse length of time-over-threshold measurement.
Definition at line 196 of file JCLBDefaultSimulatorInterface.hh.
|
inlinestatic |
Get minimal pulse length of time-over-threshold measurement.
Definition at line 207 of file JCLBDefaultSimulatorInterface.hh.
|
private |
Definition at line 213 of file JCLBDefaultSimulatorInterface.hh.
|
private |
Definition at line 214 of file JCLBDefaultSimulatorInterface.hh.
|
mutableprivate |
Definition at line 215 of file JCLBDefaultSimulatorInterface.hh.