Go to the documentation of this file. 1 #ifndef __JTIMESLICE__JRANDOMTIMESLICE__
2 #define __JTIMESLICE__JRANDOMTIMESLICE__
62 for (JDetector::const_iterator module = simbad->begin(); module != simbad->end(); ++module) {
64 buffer.
reset(module->size());
70 simbad(*module, buffer, *(this->rbegin()));
77 catch(
const std::exception& error) {};
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
JRandomTimeslice(const JDAQChronometer &chronometer, const JDetectorSimulator &simbad)
Constructor.
Data structure for PMT data corresponding to a detector module.
int getFrameIndex() const
Get frame index.
Auxiliary class for time slice data.
double getFrameTime()
Get frame time duration.
JRandomTimeslice()
Default constructor.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
bool hasPMTSimulator() const
Check availability of PMT simulator.
Timeslice with random data.
double getTimeSinceRTS(const int frame_index)
Get time in ns since last RTS for a given frame index.
KM3NeT DAQ data structures and auxiliaries.
void applyHighRateVeto(const JPMTDefaultSimulatorInterface &pmtSimulator)
Apply high-rate veto.
Data frame of one optical module.
bool hasK40Simulator() const
Check availability of K40 simulator.
const JPMTSimulator & getPMTSimulator() const
Get PMT simulator.
virtual void generateHits(const JModule &module, const JTimeRange &period, JModuleData &output) const
Generate hits.
void reset(size_t size)
Reset buffers.
bool hasCLBSimulator() const
Check availability of CLB simulator.