1 #ifndef __JTRIGGER__JSUPERFRAME2D__
2 #define __JTRIGGER__JSUPERFRAME2D__
18 namespace JPP {
using namespace JTRIGGER; }
39 template<
class JElement_t>
59 std::vector<
JFrame<JElement_t> >()
98 (*this)[i->getPMT()].push_back(*i);
102 (*this)[i].putEndMarker();
138 for (
iterator i = this->begin(); i != this->end(); ++i) {
139 i->applyHighRateVeto(rate_Hz);
154 template<
class JElement_t>
JSuperFrame2D & operator()(const JDAQSuperFrame &input, const JModule &module)
Process DAQ super frame.
int getModuleID() const
Get module identifier.
Data structure for a composite optical module.
static JSuperFrame2D< JElement_t > demultiplex
Demultiplexer.
JFrame< JElement_t > frame_type
const JCalibration & getCalibration() const
Get calibration.
void setAxis(const JAxis3D &axis)
Set axis.
std::vector< frame_type >::reverse_iterator reverse_iterator
std::vector< frame_type >::const_iterator const_iterator
void setPMTIdentifier(const JDAQPMTIdentifier &pmt)
Set PMT identifier.
const_iterator begin() const
Data structure for PMT geometry and calibration.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
void applyHighRateVeto(const double rate_Hz)
Apply high-rate veto.
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
const JPosition3D & getPosition() const
Get position.
const JPMT & getPMT(const int index) const
Get PMT.
bool has(const JPMTStatusBits_t bit) const
Test PMT status.
bool testHighRateVeto() const
Test high-rate veto status.
void setModuleIdentifier(const JDAQModuleIdentifier &module)
Set Module identifier.
void setCalibration(const JCalibration &cal)
Set calibration.
std::vector< frame_type >::iterator iterator
const JAxis3D & getAxis() const
Get axis.
2-dimensional frame with time calibrated data from one optical module.
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
KM3NeT DAQ constants, bit handling, etc.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
JSuperFrame2D()
Default constructor.
Data frame of one optical module.
void setPosition(const JVector3D &pos)
Set position.
Data structure for a composite optical module.
std::vector< frame_type >::const_reverse_iterator const_reverse_iterator
bool testFIFOStatus() const
Test FIFO status.