1 #ifndef __JDETECTOR__JCLBDEFAULTSIMULATORINTERFACE__
2 #define __JDETECTOR__JCLBDEFAULTSIMULATORINTERFACE__
16 namespace JDETECTOR {}
17 namespace JPP {
using namespace JDETECTOR; }
138 for (
JPMT_t pmt = 0; pmt != (
JPMT_t) input.size(); ++pmt) {
148 for ( ; hit != in.end() && hit->t_ns < TMIN; ++hit) {}
150 for ( ; hit != in.end() && hit->t_ns < TMAX; ++hit) {
152 double t1 = hit->t_ns;
153 double tot = hit->tot_ns;
Interface to mimic hit ordering effects due to state machine inside CLB.
unsigned int JTDC_t
leading edge [ns]
virtual bool maybeSwapped(const JDAQHit &first, const JDAQHit &second) const
Test whether two consecutive hits may be swapped.
std::vector< JDAQHit > buffer
The template JSinglePointer class can be used to hold a pointer to an object.
unsigned char JTOT_t
time over threshold [ns]
virtual ~JStateMachine()
Virtual destructor.
JLANG::JSinglePointer< JTDC > TDC
JLANG::JSinglePointer< JStateMachine > state_machine
JDAQFrame & add(const JDAQFrame &frame)
Add data.
virtual JDAQHit makeHit(const JPMT_t pmt, const double t_ns, const JTOT_t tot_ns) const
Make DAQ hit.
JCLBDefaultSimulatorInterface(JTDC *__TDC, JStateMachine *__state_machine)
Constructor.
double getRTS()
Get TDC dynamic range.
Template data structure for PMT I/O.
virtual void processData(const JCLBInput &input, JDAQFrame &output) const
Process data.
std::vector< JElement_t >::const_iterator const_iterator
static JTOT_t getMaximalToT()
Get maximal pulse length of time-over-threshold measurement.
Interface for CLB simulation.
unsigned char JPMT_t
PMT channel in FPGA.
virtual ~JTDC()
Virtual destructor.
static JTOT_t getMaximalToT()
Get maximal time-over-threshold.
static double getMinimalToT()
Get minimal pulse length of time-over-threshold measurement.