Go to the documentation of this file. 1 #ifndef __JDETECTOR__JCLBDEFAULTSIMULATORINTERFACE__
2 #define __JDETECTOR__JCLBDEFAULTSIMULATORINTERFACE__
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;
virtual JDAQHit makeHit(const JPMT_t pmt, const double t_ns, const JTOT_t tot_ns) const
Make DAQ hit.
Interface to mimic hit ordering effects due to state machine inside CLB.
The template JSinglePointer class can be used to hold a pointer to an object.
static double getMinimalToT()
Get minimal pulse length of time-over-threshold measurement.
double getRTS()
Get TDC dynamic range.
virtual ~JTDC()
Virtual destructor.
JDAQFrame & add(const JDAQFrame &frame)
Add data.
virtual void processData(const JCLBInput &input, JDAQFrame &output) const
Process data.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
std::vector< JElement_t >::const_iterator const_iterator
virtual ~JStateMachine()
Virtual destructor.
unsigned char JPMT_t
PMT channel in FPGA.
static JTOT_t getMaximalToT()
Get maximal pulse length of time-over-threshold measurement.
std::vector< JDAQHit > buffer
Interface for CLB simulation.
static JTOT_t getMaximalToT()
Get maximal time-over-threshold.
JCLBDefaultSimulatorInterface(JTDC *__TDC, JStateMachine *__state_machine)
Constructor.
JLANG::JSinglePointer< JTDC > TDC
virtual bool maybeSwapped(const JDAQHit &first, const JDAQHit &second) const
Test whether two consecutive hits may be swapped.
unsigned int JTDC_t
leading edge [ns]
Template data structure for PMT I/O.
JLANG::JSinglePointer< JStateMachine > state_machine
unsigned char JTOT_t
time over threshold [ns]
Auxiliary classes and methods for detector calibration.