1 #ifndef __JTRIGGER__JTRIGGERTOOLKIT__
2 #define __JTRIGGER__JTRIGGERTOOLKIT__
19 namespace JPP {
using namespace JTRIGGER; }
155 double rate_Hz = frame.
getRate(pmt);
163 rate_Hz *= (double) (n2 + 1) / (double) n1;
Data structure for all trigger parameters.
double getRate(const int tdc, const double factor=1.0) const
Get count rate.
double DMax_m
maximal distance between PMTs [m]
Data structure for a composite optical module.
bool hasUDPTrailer() const
Get UDP trailer status.
Enable (disable) use of this PMT if this status bit is 0 (1);.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
Auxiliary class for controlling PMT status.
int getUDPNumberOfReceivedPackets() const
Get number of received UDP packets.
esac $JPP_DIR examples JDetector JTransitTime o $OUTPUT_FILE n N $NPE T $TTS_NS d $DEBUG for HISTOGRAM in tts tt2 pmt
JTimeRange getTimeRange(const Evt &event)
Get time range (i.e. time between earliest and latest hit) of Monte Carlo event.
double TMaxEvent_ns
maximal time before and after event for snapshot
int getUDPMaximalSequenceNumber() const
Get maximal sequence number of UDP packet.
double getRate(const JDAQSummaryFrame &frame, const int pmt, const double factor=1.0)
Get corrected rate of PMT.
Data storage class for rate measurements of all PMTs in one module.
const JPMT & getPMT(const int index) const
Get PMT.
bool testHighRateVeto() const
Test high-rate veto status.
bool getPMTStatus(const JStatus &status)
Test status of PMT.
Enable (disable) use of FIFO (almost) full test if this status bit is 0 (1);.
Enable (disable) use of UDP packet trailer test if this status bit is 0 (1);.
bool getDAQStatus(const JDAQFrameStatus &frame, const JStatus &status)
Test status of DAQ.
bool has(const JPMTStatusBits_t bit) const
Test PMT status.
Enable (disable) use of high-rate veto test if this status bit is 0 (1);.
Enable (disable) use of UDP packet counter test if this status bit is 0 (1);.
Data structure for a composite optical module.
bool testFIFOStatus() const
Test FIFO status.