1#ifndef __JTRIGGER__JTRIGGERTOOLKIT__
2#define __JTRIGGER__JTRIGGERTOOLKIT__
156 double rate_Hz = frame.
getRate(pmt, factor);
164 rate_Hz *= (double) (n2 + 1) / (double) n1;
Data structure for optical module.
Data structure for a composite optical module.
const JPMT & getPMT(const int index) const
Get PMT.
double DMax_m
maximal distance between PMTs [m]
Data structure for all trigger parameters.
double TMaxEvent_ns
maximal time before and after event for snapshot
bool testFIFOStatus() const
Test FIFO status.
int getUDPNumberOfReceivedPackets() const
Get number of received UDP packets.
bool hasUDPTrailer() const
Get UDP trailer status.
bool testHighRateVeto() const
Test high-rate veto status.
int getUDPMaximalSequenceNumber() const
Get maximal sequence number of UDP packet.
Data storage class for rate measurements of all PMTs in one module.
double getRate(const int tdc, const double factor=1.0) const
Get count rate.
JTOOLS::JRange< double > JTimeRange
Type definition for time range (unit [ns]).
const double getInverseSpeedOfLight()
Get inverse speed of light.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary classes and methods for triggering.
bool getDAQStatus(const JDAQFrameStatus &frame, const JStatus &status)
Test status of DAQ.
double getRate(const JDAQSummaryFrame &frame, const int pmt, const double factor=1.0)
Get corrected rate of PMT.
JTimeRange getTimeRange(const JEvent &event)
Get time range (i.e. earlist and latest hit time) of triggered event.
bool getPMTStatus(const JStatus &status)
Test status of PMT.
static const int UDP_COUNTER_DISABLE
Enable (disable) use of UDP packet counter test if this status bit is 0 (1);.
static const int UDP_TRAILER_DISABLE
Enable (disable) use of UDP packet trailer test if this status bit is 0 (1);.
static const int FIFO_FULL_DISABLE
Enable (disable) use of FIFO (almost) full test if this status bit is 0 (1);.
static const int HIGH_RATE_VETO_DISABLE
Enable (disable) use of high-rate veto test if this status bit is 0 (1);.
static const int PMT_DISABLE
KM3NeT Data Definitions v3.5.1-1-gd514d72 https://git.km3net.de/common/km3net-dataformat.
Auxiliary class for handling status.
bool has(const int bit) const
Test PMT status.