Jpp  16.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions | Variables
KM3NETDAQ Namespace Reference

KM3NeT DAQ data structures and auxiliaries. More...

Classes

class  DataQueue
 
struct  JDAQEvaluator
 Auxiliary class to determine value of DAQ objects. More...
 
class  JDataFilter
 Main class for real-time filtering of data. More...
 
class  JSource
 Data structure for configuration of JDOMSimulator. More...
 
class  JTarget
 Data structure for configuration of JDataFilter. More...
 
class  JDOMSimulator
 Runcontrol client to simulate DOM. More...
 
class  JDataWriter
 Runcontrol client to write data to disk. More...
 
class  JEventGenerator
 Runcontrol client to simulate data filter(s). More...
 
class  JClient
 Client data structure. More...
 
class  JClientList
 List of clients. More...
 
struct  JDAQClient_t
 Auxiliary data structure for DAQ client data. More...
 
class  JDAQClient
 Control unit client base class. More...
 
class  JDAQDriver
 Simple driver for run control clients. More...
 
class  JEventTable
 Event table. More...
 
struct  JEvent_t
 Auxiliary class for handling event name and optional number. More...
 
struct  JDAQRun
 Simple data structure for DAQ run. More...
 
class  JDAQProcess
 Auxiliary class for itemization of process list. More...
 
struct  JSummaryslice
 Auxiliary class to create summary data. More...
 
struct  JEventTimeslice
 Timeslice with Monte Carlo event. More...
 
struct  JRandomTimeslice
 Timeslice with random data. More...
 
struct  JTimesliceL0
 Base class class for generation of time slice data. More...
 
class  MonitorRouter
 
struct  JBit
 Auxiliary data structure for single bit. More...
 
struct  JBits
 Auxiliary data structure for range of bits. More...
 
class  JDAQAbstractPreamble
 Simple data structure for the DAQ preamble required for a correct calculation of the object size for binary I/O. More...
 
class  JDAQChronometer
 DAQ chronometer. More...
 
class  JDAQClock
 Auxiliary class to set DAQ system clock parameters. More...
 
struct  JDAQType
 Auxiliary class for a DAQ type holder. More...
 
class  JDAQEvent
 DAQ Event. More...
 
class  JDAQEventHeader
 JDAQ event header. More...
 
class  JDAQException
 General exception. More...
 
class  JDAQFrameSubset
 Subset of data frame. More...
 
class  JDAQFrame
 Data frame. More...
 
class  JDAQFrameStatus
 DAQ frame status. More...
 
class  JDAQHeader
 DAQ header. More...
 
class  JDAQHit
 Hit data structure. More...
 
class  JDAQKeyHit
 DAQ key hit. More...
 
class  JDAQModuleIdentifier
 Module identifier. More...
 
struct  JDAQModuleComparator
 Auxiliary class to compare modules. More...
 
class  JDAQPMTIdentifier
 PMT identifier. More...
 
class  JDAQPreamble
 DAQ preamble. More...
 
class  JDAQRate
 Data storage class for rate measurement of one PMT. More...
 
class  JDAQSummaryFrame
 Data storage class for rate measurements of all PMTs in one module. More...
 
class  JDAQSummaryslice
 Data summary slice. More...
 
class  JDAQSummarysliceHeader
 JDAQ summaryslice header. More...
 
class  JDAQSuperFrame
 Data frame of one optical module. More...
 
class  JDAQSuperFrameHeader
 DAQ super frame header. More...
 
class  JDAQTimeslice
 Data time slice. More...
 
struct  JDAQTimesliceL0
 Timeslice data structure for L0 data. More...
 
struct  JDAQTimesliceL1
 Timeslice data structure for L1 data. More...
 
struct  JDAQTimesliceL2
 Timeslice data structure for L2 data. More...
 
struct  JDAQTimesliceSN
 Timeslice data structure for SN data. More...
 
class  JDAQTimesliceHeader
 JDAQ timeslice header. More...
 
class  JDAQTriggerCounter
 Auxiliary class to count triggers. More...
 
class  JDAQTriggeredHit
 DAQ triggered hit. More...
 
class  JDAQTriggerMask
 Auxiliary class for trigger mask. More...
 
class  JDAQUTCExtended
 Data structure for UTC time. More...
 

Typedefs

typedef
JDAQStateMachine::ev_daq_event 
JDAQEvent_t
 Type definition of a DAQ event. More...
 
typedef JDAQKeyHit JDAQSnapshotHit
 
typedef unsigned long long int JTriggerCounter_t
 Type definition of trigger counter. More...
 
typedef unsigned long long int JTriggerMask_t
 Type definition of trigger mask. More...
 

Functions

template<>
size_t getSizeof< JDAQChronometer > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQChronometer &chronometer)
 Read DAQ chronometer from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQChronometer &chronometer)
 Write DAQ chronometer to output. More...
 
template<>
size_t getSizeof< JDAQEventHeader > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQEventHeader &header)
 Read DAQ event header from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQEventHeader &header)
 Write DAQ event header to output. More...
 
size_t getSizeof (const JDAQEvent &object)
 Get size of object. More...
 
JReaderoperator>> (JReader &in, JDAQEvent &object)
 Read DAQ event from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQEvent &object)
 Write DAQ event to output. More...
 
size_t getSizeof (const JDAQFrame &object)
 Get size of object. More...
 
JReaderoperator>> (JReader &in, JDAQFrame &frame)
 Read DAQ frame from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQFrame &frame)
 Write DAQ frame to output. More...
 
template<>
size_t getSizeof< JDAQFrameStatus > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQFrameStatus &status)
 Read DAQ frame status from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQFrameStatus &status)
 Write DAQ frame status to output. More...
 
template<>
size_t getSizeof< JDAQHeader > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQHeader &header)
 Read DAQ header from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQHeader &header)
 Write DAQ header to output. More...
 
template<>
size_t getSizeof< JDAQHit > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQHit &hit)
 Read DAQ hit from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQHit &hit)
 Write DAQ hit to output. More...
 
template<>
size_t getSizeof< JDAQKeyHit > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQKeyHit &hit)
 Read JDAQKeyHit from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQKeyHit &hit)
 Write JDAQKeyHit to output. More...
 
template<>
size_t getSizeof< JDAQModuleIdentifier > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQModuleIdentifier &module)
 Read module identifier from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQModuleIdentifier &module)
 Write module identifier to output. More...
 
template<>
size_t getSizeof< JDAQPMTIdentifier > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQPMTIdentifier &pmt)
 Read PMT identifier from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQPMTIdentifier &pmt)
 Write PMT identifier to output. More...
 
template<>
size_t getSizeof< JDAQPreamble > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQPreamble &preamble)
 Read DAQ preamble from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQPreamble &preamble)
 Write DAQ preamble to output. More...
 
template<class JElement_t , class JAllocator_t >
size_t getSizeof (const std::vector< JElement_t, JAllocator_t > &object)
 Get size of object. More...
 
template<>
size_t getSizeof< JDAQSummaryFrame > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQSummaryFrame &summary)
 Read DAQ summary frame from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQSummaryFrame &summary)
 Write DAQ summary frame to output. More...
 
template<>
size_t getSizeof< JDAQSummarysliceHeader > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQSummarysliceHeader &header)
 Read JDAQ summary slice header from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQSummarysliceHeader &header)
 Write JDAQ summary slice header to output. More...
 
size_t getSizeof (const JDAQSummaryslice &object)
 Get size of object. More...
 
JReaderoperator>> (JReader &in, JDAQSummaryslice &object)
 Read DAQ summary slice from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQSummaryslice &object)
 Write DAQ summary slice to output. More...
 
template<>
size_t getSizeof< JDAQSuperFrameHeader > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQSuperFrameHeader &header)
 Read DAQ super frame header from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQSuperFrameHeader &header)
 Write DAQ super frame header to output. More...
 
size_t getSizeof (const JDAQSuperFrame &object)
 Get size of object. More...
 
JReaderoperator>> (JReader &in, JDAQSuperFrame &object)
 Read JDAQ super frame from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQSuperFrame &object)
 Write JDAQSuperFrame to output. More...
 
void randomize (JDAQChronometer *p)
 Randomize chronometer. More...
 
void randomize (JDAQHit *p)
 Randomize hit. More...
 
void randomize (JDAQTriggerMask *p)
 Randomize trigger mask. More...
 
void randomize (JDAQEvent *p)
 Randomize event. More...
 
void randomize (JDAQFrameStatus *p)
 Randomize frame status. More...
 
void randomize (JDAQSummaryFrame *p)
 Randomize summary frame. More...
 
void randomize (JDAQSummaryslice *p)
 Randomize summary slice. More...
 
void randomize (JDAQSuperFrame *p)
 Randomize timeslice. More...
 
void randomize (JDAQTimeslice *p)
 Randomize timeslice. More...
 
template<>
size_t getSizeof< JDAQTimesliceHeader > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQTimesliceHeader &header)
 Read JDAQ time slice header from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQTimesliceHeader &header)
 Write JDAQ time slice header to output. More...
 
size_t getSizeof (const JDAQTimeslice &object)
 Get size of object. More...
 
JReaderoperator>> (JReader &in, JDAQTimeslice &object)
 Read DAQ time slice from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQTimeslice &object)
 Write DAQ time slice to output. More...
 
JWriteroperator<< (JWriter &out, const JDAQTimesliceL0 &object)
 Write DAQ time slice to output. More...
 
JWriteroperator<< (JWriter &out, const JDAQTimesliceL1 &object)
 Write DAQ time slice to output. More...
 
JWriteroperator<< (JWriter &out, const JDAQTimesliceL2 &object)
 Write DAQ time slice to output. More...
 
JWriteroperator<< (JWriter &out, const JDAQTimesliceSN &object)
 Write DAQ time slice to output. More...
 
JDAQUTCExtended getDAQUTCExtended (const TTimeStamp &t0, const double t1=0.0)
 Get DAQ UTC time. More...
 
TTimeStamp getTimeStamp (const JDAQUTCExtended &utc, const double t1=0.0)
 Get time stamp. More...
 
template<>
size_t getSizeof< JDAQTriggerCounter > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQTriggerCounter &counter)
 Read DAQ trigger counter from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQTriggerCounter &counter)
 Write JDAQTriggerCounter to output. More...
 
template<>
size_t getSizeof< JDAQTriggeredHit > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQTriggeredHit &hit)
 Read DAQ triggered hit from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQTriggeredHit &hit)
 Write DAQ triggered hit to output. More...
 
template<>
size_t getSizeof< JDAQTriggerMask > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQTriggerMask &mask)
 Read DAQ trigger mask from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQTriggerMask &mask)
 Write DAQ trigger mask to output. More...
 
template<>
size_t getSizeof< JDAQUTCExtended > ()
 Get size of type. More...
 
JReaderoperator>> (JReader &in, JDAQUTCExtended &utc)
 Read UTC from input. More...
 
JWriteroperator<< (JWriter &out, const JDAQUTCExtended &utc)
 Write UTC to output. More...
 
size_t getMaximalNumberOfHits ()
 Get maximal number of hits from one PMT within data frame. More...
 
double getMaximalTime (const double R_Hz)
 Get maximal time for given rate. More...
 
JTreeParameters getTreeParameters (const JType< JDAQTimeslice > &type)
 
JTreeParameters getTreeParameters (const JType< JDAQTimesliceL0 > &type)
 
JTreeParameters getTreeParameters (const JType< JDAQTimesliceL1 > &type)
 
JTreeParameters getTreeParameters (const JType< JDAQTimesliceL2 > &type)
 
JTreeParameters getTreeParameters (const JType< JDAQTimesliceSN > &type)
 
JTreeParameters getTreeParameters (const JType< JDAQEvent > &type)
 
JTreeParameters getTreeParameters (const JType< JDAQSummaryslice > &type)
 
JSubscriptionList getSubscription (const JEventTable &event_table)
 Convert event table to ControlHost subscription. More...
 
char getWildCard ()
 Get the wild card. More...
 
char getEventnameDelimeter ()
 Get the event name delimeter. More...
 
char getTokenDelimeter ()
 Get the token delimeter for command messages. More...
 
std::string getProcessName (const std::string &name, const std::string &process)
 Get process name of run control client. More...
 
std::string getFullName (const std::string &hostname, const std::string &name)
 Get full name of run control client. More...
 
std::string getFullName (const std::string &buffer)
 Get full name of run control client. More...
 
JTag getUniqueTag (const std::string &hostname, const std::string &name)
 Get unique tag of run control client. More...
 
std::string getStateName (const std::string &name)
 Get name of state. More...
 
std::ostream & operator<< (std::ostream &out, const JDAQChronometer &chronometer)
 Print DAQ chronometer. More...
 
double getTimeOfRTS (const JDAQChronometer &chronometer)
 Get time of last RTS in ns since start of run for a given chronometer. More...
 
bool operator== (const JDAQChronometer &first, const JDAQChronometer &second)
 Equal operator for DAQ chronometers. More...
 
bool operator!= (const JDAQChronometer &first, const JDAQChronometer &second)
 Not-equal operator for DAQ chronometers. More...
 
bool operator== (const JDAQClock &first, const JDAQClock &second)
 Equal operator for JDAQClock. More...
 
double getFrameTime ()
 Get frame time duration. More...
 
double getRTS ()
 Get TDC dynamic range. More...
 
double getTimeOfFrame (const int frame_index)
 Get start time of frame in ns since start of run for a given frame index. More...
 
double getTimeOfFrame (const unsigned int frame_index)
 Get start time of frame in ns since start of run for a given frame index. More...
 
double getTimeOfRTS (const double t_ns)
 Get time of last RTS in ns since start of run for a given time. More...
 
double getTimeOfRTS (const int frame_index)
 Get time of last RTS in ns since start of run for a given frame index. More...
 
double getTimeOfRTS (const unsigned int frame_index)
 Get time of last RTS in ns since start of run for a given frame index. More...
 
int getFrameIndex (const double t_ns)
 Get frame index for a given time in ns. More...
 
double getTimeSinceRTS (const int frame_index)
 Get time in ns since last RTS for a given frame index. More...
 
double getTimeSinceRTS (const unsigned int frame_index)
 Get time in ns since last RTS for a given frame index. More...
 
double getTimeSinceRTS (const double &t_ns)
 Get time in ns since last RTS for a given time in ns. More...
 
template<class T >
int getDataType ()
 Template definition for method returning data type. More...
 
template<class T >
int getDataType (const JDAQType< T > &type)
 Argument definition for method returning data type. More...
 
int getDataType (const JDAQType< JDAQSuperFrame > &)
 
int getDataType (const JDAQType< JDAQSummaryFrame > &)
 
int getDataType (const JDAQType< JDAQTimeslice > &)
 
int getDataType (const JDAQType< JDAQTimesliceL0 > &)
 
int getDataType (const JDAQType< JDAQTimesliceL1 > &)
 
int getDataType (const JDAQType< JDAQTimesliceL2 > &)
 
int getDataType (const JDAQType< JDAQTimesliceSN > &)
 
int getDataType (const JDAQType< JDAQSummaryslice > &)
 
int getDataType (const JDAQType< JDAQEvent > &)
 
bool operator== (const JDAQEvent &first, const JDAQEvent &second)
 Equal operator for DAQ events. More...
 
bool operator!= (const JDAQEvent &first, const JDAQEvent &second)
 Not-equal operator for DAQ events. More...
 
std::ostream & operator<< (std::ostream &out, const JDAQEvent &event)
 Print DAQ Event. More...
 
bool operator== (const JDAQEventHeader &first, const JDAQEventHeader &second)
 Equal operator for DAQ event headers. More...
 
bool operator!= (const JDAQEventHeader &first, const JDAQEventHeader &second)
 Not-equal operator for DAQ event headers. More...
 
bool operator== (const JDAQFrame &first, const JDAQFrame &second)
 Equal operator for DAQ frames. More...
 
bool operator!= (const JDAQFrame &first, const JDAQFrame &second)
 Not-equal operator for DAQ frames. More...
 
bool operator== (const JDAQFrameStatus &first, const JDAQFrameStatus &second)
 Equal operator for DAQ frame status. More...
 
bool operator!= (const JDAQFrameStatus &first, const JDAQFrameStatus &second)
 Not-equal operator for DAQ frame status. More...
 
bool operator== (const JDAQHeader &first, const JDAQHeader &second)
 Equal operator for DAQ headers. More...
 
bool operator!= (const JDAQHeader &first, const JDAQHeader &second)
 Not-equal operator for DAQ headers. More...
 
bool operator< (const JDAQHit &first, const JDAQHit &second)
 Less than operator for DAQ hits. More...
 
bool operator== (const JDAQHit &first, const JDAQHit &second)
 Equal operator for DAQ hits. More...
 
bool operator!= (const JDAQHit &first, const JDAQHit &second)
 Not-equal operator for DAQ hits. More...
 
bool operator< (const JDAQKeyHit &first, const JDAQKeyHit &second)
 Less than operator for DAQ hits. More...
 
bool operator== (const JDAQKeyHit &first, const JDAQKeyHit &second)
 Equal operator for DAQ hits. More...
 
bool operator!= (const JDAQKeyHit &first, const JDAQKeyHit &second)
 Not-equal operator for DAQ hits. More...
 
bool operator== (const JDAQModuleIdentifier &first, const JDAQModuleIdentifier &second)
 Equal operator. More...
 
bool operator!= (const JDAQModuleIdentifier &first, const JDAQModuleIdentifier &second)
 Not equal operator. More...
 
bool operator== (const JDAQModuleIdentifier &module, const int id)
 Equal operator. More...
 
bool operator!= (const JDAQModuleIdentifier &module, const int id)
 Not equal operator. More...
 
bool operator< (const JDAQModuleIdentifier &first, const JDAQModuleIdentifier &second)
 Less than operator. More...
 
bool operator< (const JDAQModuleIdentifier &module, const int id)
 Less than operator. More...
 
bool operator< (const JDAQPMTIdentifier &first, const JDAQPMTIdentifier &second)
 Less than operator for PMT identifiers. More...
 
bool operator== (const JDAQPMTIdentifier &first, const JDAQPMTIdentifier &second)
 Equal operator for PMT identifiers. More...
 
bool operator!= (const JDAQPMTIdentifier &first, const JDAQPMTIdentifier &second)
 Not-equal operator for PMT identifiers. More...
 
bool & getDAQLongprint ()
 Get DAQ print option. More...
 
void setDAQLongprint (const bool option)
 Set DAQ print option. More...
 
template<class T >
size_t getSizeof ()
 Definition of method to get size of data type. More...
 
bool operator== (const JDAQRate &first, const JDAQRate &second)
 Equal operator for DAQ rates. More...
 
bool operator!= (const JDAQRate &first, const JDAQRate &second)
 Not-equal operator for DAQ rates. More...
 
bool operator== (const JDAQSummaryFrame &first, const JDAQSummaryFrame &second)
 Equal operator for DAQ summary frames. More...
 
bool operator!= (const JDAQSummaryFrame &first, const JDAQSummaryFrame &second)
 Not-equal operator for DAQ summary frames. More...
 
std::ostream & operator<< (std::ostream &out, const KM3NETDAQ::JDAQSummaryslice &summary)
 Print DAQ summary. More...
 
bool operator== (const JDAQSummaryslice &first, const JDAQSummaryslice &second)
 Equal operator for DAQ summary slices. More...
 
bool operator!= (const JDAQSummaryslice &first, const JDAQSummaryslice &second)
 Not-equal operator for DAQ summary slices. More...
 
bool operator== (const JDAQSummarysliceHeader &first, const JDAQSummarysliceHeader &second)
 Equal operator for DAQ summary slice headers. More...
 
bool operator!= (const JDAQSummarysliceHeader &first, const JDAQSummarysliceHeader &second)
 Not-equal operator for DAQ summary slice headers. More...
 
bool operator== (const JDAQSuperFrame &first, const JDAQSuperFrame &second)
 Equal operator for DAQ super frames. More...
 
bool operator!= (const JDAQSuperFrame &first, const JDAQSuperFrame &second)
 Not-equal operator for DAQ super frames. More...
 
bool operator== (const JDAQSuperFrameHeader &first, const JDAQSuperFrameHeader &second)
 Equal operator for DAQ super frame headers. More...
 
bool operator!= (const JDAQSuperFrameHeader &first, const JDAQSuperFrameHeader &second)
 Not-equal operator for DAQ super frame headers. More...
 
bool operator== (const JDAQTimeslice &first, const JDAQTimeslice &second)
 Equal operator for DAQ time slices. More...
 
bool operator!= (const JDAQTimeslice &first, const JDAQTimeslice &second)
 Not-equal operator for DAQ time slices. More...
 
std::ostream & operator<< (std::ostream &out, const JDAQTimeslice &timeslice)
 Print DAQ Timeslice. More...
 
bool operator== (const JDAQTimesliceHeader &first, const JDAQTimesliceHeader &second)
 Equal operator for DAQ time slice headers. More...
 
bool operator!= (const JDAQTimesliceHeader &first, const JDAQTimesliceHeader &second)
 Not-equal operator for DAQ time slice headers. More...
 
bool operator== (const JDAQTriggerCounter &first, const JDAQTriggerCounter &second)
 Equal operator for DAQ trigger counters. More...
 
bool operator!= (const JDAQTriggerCounter &first, const JDAQTriggerCounter &second)
 Not-equal operator for DAQ trigger counters. More...
 
bool operator== (const JDAQTriggeredHit &first, const JDAQTriggeredHit &second)
 Equal operator for DAQ triggered hits. More...
 
bool operator!= (const JDAQTriggeredHit &first, const JDAQTriggeredHit &second)
 Not-equal operator for DAQ triggered hits. More...
 
JTriggerMask_t getTriggerMask (const unsigned int bit)
 Convert trigger bit to trigger mask. More...
 
bool operator== (const JDAQTriggerMask &first, const JDAQTriggerMask &second)
 Equal operator for DAQ trigger masks. More...
 
bool operator!= (const JDAQTriggerMask &first, const JDAQTriggerMask &second)
 Not-equal operator for DAQ trigger masks. More...
 
bool operator< (const JDAQUTCExtended &first, const JDAQUTCExtended &second)
 Less than operator for UTC times. More...
 
bool operator== (const JDAQUTCExtended &first, const JDAQUTCExtended &second)
 Equal operator for UTC times. More...
 
bool operator!= (const JDAQUTCExtended &first, const JDAQUTCExtended &second)
 Not equal operator for UTC times. More...
 

Variables

static const JDAQEvaluator getDAQValue
 Function object for evaluation of DAQ objects. More...
 
static const std::string RUN_CONTROL_CLIENT = std::string("DAQ")
 
static const std::string JDATAQUEUE = std::string("DataQueue")
 
static const std::string JDATAFILTER = std::string("JDataFilter")
 
static const std::string JACOUSTICDATAFILTER = std::string("AcousticDataFilter")
 
static const std::string JDATAWRITER = std::string("JDataWriter")
 
static const std::string JUNIQUE_ID = std::string("uniqueID")
 
static const char WILD_CARD = '%'
 
static const char EVENTNAME_DELIMETER = ':'
 
static const std::string TOKEN_DELIMETER = std::string("#")
 
static const std::string CLIENTNAME_DELIMETER = std::string("/")
 
static const std::string FILENAME_PREFIX = std::string("%<")
 
static const std::string FILENAME_POSTFIX = std::string(">%")
 
static const JNET::JTag RC_STRT = JNET::JTag("RC_STRT")
 
static const JNET::JTag RC_CMD = JNET::JTag("RC_CMD")
 
static const JNET::JTag RC_REPLY = JNET::JTag("RC_REPLY")
 
static const JNET::JTag RC_FAIL = JNET::JTag("RC_FAIL")
 
static const JNET::JTag RC_DOMSIMULATOR = JNET::JTag("RC_DOM")
 
static const JNET::JTag RC_EVTGENERATOR = JNET::JTag("RC_EVT")
 
static const JNET::JTag RC_DWRITER = JNET::JTag("RC_DWRT")
 
static const JNET::JTag RC_LOG = JNET::JTag("RC_LOG")
 
static const JNET::JTag RC_DFILTER = JNET::JTag("RC_DFLTR")
 
static const JNET::JTag RC_DQUEUE = JNET::JTag("RC_DQUE")
 
static const JNET::JTag RC_DQUEUE_ACS = JNET::JTag("RC_DQUEA")
 
static const JNET::JTag RC_DQUEUE_OPT = JNET::JTag("RC_DQUEO")
 
static const JNET::JTag RC_MONITORING_ROUTER = JNET::JTag("RC_MROUT")
 
static const JNET::JTag RC_AFILTER = JNET::JTag("RC_AFLTR")
 
static const JNET::JTag RC_ALERT = JNET::JTag("RC_ALRT")
 
static const JNET::JTag IO_TIMESLICE = JNET::JTag("IO_TSL")
 
static const JNET::JTag IO_TIMESLICE_L0 = JNET::JTag("IO_TSL0")
 
static const JNET::JTag IO_TIMESLICE_L1 = JNET::JTag("IO_TSL1")
 
static const JNET::JTag IO_TIMESLICE_L2 = JNET::JTag("IO_TSL2")
 
static const JNET::JTag IO_TIMESLICE_SN = JNET::JTag("IO_TSSN")
 
static const JNET::JTag IO_EVENT = JNET::JTag("IO_EVT")
 
static const JNET::JTag IO_SUMMARY = JNET::JTag("IO_SUM")
 
static const JNET::JTag IO_TRIGGER_PARAMETERS = JNET::JTag("TRG_PARS")
 
static const JNET::JTag IO_MONITORING_DATA = JNET::JTag("IO_MONIT")
 
static double HIGH_RATE_VETO_HZ = 20.0e3
 High-rate veto [kHz]. More...
 
static const int NUMBER_OF_PMTS = 31
 Total number of PMTs in module. More...
 
static const JBit DAQ_WHITE_RABBIT (31)
 White Rabbit status. More...
 
static const JBits DAQ_TDC (0, 30)
 TDC high-rate veto status. More...
 
static const JBits DAQ_FIFO (0, 30)
 FIFO almost full bits. More...
 
static const JBit DAQ_UDP_TRAILER (31)
 UDP trailer. More...
 
static const JBits DAQ_UDP_RECEIVED_PACKETS (0, 15)
 Mask of UDP received packets. More...
 
static const JBits DAQ_UDP_SEQUENCE_NUMBER (16, 31)
 Mask of UDP sequence number. More...
 
static const unsigned int NUMBER_OF_TRIGGER_BITS = sizeof(JTriggerMask_t) * 8
 Number of trigger bits. More...
 
static const JDAQTriggerMask TRIGGER_MASK_ON = JDAQTriggerMask(~JTriggerMask_t(0))
 Trigger mask on;. More...
 
static const JDAQTriggerMask TRIGGER_MASK_OFF = JDAQTriggerMask( JTriggerMask_t(0))
 Trigger mask off;. More...
 

Detailed Description

KM3NeT DAQ data structures and auxiliaries.

Author
mdejong
cpellegrino
rbruijn

Typedef Documentation

Type definition of a DAQ event.

Definition at line 25 of file JEventTable.hh.

Definition at line 24 of file JDAQEvent.hh.

typedef unsigned long long int KM3NETDAQ::JTriggerCounter_t

Type definition of trigger counter.

Definition at line 17 of file JDAQTriggerCounter.hh.

typedef unsigned long long int KM3NETDAQ::JTriggerMask_t

Type definition of trigger mask.

Definition at line 21 of file JDAQTriggerMask.hh.

Function Documentation

template<>
size_t KM3NETDAQ::getSizeof< JDAQChronometer > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 21 of file JDAQChronometerIO.hh.

22  {
23  return (sizeof(JDAQChronometer::detector_id) +
24  sizeof(JDAQChronometer::run) +
25  sizeof(JDAQChronometer::frame_index) +
27  }
size_t getSizeof< JDAQUTCExtended >()
Get size of type.
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQChronometer chronometer 
)
inline

Read DAQ chronometer from input.

Parameters
inreader
chronometerDAQ chronometer
Returns
reader

Definition at line 37 of file JDAQChronometerIO.hh.

38  {
39  in >> chronometer.detector_id;
40  in >> chronometer.run;
41  in >> chronometer.frame_index;
42  in >> chronometer.timeslice_start;
43 
44  return in;
45  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQChronometer chronometer 
)
inline

Write DAQ chronometer to output.

Parameters
outwriter
chronometerDAQ chronometer
Returns
writer

Definition at line 55 of file JDAQChronometerIO.hh.

56  {
57  out << chronometer.detector_id;
58  out << chronometer.run;
59  out << chronometer.frame_index;
60  out << chronometer.timeslice_start;
61 
62  return out;
63  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQEventHeader > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 24 of file JDAQEventHeaderIO.hh.

25  {
26  return (getSizeof<JDAQHeader>() +
29  sizeof(JDAQEventHeader::overlays));
30  }
size_t getSizeof< JDAQTriggerCounter >()
Get size of type.
size_t getSizeof< JDAQHeader >()
Get size of type.
Definition: JDAQHeaderIO.hh:21
size_t getSizeof< JDAQTriggerMask >()
Get size of type.
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQEventHeader header 
)
inline

Read DAQ event header from input.

Parameters
inreader
headerDAQ event header
Returns
reader

Definition at line 40 of file JDAQEventHeaderIO.hh.

41  {
42  in >> static_cast<JDAQHeader&> (header);
43  in >> static_cast<JDAQTriggerCounter&>(header);
44  in >> static_cast<JDAQTriggerMask&> (header);
45  in >> header.overlays;
46 
47  return in;
48  }
Auxiliary class for trigger mask.
Auxiliary class to count triggers.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQEventHeader header 
)
inline

Write DAQ event header to output.

Parameters
outwriter
headerDAQ event header
Returns
writer

Definition at line 58 of file JDAQEventHeaderIO.hh.

59  {
60  out << static_cast<const JDAQHeader&> (header);
61  out << static_cast<const JDAQTriggerCounter&>(header);
62  out << static_cast<const JDAQTriggerMask&> (header);
63  out << header.overlays;
64 
65  return out;
66  }
size_t KM3NETDAQ::getSizeof ( const JDAQEvent object)
inline

Get size of object.

Parameters
objectDAQ event
Returns
number of bytes

Definition at line 26 of file JDAQEventIO.hh.

27  {
28  return (getSizeof<JDAQPreamble>() +
29  sizeof(Version_t) +
31  getSizeof(static_cast<const JDAQEvent&>(object).triggeredHits) +
32  getSizeof(static_cast<const JDAQEvent&>(object).snapshotHits));
33  }
size_t getSizeof< JDAQEventHeader >()
Get size of type.
size_t getSizeof< JDAQPreamble >()
Get size of type.
size_t getSizeof(const JDAQEvent &object)
Get size of object.
Definition: JDAQEventIO.hh:26
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQEvent object 
)
inline

Read DAQ event from input.

Parameters
inreader
objectDAQ event
Returns
reader

Definition at line 43 of file JDAQEventIO.hh.

44  {
45  Version_t version;
46 
47  in >> static_cast<JDAQPreamble&> (object);
48  in >> version;
49  in >> static_cast<JDAQEventHeader&>(object);
50  in >> object.triggeredHits;
51  in >> object.snapshotHits;
52 
53  return in;
54  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
version
Definition: JCalibratePMT.sh:7
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQEvent object 
)
inline

Write DAQ event to output.

Parameters
outwriter
objectDAQ event
Returns
writer

Definition at line 64 of file JDAQEventIO.hh.

65  {
66  out << JDAQPreamble::getDAQPreamble(object);
67  out << JDAQEvent::Class_Version();
68  out << static_cast<const JDAQEventHeader&>(object);
69  out << object.triggeredHits;
70  out << object.snapshotHits;
71 
72  return out;
73  }
size_t KM3NETDAQ::getSizeof ( const JDAQFrame object)
inline

Get size of object.

Parameters
objectDAQ frame
Returns
number of bytes

Definition at line 21 of file JDAQFrameIO.hh.

22  {
23  return sizeof(JDAQFrame::numberOfHits) + object.numberOfHits * sizeof(JDAQHit);
24  }
Hit data structure.
Definition: JDAQHit.hh:34
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQFrame frame 
)
inline

Read DAQ frame from input.

Parameters
inreader
frameDAQ frame
Returns
reader

Definition at line 34 of file JDAQFrameIO.hh.

35  {
36  frame.clear();
37 
38  int number_of_hits;
39 
40  in >> number_of_hits;
41 
42  frame.resize(number_of_hits);
43 
44  in.read((char*) frame.buffer, frame.numberOfHits * sizeof(JDAQHit));
45 
46  return in;
47  }
void clear()
Clear data.
Definition: JDAQFrame.hh:153
virtual int read(char *buffer, const int length)=0
Read byte array.
void resize(const int number_of_hits)
Resize internal buffer.
Definition: JDAQFrame.hh:272
Hit data structure.
Definition: JDAQHit.hh:34
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQFrame frame 
)
inline

Write DAQ frame to output.

Parameters
outwriter
frameDAQ frame
Returns
writer

Definition at line 57 of file JDAQFrameIO.hh.

58  {
59  out << frame.numberOfHits;
60 
61  out.write((char*) frame.buffer, frame.numberOfHits * sizeof(JDAQHit));
62 
63  return out;
64  }
virtual int write(const char *buffer, const int length)=0
Write byte array.
Hit data structure.
Definition: JDAQHit.hh:34
template<>
size_t KM3NETDAQ::getSizeof< JDAQFrameStatus > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 19 of file JDAQFrameStatusIO.hh.

20  {
21  return (sizeof(JDAQFrameStatus::daq) +
22  sizeof(JDAQFrameStatus::status) +
23  sizeof(JDAQFrameStatus::fifo) +
24  sizeof(JDAQFrameStatus::status_3) +
25  sizeof(JDAQFrameStatus::status_4));
26  }
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQFrameStatus status 
)
inline

Read DAQ frame status from input.

Parameters
inreader
statusDAQ frame status
Returns
reader

Definition at line 36 of file JDAQFrameStatusIO.hh.

37  {
38  in >> status.daq;
39  in >> status.status;
40  in >> status.fifo;
41  in >> status.status_3;
42  in >> status.status_4;
43 
44  return in;
45  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQFrameStatus status 
)
inline

Write DAQ frame status to output.

Parameters
outwriter
statusDAQ frame status
Returns
writer

Definition at line 55 of file JDAQFrameStatusIO.hh.

56  {
57  out << status.daq;
58  out << status.status;
59  out << status.fifo;
60  out << status.status_3;
61  out << status.status_4;
62 
63  return out;
64  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQHeader > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 21 of file JDAQHeaderIO.hh.

22  {
24  }
size_t getSizeof< JDAQChronometer >()
Get size of type.
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQHeader header 
)
inline

Read DAQ header from input.

Parameters
inreader
headerDAQ header
Returns
reader

Definition at line 34 of file JDAQHeaderIO.hh.

35  {
36  in >> static_cast<JDAQChronometer&>(header);
37 
38  return in;
39  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQHeader header 
)
inline

Write DAQ header to output.

Parameters
outwriter
headerDAQ Header
Returns
writer

Definition at line 49 of file JDAQHeaderIO.hh.

50  {
51  out << static_cast<const JDAQChronometer&>(header);
52 
53  return out;
54  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQHit > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 19 of file JDAQHitIO.hh.

20  {
21  return (sizeof(JDAQHit::pmt) +
22  sizeof(JDAQHit::tdc) +
23  sizeof(JDAQHit::tot));
24  }
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQHit hit 
)
inline

Read DAQ hit from input.

Parameters
inreader
hitDAQ hit
Returns
reader

Definition at line 34 of file JDAQHitIO.hh.

35  {
36  in >> hit.pmt;
37  in >> hit.tdc;
38  in >> hit.tot;
39 
40  return in;
41  }
JTOT_t tot
time over threshold [ns]
Definition: JDAQHit.hh:160
JTDC_t tdc
leading edge [ns]
Definition: JDAQHit.hh:159
JPMT_t pmt
PMT readout channel in FPGA.
Definition: JDAQHit.hh:158
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQHit hit 
)
inline

Write DAQ hit to output.

Parameters
outwriter
hitDAQ hit
Returns
writer

Definition at line 51 of file JDAQHitIO.hh.

52  {
53  out << hit.pmt;
54  out << hit.tdc;
55  out << hit.tot;
56 
57  return out;
58  }
JTOT_t tot
time over threshold [ns]
Definition: JDAQHit.hh:160
JTDC_t tdc
leading edge [ns]
Definition: JDAQHit.hh:159
JPMT_t pmt
PMT readout channel in FPGA.
Definition: JDAQHit.hh:158
template<>
size_t KM3NETDAQ::getSizeof< JDAQKeyHit > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 22 of file JDAQKeyHitIO.hh.

23  {
26  }
size_t getSizeof< JDAQHit >()
Get size of type.
Definition: JDAQHitIO.hh:19
size_t getSizeof< JDAQModuleIdentifier >()
Get size of type.
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQKeyHit hit 
)
inline

Read JDAQKeyHit from input.

Parameters
inJReader
hitJDAQKeyHit
Returns
JReader

Definition at line 36 of file JDAQKeyHitIO.hh.

37  {
38  in >> static_cast<JDAQModuleIdentifier&>(hit);
39  in >> static_cast<JDAQHit&> (hit);
40 
41  return in;
42  }
Hit data structure.
Definition: JDAQHit.hh:34
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQKeyHit hit 
)
inline

Write JDAQKeyHit to output.

Parameters
outJWriter
hitJDAQKeyHit
Returns
JWriter

Definition at line 52 of file JDAQKeyHitIO.hh.

53  {
54  out << static_cast<const JDAQModuleIdentifier&>(hit);
55  out << static_cast<const JDAQHit&> (hit);
56 
57  return out;
58  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQModuleIdentifier > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 19 of file JDAQModuleIdentifierIO.hh.

20  {
21  return sizeof(JDAQModuleIdentifier::id);
22  }
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQModuleIdentifier module 
)
inline

Read module identifier from input.

Parameters
inreader
modulemodule identifier
Returns
rader

Definition at line 32 of file JDAQModuleIdentifierIO.hh.

33  {
34  in >> module.id;
35 
36  return in;
37  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQModuleIdentifier module 
)
inline

Write module identifier to output.

Parameters
outwriter
modulemodule identifier
Returns
writer

Definition at line 47 of file JDAQModuleIdentifierIO.hh.

48  {
49  out << module.id;
50 
51  return out;
52  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQPMTIdentifier > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 21 of file JDAQPMTIdentifierIO.hh.

22  {
24  sizeof(JDAQPMTIdentifier::address));
25  }
size_t getSizeof< JDAQModuleIdentifier >()
Get size of type.
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQPMTIdentifier pmt 
)
inline

Read PMT identifier from input.

Parameters
inreader
pmtPMT identifier
Returns
reader

Definition at line 35 of file JDAQPMTIdentifierIO.hh.

36  {
37  in >> static_cast<JDAQModuleIdentifier&>(pmt);
38  in >> pmt.address;
39 
40  return in;
41  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQPMTIdentifier pmt 
)
inline

Write PMT identifier to output.

Parameters
outwriter
pmtPMT identifier
Returns
writer

Definition at line 51 of file JDAQPMTIdentifierIO.hh.

52  {
53  out << static_cast<const JDAQModuleIdentifier&>(pmt);
54  out << pmt.address;
55 
56  return out;
57  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQPreamble > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 19 of file JDAQPreambleIO.hh.

20  {
21  return (sizeof(JDAQPreamble::length) +
22  sizeof(JDAQPreamble::type));
23  }
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQPreamble preamble 
)
inline

Read DAQ preamble from input.

Note that JDAQAbstractPreamble::length is read first.

Parameters
inreader
preambleDAQ preamble
Returns
reader

Definition at line 35 of file JDAQPreambleIO.hh.

36  {
37  in >> preamble.length;
38  in >> preamble.type;
39 
40  return in;
41  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQPreamble preamble 
)
inline

Write DAQ preamble to output.

Note that JDAQPreamble::getSize() is written first.

Parameters
outwriter
preambleDAQ preamble
Returns
writer

Definition at line 53 of file JDAQPreambleIO.hh.

54  {
55  out << preamble.length;
56  out << preamble.type;
57 
58  return out;
59  }
template<class JElement_t , class JAllocator_t >
size_t KM3NETDAQ::getSizeof ( const std::vector< JElement_t, JAllocator_t > &  object)
inline

Get size of object.

Note that this method strictly applies to elements inside the given std::vector which are not containers by themselves.

Parameters
objectobject
Returns
number of bytes

Definition at line 20 of file JDAQSizeof.hh.

21  {
22  return sizeof(int) + object.size() * getSizeof<JElement_t>();
23  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQSummaryFrame > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 22 of file JDAQSummaryFrameIO.hh.

23  {
27  }
size_t getSizeof< JDAQFrameStatus >()
Get size of type.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
size_t getSizeof< JDAQModuleIdentifier >()
Get size of type.
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQSummaryFrame summary 
)
inline

Read DAQ summary frame from input.

Parameters
inreader
summaryDAQ summary frame
Returns
reader

Definition at line 37 of file JDAQSummaryFrameIO.hh.

38  {
39  in >> static_cast<JDAQModuleIdentifier&>(summary);
40  in >> static_cast<JDAQFrameStatus&> (summary);
41 
42  in.read((char*) summary.data, NUMBER_OF_PMTS * sizeof(JDAQRate::JRate_t));
43 
44  return in;
45  }
JDAQRate data[NUMBER_OF_PMTS]
virtual int read(char *buffer, const int length)=0
Read byte array.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQSummaryFrame summary 
)
inline

Write DAQ summary frame to output.

Parameters
outwriter
summaryDAQ summary frame
Returns
writer

Definition at line 55 of file JDAQSummaryFrameIO.hh.

56  {
57  out << static_cast<const JDAQModuleIdentifier&>(summary);
58  out << static_cast<const JDAQFrameStatus&> (summary);
59 
60  out.write((char*) summary.data, NUMBER_OF_PMTS * sizeof(JDAQRate::JRate_t));
61 
62  return out;
63  }
JDAQRate data[NUMBER_OF_PMTS]
virtual int write(const char *buffer, const int length)=0
Write byte array.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
template<>
size_t KM3NETDAQ::getSizeof< JDAQSummarysliceHeader > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 21 of file JDAQSummarysliceHeaderIO.hh.

22  {
23  return getSizeof<JDAQHeader>();
24  }
size_t getSizeof< JDAQHeader >()
Get size of type.
Definition: JDAQHeaderIO.hh:21
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQSummarysliceHeader header 
)
inline

Read JDAQ summary slice header from input.

Parameters
inreader
headerDAQ summary slice header
Returns
reader

Definition at line 34 of file JDAQSummarysliceHeaderIO.hh.

35  {
36  in >> static_cast<JDAQHeader&>(header);
37 
38  return in;
39  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQSummarysliceHeader header 
)
inline

Write JDAQ summary slice header to output.

Parameters
outwriter
headerDAQ summary slice header
Returns
writer

Definition at line 49 of file JDAQSummarysliceHeaderIO.hh.

50  {
51  out << static_cast<const JDAQHeader&>(header);
52 
53  return out;
54  }
size_t KM3NETDAQ::getSizeof ( const JDAQSummaryslice object)
inline

Get size of object.

Parameters
objectDAQ summary slice
Returns
number of bytes

Definition at line 25 of file JDAQSummarysliceIO.hh.

26  {
27  return (getSizeof<JDAQPreamble>() +
28  sizeof(Version_t) +
30  getSizeof(static_cast<const std::vector<JDAQSummaryFrame>&>(object)));
31  }
size_t getSizeof< JDAQSummarysliceHeader >()
Get size of type.
size_t getSizeof< JDAQPreamble >()
Get size of type.
size_t getSizeof(const JDAQEvent &object)
Get size of object.
Definition: JDAQEventIO.hh:26
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQSummaryslice object 
)
inline

Read DAQ summary slice from input.

Parameters
inreader
objectDAQ summary slice
Returns
reader

Definition at line 41 of file JDAQSummarysliceIO.hh.

42  {
43  Version_t version;
44 
45  object.clear();
46 
47  in >> static_cast<JDAQPreamble&> (object);
48  in >> version;
49  in >> static_cast<JDAQSummarysliceHeader&> (object);
50  in >> static_cast<std::vector<JDAQSummaryFrame>&>(object);
51 
52  return in;
53  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
version
Definition: JCalibratePMT.sh:7
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQSummaryslice object 
)
inline

Write DAQ summary slice to output.

Parameters
outwriter
objectDAQ summary slice
Returns
writer

Definition at line 63 of file JDAQSummarysliceIO.hh.

64  {
65  out << JDAQPreamble::getDAQPreamble(object);
66  out << JDAQSummaryslice::Class_Version();
67  out << static_cast<const JDAQSummarysliceHeader&> (object);
68  out << static_cast<const std::vector<JDAQSummaryFrame>&>(object);
69 
70  return out;
71  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQSuperFrameHeader > ( )

Get size of type.

Returns
number of bytes

Definition at line 24 of file JDAQSuperFrameHeaderIO.hh.

25  {
26  return (getSizeof<JDAQHeader>() +
29  }
size_t getSizeof< JDAQFrameStatus >()
Get size of type.
size_t getSizeof< JDAQHeader >()
Get size of type.
Definition: JDAQHeaderIO.hh:21
size_t getSizeof< JDAQModuleIdentifier >()
Get size of type.
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQSuperFrameHeader header 
)
inline

Read DAQ super frame header from input.

Parameters
inreader
headerDAQ super frame header
Returns
reader

Definition at line 39 of file JDAQSuperFrameHeaderIO.hh.

40  {
41  in >> static_cast<JDAQHeader&> (header);
42  in >> static_cast<JDAQModuleIdentifier&>(header);
43  in >> static_cast<JDAQFrameStatus&> (header);
44 
45  return in;
46  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQSuperFrameHeader header 
)
inline

Write DAQ super frame header to output.

Parameters
outwriter
headerDAQ supe frame header
Returns
writer

Definition at line 56 of file JDAQSuperFrameHeaderIO.hh.

57  {
58  out << static_cast<const JDAQHeader&> (header);
59  out << static_cast<const JDAQModuleIdentifier&>(header);
60  out << static_cast<const JDAQFrameStatus&> (header);
61 
62  return out;
63  }
size_t KM3NETDAQ::getSizeof ( const JDAQSuperFrame object)
inline

Get size of object.

Parameters
objectDAQ super frame
Returns
number of bytes

Definition at line 23 of file JDAQSuperFrameIO.hh.

24  {
25  return (getSizeof<JDAQPreamble>() +
27  getSizeof(static_cast<const JDAQFrame&>(object)));
28  }
size_t getSizeof< JDAQSuperFrameHeader >()
Get size of type.
size_t getSizeof< JDAQPreamble >()
Get size of type.
size_t getSizeof(const JDAQEvent &object)
Get size of object.
Definition: JDAQEventIO.hh:26
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQSuperFrame object 
)
inline

Read JDAQ super frame from input.

Parameters
inreader
objectDAQ super frame
Returns
reader

Definition at line 38 of file JDAQSuperFrameIO.hh.

39  {
40  in >> static_cast<JDAQPreamble&> (object);
41  in >> static_cast<JDAQSuperFrameHeader&>(object);
42  in >> static_cast<JDAQFrame&> (object);
43 
44  return in;
45  }
Data frame.
Definition: JDAQFrame.hh:64
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQSuperFrame object 
)
inline

Write JDAQSuperFrame to output.

Parameters
outwriter
objectDAQ super frame
Returns
writer

Definition at line 55 of file JDAQSuperFrameIO.hh.

56  {
57  out << JDAQPreamble::getDAQPreamble(object);
58  out << static_cast<const JDAQSuperFrameHeader&>(object);
59  out << static_cast<const JDAQFrame&> (object);
60 
61  return out;
62  }
void KM3NETDAQ::randomize ( JDAQChronometer p)
inline

Randomize chronometer.

Parameters
ppointer to valid object

detector

run

frame index

Definition at line 29 of file JDAQTestkit.hh.

30  {
31  new (p) JDAQChronometer(getRandom<int>(1, 100000), //! detector
32  getRandom<int>(1, 99999999), //! run
33  getRandom<int>(1, 99999999)); //! frame index
34  };
void KM3NETDAQ::randomize ( JDAQHit p)
inline

Randomize hit.

Parameters
ppointer to valid object

Definition at line 42 of file JDAQTestkit.hh.

43  {
44  new (p) JDAQHit(getRandom<JDAQHit::JPMT_t>(0, NUMBER_OF_PMTS),
45  getRandom<JDAQHit::JTDC_t>(0, getRTS()),
46  getRandom<JDAQHit::JTOT_t>());
47  }
Hit data structure.
Definition: JDAQHit.hh:34
double getRTS()
Get TDC dynamic range.
Definition: JDAQClock.hh:173
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
void KM3NETDAQ::randomize ( JDAQTriggerMask p)
inline

Randomize trigger mask.

Parameters
ppointer to valid object

Definition at line 55 of file JDAQTestkit.hh.

56  {
57  new (p) JDAQTriggerMask(getRandom<JTriggerMask_t>(1, 0xFFFFFFFF));
58  };
Auxiliary class for trigger mask.
void KM3NETDAQ::randomize ( JDAQEvent p)
inline

Randomize event.

Parameters
ppointer to valid object

Definition at line 66 of file JDAQTestkit.hh.

67  {
68  p->clear();
69  p->setDAQChronometer(getRandom<JDAQChronometer>());
70  p->setDAQTriggerMask(getRandom<JDAQTriggerMask>());
71 
72  for (int i = getRandom<int>(1, 1000); i != 0; --i) {
73  p->push_back(JDAQKeyHit(getRandom<int>(0, 100000),
74  getRandom<JDAQHit>()));
75  }
76 
77  for (int i = getRandom<int>(1, 10); i != 0; --i) {
78  p->push_back(JDAQTriggeredHit(getRandom<int>(0, 100000),
79  getRandom<JDAQHit>(),
80  p->getDAQTriggerMask()));
81  }
82  }
void setDAQTriggerMask(const JDAQTriggerMask &mask)
Set trigger mask.
DAQ key hit.
Definition: JDAQKeyHit.hh:19
then for NAME in JDAQPreamble JDAQChronometer JDAQModuleIdentifier JDAQPMTIdentifier JDAQFrameStatus JDAQUTCExtended JDAQTimeslice JDAQTimesliceHeader JDAQSuperFrame JDAQSuperFrameHeader JDAQHit JDAQSummaryslice JDAQSummarysliceHeader JDAQSummaryFrame JDAQEvent JDAQEventHeader JDAQTriggerCounter JDAQTriggerMask JDAQKeyHit JDAQTriggeredHit
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
void push_back(const JDAQKeyHit &hit)
Add hit.
Definition: JDAQEvent.hh:205
void clear()
Clear event.
Definition: JDAQEvent.hh:193
const JDAQTriggerMask & getDAQTriggerMask() const
Get DAQ trigger mask.
void KM3NETDAQ::randomize ( JDAQFrameStatus p)
inline

Randomize frame status.

Parameters
ppointer to valid object

Definition at line 90 of file JDAQTestkit.hh.

91  {
92  int daq = (DAQ_UDP_RECEIVED_PACKETS.write(gRandom->Integer(99)) | //
93  DAQ_UDP_SEQUENCE_NUMBER .write(gRandom->Integer(99))); // DAQ status
94  int status = DAQ_WHITE_RABBIT.write(gRandom->Rndm() < 0.5 ? 0 : 1); // TDC status
95  int fifo = DAQ_UDP_TRAILER .write(gRandom->Rndm() < 0.5 ? 0 : 1); // FIFO status
96 
97  for (size_t pmt = 0; pmt != NUMBER_OF_PMTS; ++pmt) {
98  JBit(pmt).set(status, gRandom->Rndm() < 0.5 ? 0 : 1); // high-rate veto
99  }
100 
101  new (p) JDAQFrameStatus(daq, status, fifo);
102  }
static const JBits DAQ_UDP_RECEIVED_PACKETS(0, 15)
Mask of UDP received packets.
void set(int &mask) const
Set bit in given bit mask.
Definition: JDAQ.hh:77
int write(const int value) const
Write given value as bit mask.
Definition: JDAQ.hh:115
int write(const int value) const
Write given value as bit mask.
Definition: JDAQ.hh:238
static const JBit DAQ_UDP_TRAILER(31)
UDP trailer.
Auxiliary data structure for single bit.
Definition: JDAQ.hh:36
bool write(const Vec &v, std::ostream &os)
Write a Vec(tor) to a stream.
Definition: io_ascii.hh:154
static const JBit DAQ_WHITE_RABBIT(31)
White Rabbit status.
static const JBits DAQ_UDP_SEQUENCE_NUMBER(16, 31)
Mask of UDP sequence number.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
void KM3NETDAQ::randomize ( JDAQSummaryFrame p)
inline

Randomize summary frame.

Parameters
ppointer to valid object

Definition at line 110 of file JDAQTestkit.hh.

111  {
112  p->setDAQFrameStatus (getRandom<JDAQFrameStatus>());
113  p->setModuleIdentifier(getRandom<int>(0, 100000));
114 
115  for (int i = 0; i != NUMBER_OF_PMTS; ++i) {
116  p->setRate(i, getRandom<double>(0, 1.0e6));
117  }
118  }
void setModuleIdentifier(const JDAQModuleIdentifier &module)
Set Module identifier.
void setDAQFrameStatus(const JDAQFrameStatus &status)
Set DAQ frame status.
void setRate(const int tdc, const double rate_Hz)
Set count rate.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
void KM3NETDAQ::randomize ( JDAQSummaryslice p)
inline

Randomize summary slice.

Parameters
ppointer to valid object

Definition at line 126 of file JDAQTestkit.hh.

127  {
128  p->clear();
129  p->setDAQChronometer(getRandom<JDAQChronometer>());
130 
131  for (UInt_t i = gRandom->Integer(100); i != 0; --i) {
132  p->push_back(getRandom<JDAQSummaryFrame>());
133  }
134  }
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
void KM3NETDAQ::randomize ( JDAQSuperFrame p)
inline

Randomize timeslice.

Parameters
ppointer to valid object

Definition at line 142 of file JDAQTestkit.hh.

143  {
144  p->clear();
145 
146  p->setDAQSuperFrameHeader(JDAQSuperFrameHeader(getRandom<JDAQChronometer>(),
147  getRandom<int>(0, 100000),
148  getRandom<JDAQFrameStatus>()));
149 
150  for (int i = getRandom<int>(0, 10000); i != 0; --i) {
151  p->add(getRandom<JDAQHit>());
152  }
153  }
void clear()
Clear data.
Definition: JDAQFrame.hh:153
void setDAQSuperFrameHeader(const JDAQSuperFrameHeader &header)
Set DAQ super frame header.
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module.
void KM3NETDAQ::randomize ( JDAQTimeslice p)
inline

Randomize timeslice.

Parameters
ppointer to valid object

Definition at line 161 of file JDAQTestkit.hh.

162  {
163  p->clear();
164  p->setDAQChronometer(getRandom<JDAQChronometer>());
165 
166  JDAQSuperFrame buffer(JDAQSuperFrameHeader(p->getDAQChronometer(), getRandom<int>(0, 100000)));
167 
168  for (int i = getRandom<int>(0, 10000); i != 0; --i) {
169  buffer.add(getRandom<JDAQHit>());
170  }
171 
172  p->push_back(buffer);
173  }
void clear()
Clear data.
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
void setDAQChronometer(const JDAQChronometer &chronometer)
Set DAQ chronometer.
Data frame of one optical module.
JDAQSuperFrame & add(const JDAQSuperFrame &super_frame)
Add data from same optical module.
template<>
size_t KM3NETDAQ::getSizeof< JDAQTimesliceHeader > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 21 of file JDAQTimesliceHeaderIO.hh.

22  {
23  return getSizeof<JDAQHeader>();
24  }
size_t getSizeof< JDAQHeader >()
Get size of type.
Definition: JDAQHeaderIO.hh:21
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQTimesliceHeader header 
)
inline

Read JDAQ time slice header from input.

Parameters
inreader
headerDAQ time slice header
Returns
reader

Definition at line 34 of file JDAQTimesliceHeaderIO.hh.

35  {
36  in >> static_cast<JDAQHeader&>(header);
37 
38  return in;
39  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQTimesliceHeader header 
)
inline

Write JDAQ time slice header to output.

Parameters
outwriter
headerDAQ time slice header
Returns
writer

Definition at line 49 of file JDAQTimesliceHeaderIO.hh.

50  {
51  out << static_cast<const JDAQHeader&>(header);
52 
53  return out;
54  }
size_t KM3NETDAQ::getSizeof ( const JDAQTimeslice object)
inline

Get size of object.

Parameters
objectDAQ event
Returns
number of bytes

Definition at line 25 of file JDAQTimesliceIO.hh.

26  {
27  int len = 0;
28 
29  len += getSizeof<JDAQPreamble>();
30  len += sizeof(Version_t);
32 
33  len += sizeof(int);
34 
35  for (JDAQTimeslice::const_iterator frame = object.begin(); frame != object.end(); ++frame) {
36  len += getSizeof(*frame);
37  }
38 
39  return len;
40  }
size_t getSizeof< JDAQTimesliceHeader >()
Get size of type.
size_t getSizeof< JDAQPreamble >()
Get size of type.
size_t getSizeof(const JDAQEvent &object)
Get size of object.
Definition: JDAQEventIO.hh:26
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQTimeslice object 
)
inline

Read DAQ time slice from input.

Parameters
inreader
objectDAQ time slice
Returns
reader

Definition at line 50 of file JDAQTimesliceIO.hh.

51  {
52  Version_t version;
53 
54  object.clear();
55 
56  in >> static_cast<JDAQPreamble&> (object);
57  in >> version;
58  in >> static_cast<JDAQTimesliceHeader&> (object);
59  in >> static_cast<std::vector<JDAQSuperFrame>&>(object);
60 
61  return in;
62  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
version
Definition: JCalibratePMT.sh:7
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQTimeslice object 
)
inline

Write DAQ time slice to output.

Parameters
outwriter
objectDAQ time slice
Returns
writer

Definition at line 72 of file JDAQTimesliceIO.hh.

73  {
74  out << JDAQPreamble::getDAQPreamble(object);
75  out << JDAQTimeslice::Class_Version();
76  out << static_cast<const JDAQTimesliceHeader&> (object);
77  out << static_cast<const std::vector<JDAQSuperFrame>&>(object);
78 
79  return out;
80  }
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQTimesliceL0 object 
)
inline

Write DAQ time slice to output.

Parameters
outwriter
objectDAQ time slice
Returns
writer

Definition at line 90 of file JDAQTimesliceIO.hh.

91  {
92  out << JDAQPreamble::getDAQPreamble(object);
93  out << JDAQTimesliceL0::Class_Version();
94  out << static_cast<const JDAQTimesliceHeader&> (object);
95  out << static_cast<const std::vector<JDAQSuperFrame>&>(object);
96 
97  return out;
98  }
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQTimesliceL1 object 
)
inline

Write DAQ time slice to output.

Parameters
outwriter
objectDAQ time slice
Returns
writer

Definition at line 108 of file JDAQTimesliceIO.hh.

109  {
110  out << JDAQPreamble::getDAQPreamble(object);
111  out << JDAQTimesliceL1::Class_Version();
112  out << static_cast<const JDAQTimesliceHeader&> (object);
113  out << static_cast<const std::vector<JDAQSuperFrame>&>(object);
114 
115  return out;
116  }
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQTimesliceL2 object 
)
inline

Write DAQ time slice to output.

Parameters
outwriter
objectDAQ time slice
Returns
writer

Definition at line 126 of file JDAQTimesliceIO.hh.

127  {
128  out << JDAQPreamble::getDAQPreamble(object);
129  out << JDAQTimesliceL2::Class_Version();
130  out << static_cast<const JDAQTimesliceHeader&> (object);
131  out << static_cast<const std::vector<JDAQSuperFrame>&>(object);
132 
133  return out;
134  }
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQTimesliceSN object 
)
inline

Write DAQ time slice to output.

Parameters
outwriter
objectDAQ time slice
Returns
writer

Definition at line 144 of file JDAQTimesliceIO.hh.

145  {
146  out << JDAQPreamble::getDAQPreamble(object);
147  out << JDAQTimesliceSN::Class_Version();
148  out << static_cast<const JDAQTimesliceHeader&> (object);
149  out << static_cast<const std::vector<JDAQSuperFrame>&>(object);
150 
151  return out;
152  }
JDAQUTCExtended KM3NETDAQ::getDAQUTCExtended ( const TTimeStamp &  t0,
const double  t1 = 0.0 
)

Get DAQ UTC time.

Parameters
t0time stamp
t1time offset [ns]
Returns
UTC time

Definition at line 26 of file JDAQToolkit.hh.

27  {
28  return JDAQUTCExtended(((double) t0.GetSec()) * 1.0e9 + ((double) t0.GetNanoSec()) - t1);
29  }
Data structure for UTC time.
TTimeStamp KM3NETDAQ::getTimeStamp ( const JDAQUTCExtended utc,
const double  t1 = 0.0 
)

Get time stamp.

Parameters
utcUTC time
t1time offset [ns]
Returns
time stamp

Definition at line 39 of file JDAQToolkit.hh.

40  {
41  TTimeStamp ts;
42 
43  const double t_ns = utc.getTimeNanoSecond() + t1;
44  const Int_t t_s = (Int_t) (t_ns / 1.0e9);
45 
46  ts.SetSec (t_s);
47  ts.SetNanoSec((Int_t) (t_ns - t_s * 1.0e9));
48 
49  return ts;
50  }
double getTimeNanoSecond() const
Get time (limited to 16 ns cycles).
template<>
size_t KM3NETDAQ::getSizeof< JDAQTriggerCounter > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 19 of file JDAQTriggerCounterIO.hh.

20  {
21  return sizeof(JDAQTriggerCounter::trigger_counter);
22  }
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQTriggerCounter counter 
)
inline

Read DAQ trigger counter from input.

Parameters
inreader
counterDAQ trigger counter
Returns
reader

Definition at line 32 of file JDAQTriggerCounterIO.hh.

33  {
34  in >> counter.trigger_counter;
35 
36  return in;
37  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQTriggerCounter counter 
)
inline

Write JDAQTriggerCounter to output.

Parameters
outwriter
counterDAQ trigger counter
Returns
writer

Definition at line 47 of file JDAQTriggerCounterIO.hh.

48  {
49  out << counter.trigger_counter;
50 
51  return out;
52  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQTriggeredHit > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 22 of file JDAQTriggeredHitIO.hh.

23  {
24  return (getSizeof<JDAQKeyHit>() +
26  }
size_t getSizeof< JDAQTriggerMask >()
Get size of type.
size_t getSizeof< JDAQKeyHit >()
Get size of type.
Definition: JDAQKeyHitIO.hh:22
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQTriggeredHit hit 
)
inline

Read DAQ triggered hit from input.

Parameters
inreader
hitDAQ triggered hit
Returns
reader

Definition at line 36 of file JDAQTriggeredHitIO.hh.

37  {
38  in >> static_cast<JDAQKeyHit&> (hit);
39  in >> static_cast<JDAQTriggerMask&>(hit);
40 
41  return in;
42  }
DAQ key hit.
Definition: JDAQKeyHit.hh:19
Auxiliary class for trigger mask.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQTriggeredHit hit 
)
inline

Write DAQ triggered hit to output.

Parameters
outwriter
hitDAQ triggered hit
Returns
writer

Definition at line 52 of file JDAQTriggeredHitIO.hh.

53  {
54  out << static_cast<const JDAQKeyHit&> (hit);
55  out << static_cast<const JDAQTriggerMask&>(hit);
56 
57  return out;
58  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQTriggerMask > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 19 of file JDAQTriggerMaskIO.hh.

20  {
21  return sizeof(JDAQTriggerMask::trigger_mask);
22  }
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQTriggerMask mask 
)
inline

Read DAQ trigger mask from input.

Parameters
inreader
maskDAQ trigger mask
Returns
reader

Definition at line 32 of file JDAQTriggerMaskIO.hh.

33  {
34  in >> mask.trigger_mask;
35 
36  return in;
37  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQTriggerMask mask 
)
inline

Write DAQ trigger mask to output.

Parameters
outwriter
maskDAQ trigger mask
Returns
writer

Definition at line 47 of file JDAQTriggerMaskIO.hh.

48  {
49  out << mask.trigger_mask;
50 
51  return out;
52  }
template<>
size_t KM3NETDAQ::getSizeof< JDAQUTCExtended > ( )
inline

Get size of type.

Returns
number of bytes

Definition at line 19 of file JDAQUTCExtendedIO.hh.

20  {
21  return (sizeof(JDAQUTCExtended::UTC_seconds) +
22  sizeof(JDAQUTCExtended::UTC_16nanosecondcycles));
23  }
JReader& KM3NETDAQ::operator>> ( JReader in,
JDAQUTCExtended utc 
)
inline

Read UTC from input.

Parameters
inreader
utcUTC
Returns
reader

Definition at line 33 of file JDAQUTCExtendedIO.hh.

34  {
35  in >> utc.UTC_seconds;
36  in >> utc.UTC_16nanosecondcycles;
37 
38  return in;
39  }
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
Definition: JCanberra.sh:42
JWriter& KM3NETDAQ::operator<< ( JWriter out,
const JDAQUTCExtended utc 
)
inline

Write UTC to output.

Parameters
outwriter
utcUTC
Returns
writer

Definition at line 49 of file JDAQUTCExtendedIO.hh.

50  {
51  out << utc.UTC_seconds;
52  out << utc.UTC_16nanosecondcycles;
53 
54  return out;
55  }
size_t KM3NETDAQ::getMaximalNumberOfHits ( )
inline

Get maximal number of hits from one PMT within data frame.

Returns
number of hits

Definition at line 23 of file JHighRateVeto.hh.

24  {
25  return (size_t) (getFrameTime() * (HIGH_RATE_VETO_HZ * 1.0e-9));
26  }
double getFrameTime()
Get frame time duration.
Definition: JDAQClock.hh:162
static double HIGH_RATE_VETO_HZ
High-rate veto [kHz].
double KM3NETDAQ::getMaximalTime ( const double  R_Hz)
inline

Get maximal time for given rate.

Parameters
R_Hzrate [Hz]
Returns
time [ns]

Definition at line 35 of file JHighRateVeto.hh.

36  {
37  double t1 = getFrameTime();
38 
39  if (R_Hz > 0) {
40 
41  t1 = (double) getMaximalNumberOfHits() / (R_Hz * 1.0e-9);
42 
43  if (t1 > getFrameTime()) {
44  t1 = getFrameTime();
45  }
46  }
47 
48  return t1;
49  }
size_t getMaximalNumberOfHits()
Get maximal number of hits from one PMT within data frame.
double getFrameTime()
Get frame time duration.
Definition: JDAQClock.hh:162
JTreeParameters KM3NETDAQ::getTreeParameters ( const JType< JDAQTimeslice > &  type)
inline
Parameters
typedata type
Returns
TTree parameters

Definition at line 42 of file JDAQ/JSupport.hh.

43  {
45  }
static const int COMPRESSION_LEVEL_ONLINE_TIMESLICE
compression level
Definition: root.hh:28
static const char *const TBRANCH_ONLINE_TIMESLICE
ROOT TBranch name.
Definition: root.hh:20
static const char *const TTREE_ONLINE_TIMESLICE
KM3NeT Data Definitions v2.1.0-12-g9520e6e https://git.km3net.de/common/km3net-dataformat.
Definition: root.hh:12
static const int BASKET_SIZE_ONLINE_TIMESLICE
basket size
Definition: root.hh:36
static const int SPLIT_LEVEL_ONLINE_TIMESLICE
split level
Definition: root.hh:44
JTreeParameters KM3NETDAQ::getTreeParameters ( const JType< JDAQTimesliceL0 > &  type)
inline
Parameters
typedata type
Returns
TTree parameters

Definition at line 51 of file JDAQ/JSupport.hh.

52  {
54  }
static const int SPLIT_LEVEL_ONLINE_TIMESLICEL0
split level
Definition: root.hh:45
static const int BASKET_SIZE_ONLINE_TIMESLICEL0
basket size
Definition: root.hh:37
static const int COMPRESSION_LEVEL_ONLINE_TIMESLICEL0
compression level
Definition: root.hh:29
static const char *const TTREE_ONLINE_TIMESLICEL0
ROOT TTree name.
Definition: root.hh:13
static const char *const TBRANCH_ONLINE_TIMESLICEL0
ROOT TBranch name.
Definition: root.hh:21
JTreeParameters KM3NETDAQ::getTreeParameters ( const JType< JDAQTimesliceL1 > &  type)
inline
Parameters
typedata type
Returns
TTree parameters

Definition at line 60 of file JDAQ/JSupport.hh.

61  {
63  }
static const char *const TTREE_ONLINE_TIMESLICEL1
ROOT TTree name.
Definition: root.hh:14
static const int SPLIT_LEVEL_ONLINE_TIMESLICEL1
split level
Definition: root.hh:46
static const int BASKET_SIZE_ONLINE_TIMESLICEL1
basket size
Definition: root.hh:38
static const char *const TBRANCH_ONLINE_TIMESLICEL1
ROOT TBranch name.
Definition: root.hh:22
static const int COMPRESSION_LEVEL_ONLINE_TIMESLICEL1
compression level
Definition: root.hh:30
JTreeParameters KM3NETDAQ::getTreeParameters ( const JType< JDAQTimesliceL2 > &  type)
inline
Parameters
typedata type
Returns
TTree parameters

Definition at line 69 of file JDAQ/JSupport.hh.

70  {
72  }
static const char *const TTREE_ONLINE_TIMESLICEL2
ROOT TTree name.
Definition: root.hh:15
static const char *const TBRANCH_ONLINE_TIMESLICEL2
ROOT TBranch name.
Definition: root.hh:23
static const int SPLIT_LEVEL_ONLINE_TIMESLICEL2
split level
Definition: root.hh:47
static const int COMPRESSION_LEVEL_ONLINE_TIMESLICEL2
compression level
Definition: root.hh:31
static const int BASKET_SIZE_ONLINE_TIMESLICEL2
basket size
Definition: root.hh:39
JTreeParameters KM3NETDAQ::getTreeParameters ( const JType< JDAQTimesliceSN > &  type)
inline
Parameters
typedata type
Returns
TTree parameters

Definition at line 78 of file JDAQ/JSupport.hh.

79  {
81  }
static const char *const TBRANCH_ONLINE_TIMESLICESN
ROOT TBranch name.
Definition: root.hh:24
static const int BASKET_SIZE_ONLINE_TIMESLICESN
basket size
Definition: root.hh:40
static const int SPLIT_LEVEL_ONLINE_TIMESLICESN
split level
Definition: root.hh:48
static const char *const TTREE_ONLINE_TIMESLICESN
ROOT TTree name.
Definition: root.hh:16
static const int COMPRESSION_LEVEL_ONLINE_TIMESLICESN
compression level
Definition: root.hh:32
JTreeParameters KM3NETDAQ::getTreeParameters ( const JType< JDAQEvent > &  type)
inline
Parameters
typedata type
Returns
TTree parameters

Definition at line 87 of file JDAQ/JSupport.hh.

88  {
90  }
static const char *const TTREE_ONLINE_EVENT
ROOT TTree name.
Definition: root.hh:18
static const int SPLIT_LEVEL_ONLINE_EVENT
split level
Definition: root.hh:50
static const int BASKET_SIZE_ONLINE_EVENT
basket size
Definition: root.hh:42
static const char *const TBRANCH_ONLINE_EVENT
ROOT TBranch name.
Definition: root.hh:26
static const int COMPRESSION_LEVEL_ONLINE_EVENT
compression level
Definition: root.hh:34
JTreeParameters KM3NETDAQ::getTreeParameters ( const JType< JDAQSummaryslice > &  type)
inline
Parameters
typedata type
Returns
TTree parameters

Definition at line 96 of file JDAQ/JSupport.hh.

97  {
99  }
static const int SPLIT_LEVEL_ONLINE_SUMMARYSLICE
split level
Definition: root.hh:49
static const char *const TBRANCH_ONLINE_SUMMARYSLICE
ROOT TBranch name.
Definition: root.hh:25
static const int COMPRESSION_LEVEL_ONLINE_SUMMARYSLICE
compression level
Definition: root.hh:33
static const char *const TTREE_ONLINE_SUMMARYSLICE
ROOT TTree name.
Definition: root.hh:17
static const int BASKET_SIZE_ONLINE_SUMMARYSLICE
basket size
Definition: root.hh:41
JSubscriptionList KM3NETDAQ::getSubscription ( const JEventTable &  event_table)
inline

Convert event table to ControlHost subscription.

Parameters
event_tableevent table
Returns
subscription

Definition at line 129 of file JEventTable.hh.

130  {
131  using namespace std;
132  using namespace JPP;
133 
134  JSubscriptionList buffer;
135 
136  for (JEventTable::const_iterator i = event_table.begin(); i != event_table.end(); ++i) {
137 
138  string key = i->first;
139  string::size_type pos = key.find_first_of(TOKEN_DELIMETER);
140 
141  if (pos != string::npos) {
142  buffer.add(JSubscriptionAll(key.substr(0, pos)));
143  }
144  }
145 
146  return buffer;
147  }
static const std::string TOKEN_DELIMETER
Definition: JDAQTags.hh:36
char KM3NETDAQ::getWildCard ( )
inline

Get the wild card.

Returns
wild card

Definition at line 34 of file JRuncontrolToolkit.hh.

35  {
36  return WILD_CARD;
37  }
static const char WILD_CARD
Definition: JDAQTags.hh:34
char KM3NETDAQ::getEventnameDelimeter ( )
inline

Get the event name delimeter.

Returns
event name delimeter

Definition at line 45 of file JRuncontrolToolkit.hh.

46  {
47  return EVENTNAME_DELIMETER;
48  }
static const char EVENTNAME_DELIMETER
Definition: JDAQTags.hh:35
char KM3NETDAQ::getTokenDelimeter ( )
inline

Get the token delimeter for command messages.

Returns
token delimeter

Definition at line 56 of file JRuncontrolToolkit.hh.

57  {
58  return TOKEN_DELIMETER[0];
59  }
static const std::string TOKEN_DELIMETER
Definition: JDAQTags.hh:36
std::string KM3NETDAQ::getProcessName ( const std::string &  name,
const std::string &  process 
)
inline

Get process name of run control client.

The process name corresponds to the name of the executable file. A wild card in the client name is replaced by the process name.

Parameters
namename of client
processname of process
Returns
process name

Definition at line 194 of file JRuncontrolToolkit.hh.

197  {
198  using namespace std;
199 
200  string buffer(name);
201 
202  size_t j = buffer.find_first_of(getWildCard());
203 
204  if (j != string::npos) {
205  buffer.replace(j, 1, process);
206  }
207 
208  return buffer;
209  }
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
char getWildCard()
Get the wild card.
int j
Definition: JPolint.hh:682
std::string KM3NETDAQ::getFullName ( const std::string &  hostname,
const std::string &  name 
)
inline

Get full name of run control client.

The full name is the unique identifier of each run control client.

Parameters
hostnamename of host
namename of client
Returns
full name

Definition at line 220 of file JRuncontrolToolkit.hh.

222  {
223  using namespace JSYSTEM;
224 
227  name);
228  }
int getIPnumber(const std::string &host_name)
Get IP number.
Definition: JNetwork.hh:117
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
std::string getIPaddress(const int ip)
Get IP address (decimal-dot notation).
Definition: JNetwork.hh:154
static const std::string RUN_CONTROL_CLIENT
Definition: JDAQTags.hh:22
char getTokenDelimeter()
Get the token delimeter for command messages.
std::string KM3NETDAQ::getFullName ( const std::string &  buffer)
inline

Get full name of run control client.

Parameters
bufferfull name (possibly followed by more text)
Returns
full name

Definition at line 237 of file JRuncontrolToolkit.hh.

238  {
239  using namespace std;
240 
241  size_t j = 0;
242 
243  j = buffer.find_first_of(getTokenDelimeter(), (j != string::npos ? j : 0));
244  j = buffer.find_first_of(getTokenDelimeter(), (j != string::npos ? ++j : 0));
245  j = buffer.find_first_of(getTokenDelimeter(), (j != string::npos ? ++j : 0));
246 
247  return buffer.substr(0, j);
248  }
char getTokenDelimeter()
Get the token delimeter for command messages.
int j
Definition: JPolint.hh:682
JTag KM3NETDAQ::getUniqueTag ( const std::string &  hostname,
const std::string &  name 
)
inline

Get unique tag of run control client.

The unique tag is used to communicate with a single client.

The unique tag consists of a sequence of 8 characters, where character 1-4 correspond the hexadecimal coded subaddress of the IP number of the host and character 5-8 to the short name of the client (i.e. part following the client name delimeter).

Parameters
hostnamehost name
nameclient name
Returns
tag

Definition at line 441 of file JRuncontrolToolkit.hh.

443  {
444  using namespace std;
445  using namespace JSYSTEM;
446 
447  ostringstream os;
448 
449  os << hex << getSubaddress(getIPnumber(hostname));
450 
451  string::size_type pos = name.find_first_of(CLIENTNAME_DELIMETER);
452 
453  if (pos != string::npos) {
454  os << name.substr(pos + 1, 4);
455  }
456 
457  return JTag(os.str());
458  }
int getIPnumber(const std::string &host_name)
Get IP number.
Definition: JNetwork.hh:117
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
unsigned short getSubaddress(const int ip)
Get host identifier within network.
Definition: JNetwork.hh:190
static const std::string CLIENTNAME_DELIMETER
Definition: JDAQTags.hh:37
std::string KM3NETDAQ::getStateName ( const std::string &  name)
inline

Get name of state.

Note that this method is used for backward compatibility.

Parameters
namename of state
Returns
name of state

Definition at line 591 of file JRuncontrolToolkit.hh.

592  {
593  using namespace std;
594 
595  static const string target = "Operational.";
596 
597  string buffer = name;
598 
599  const string::size_type pos = buffer.find(target);
600 
601  if (pos != string::npos)
602  return buffer.erase(pos, target.size());
603  else
604  return buffer;
605  }
then echo Enter input within $TIMEOUT_S seconds echo n User name
Definition: JCookie.sh:42
std::ostream& KM3NETDAQ::operator<< ( std::ostream &  out,
const JDAQChronometer chronometer 
)
inline

Print DAQ chronometer.

Parameters
outoutput stream
chronometerJDAQChronometer
Returns
output stream

Definition at line 201 of file JDAQChronometer.hh.

202  {
203  using namespace std;
204 
205  out << setw(8) << chronometer.getDetectorID();
206  out << ' ';
207  out << setw(8) << chronometer.getRunNumber();
208  out << ' ';
209  out << setw(8) << chronometer.getFrameIndex();
210  out << ' ';
211  out << chronometer.getTimesliceStart();
212 
213  return out;
214  }
JDAQUTCExtended getTimesliceStart() const
Get start of timeslice.
int getDetectorID() const
Get detector identifier.
int getRunNumber() const
Get run number.
int getFrameIndex() const
Get frame index.
double KM3NETDAQ::getTimeOfRTS ( const JDAQChronometer chronometer)
inline

Get time of last RTS in ns since start of run for a given chronometer.

Parameters
chronometerchronometer
Returns
time [ns]

Definition at line 223 of file JDAQChronometer.hh.

224  {
225  return getTimeOfRTS(chronometer.getFrameIndex());
226  }
double getTimeOfRTS(const JDAQChronometer &chronometer)
Get time of last RTS in ns since start of run for a given chronometer.
int getFrameIndex() const
Get frame index.
bool KM3NETDAQ::operator== ( const JDAQChronometer first,
const JDAQChronometer second 
)
inline

Equal operator for DAQ chronometers.

Parameters
firstchronometer
secondchronometer
Returns
true if first chronometer equal to second; else false

Definition at line 236 of file JDAQChronometer.hh.

238  {
239  return (first.getDetectorID() == second.getDetectorID() &&
240  first.getRunNumber() == second.getRunNumber() &&
241  first.getFrameIndex() == second.getFrameIndex() &&
242  first.getTimesliceStart() == second.getTimesliceStart());
243  }
JDAQUTCExtended getTimesliceStart() const
Get start of timeslice.
int getDetectorID() const
Get detector identifier.
int getRunNumber() const
Get run number.
int getFrameIndex() const
Get frame index.
bool KM3NETDAQ::operator!= ( const JDAQChronometer first,
const JDAQChronometer second 
)
inline

Not-equal operator for DAQ chronometers.

Parameters
firstchronometer
secondchronometer
Returns
true if first chronometer not equal to second; else false

Definition at line 253 of file JDAQChronometer.hh.

255  {
256  return !(first == second);
257  }
bool KM3NETDAQ::operator== ( const JDAQClock &  first,
const JDAQClock &  second 
)
inline

Equal operator for JDAQClock.

Parameters
firstJDAQClock
secondJDAQClock
Returns
true if both clock types are equal; else false

Definition at line 151 of file JDAQClock.hh.

152  {
153  return first.get() == second.get();
154  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
double KM3NETDAQ::getFrameTime ( )
inline

Get frame time duration.

Returns
frame time [ns]

Definition at line 162 of file JDAQClock.hh.

163  {
164  return FRAME_TIME_NS;
165  }
double KM3NETDAQ::getRTS ( )
inline

Get TDC dynamic range.

Returns
TDC dynamic range [ns]

Definition at line 173 of file JDAQClock.hh.

174  {
175  return RESET_TIME_NS;
176  }
double KM3NETDAQ::getTimeOfFrame ( const int  frame_index)
inline

Get start time of frame in ns since start of run for a given frame index.

Parameters
frame_indexframe index
Returns
time [ns]

Definition at line 185 of file JDAQClock.hh.

186  {
187  if (frame_index != 0)
188  return (double) (frame_index - 1) * FRAME_TIME_NS;
189  else
190  return 0;
191  }
double KM3NETDAQ::getTimeOfFrame ( const unsigned int  frame_index)
inline

Get start time of frame in ns since start of run for a given frame index.

Parameters
frame_indexframe index
Returns
time [ns]

Definition at line 200 of file JDAQClock.hh.

201  {
202  if (frame_index != 0)
203  return (double) (frame_index - 1) * FRAME_TIME_NS;
204  else
205  return 0;
206  }
double KM3NETDAQ::getTimeOfRTS ( const double  t_ns)
inline

Get time of last RTS in ns since start of run for a given time.

Parameters
t_nstime [ns]
Returns
time [ns]

Definition at line 215 of file JDAQClock.hh.

216  {
217  return std::floor(t_ns/RESET_TIME_NS) * RESET_TIME_NS;
218  }
double KM3NETDAQ::getTimeOfRTS ( const int  frame_index)
inline

Get time of last RTS in ns since start of run for a given frame index.

Parameters
frame_indexframe index
Returns
time [ns]

Definition at line 227 of file JDAQClock.hh.

228  {
229  return std::floor(getTimeOfFrame(frame_index)/RESET_TIME_NS) * RESET_TIME_NS;
230  }
double getTimeOfFrame(const int frame_index)
Get start time of frame in ns since start of run for a given frame index.
Definition: JDAQClock.hh:185
double KM3NETDAQ::getTimeOfRTS ( const unsigned int  frame_index)
inline

Get time of last RTS in ns since start of run for a given frame index.

Parameters
frame_indexframe index
Returns
time [ns]

Definition at line 239 of file JDAQClock.hh.

240  {
241  return std::floor(getTimeOfFrame(frame_index)/RESET_TIME_NS) * RESET_TIME_NS;
242  }
double getTimeOfFrame(const int frame_index)
Get start time of frame in ns since start of run for a given frame index.
Definition: JDAQClock.hh:185
int KM3NETDAQ::getFrameIndex ( const double  t_ns)
inline

Get frame index for a given time in ns.

Parameters
t_nstime [ns]
Returns
frame index

Definition at line 251 of file JDAQClock.hh.

252  {
253  return (int) (t_ns / FRAME_TIME_NS) + 1;
254  }
double KM3NETDAQ::getTimeSinceRTS ( const int  frame_index)
inline

Get time in ns since last RTS for a given frame index.

Parameters
frame_indexframe index
Returns
time [ns]

Definition at line 263 of file JDAQClock.hh.

264  {
265  return std::fmod(getTimeOfFrame(frame_index), RESET_TIME_NS);
266  }
double getTimeOfFrame(const int frame_index)
Get start time of frame in ns since start of run for a given frame index.
Definition: JDAQClock.hh:185
double KM3NETDAQ::getTimeSinceRTS ( const unsigned int  frame_index)
inline

Get time in ns since last RTS for a given frame index.

Parameters
frame_indexframe index
Returns
time [ns]

Definition at line 275 of file JDAQClock.hh.

276  {
277  return std::fmod(getTimeOfFrame(frame_index), RESET_TIME_NS);
278  }
double getTimeOfFrame(const int frame_index)
Get start time of frame in ns since start of run for a given frame index.
Definition: JDAQClock.hh:185
double KM3NETDAQ::getTimeSinceRTS ( const double &  t_ns)
inline

Get time in ns since last RTS for a given time in ns.

Parameters
t_nstime [ns]
Returns
time [ns]

Definition at line 287 of file JDAQClock.hh.

288  {
289  return std::fmod(t_ns, RESET_TIME_NS);
290  }
template<class T >
int KM3NETDAQ::getDataType ( )
inline

Template definition for method returning data type.


The template argument refers to the data type for future I/O operations.

Definition at line 27 of file JDAQDataTypes.hh.

28  {
29  return getDataType(JDAQType<T>());
30  }
int getDataType()
Template definition for method returning data type.
template<class T >
int KM3NETDAQ::getDataType ( const JDAQType< T > &  type)
inline

Argument definition for method returning data type.


The method argument refers to the data type for future I/O operations.
This method should be overloaded for each corresponding class.

Parameters
typedata type
int KM3NETDAQ::getDataType ( const JDAQType< JDAQSuperFrame > &  )
inline

Definition at line 55 of file JDAQDataTypes.hh.

55 { return DAQSUPERFRAME; }
static const int DAQSUPERFRAME
KM3NeT Data Definitions v2.1.0-12-g9520e6e https://git.km3net.de/common/km3net-dataformat.
Definition: daqdatatypes.hh:12
int KM3NETDAQ::getDataType ( const JDAQType< JDAQSummaryFrame > &  )
inline

Definition at line 56 of file JDAQDataTypes.hh.

56 { return DAQSUMMARYFRAME; }
static const int DAQSUMMARYFRAME
Summary frame.
Definition: daqdatatypes.hh:13
int KM3NETDAQ::getDataType ( const JDAQType< JDAQTimeslice > &  )
inline

Definition at line 57 of file JDAQDataTypes.hh.

57 { return DAQTIMESLICE; }
static const int DAQTIMESLICE
Erroneous timeslice.
Definition: daqdatatypes.hh:14
int KM3NETDAQ::getDataType ( const JDAQType< JDAQTimesliceL0 > &  )
inline

Definition at line 58 of file JDAQDataTypes.hh.

58 { return DAQTIMESLICEL0; }
static const int DAQTIMESLICEL0
L0 timeslice.
Definition: daqdatatypes.hh:15
int KM3NETDAQ::getDataType ( const JDAQType< JDAQTimesliceL1 > &  )
inline

Definition at line 59 of file JDAQDataTypes.hh.

59 { return DAQTIMESLICEL1; }
static const int DAQTIMESLICEL1
L1 timeslice.
Definition: daqdatatypes.hh:16
int KM3NETDAQ::getDataType ( const JDAQType< JDAQTimesliceL2 > &  )
inline

Definition at line 60 of file JDAQDataTypes.hh.

60 { return DAQTIMESLICEL2; }
static const int DAQTIMESLICEL2
L2 timeslice.
Definition: daqdatatypes.hh:17
int KM3NETDAQ::getDataType ( const JDAQType< JDAQTimesliceSN > &  )
inline

Definition at line 61 of file JDAQDataTypes.hh.

61 { return DAQTIMESLICESN; }
static const int DAQTIMESLICESN
Supernova timeslice.
Definition: daqdatatypes.hh:18
int KM3NETDAQ::getDataType ( const JDAQType< JDAQSummaryslice > &  )
inline

Definition at line 62 of file JDAQDataTypes.hh.

62 { return DAQSUMMARYSLICE; }
static const int DAQSUMMARYSLICE
Summaryslice.
Definition: daqdatatypes.hh:19
int KM3NETDAQ::getDataType ( const JDAQType< JDAQEvent > &  )
inline

Definition at line 63 of file JDAQDataTypes.hh.

63 { return DAQEVENT; }
static const int DAQEVENT
DAQ event.
Definition: daqdatatypes.hh:20
bool KM3NETDAQ::operator== ( const JDAQEvent first,
const JDAQEvent second 
)

Equal operator for DAQ events.

Parameters
firstevent
secondevent
Returns
true if first event equal to second; else false

Definition at line 210 of file externals/km3net-dataformat/src/JDAQEvent.cc.

212  {
213  return (first.getDAQEventHeader() == second.getDAQEventHeader() &&
214  first.getHits<JDAQTriggeredHit>() == second.getHits<JDAQTriggeredHit>() &&
215  first.getHits<JDAQSnapshotHit> () == second.getHits<JDAQSnapshotHit> ());
216  }
DAQ key hit.
Definition: JDAQKeyHit.hh:19
const std::vector< T > & getHits() const
Get container with hits.
const JDAQEventHeader & getDAQEventHeader() const
Get DAQ event header.
bool KM3NETDAQ::operator!= ( const JDAQEvent first,
const JDAQEvent second 
)
inline

Not-equal operator for DAQ events.

Parameters
firstevent
secondevent
Returns
true if first event not equal to second; else false

Definition at line 289 of file JDAQEvent.hh.

291  {
292  return !(first == second);
293  }
std::ostream& KM3NETDAQ::operator<< ( std::ostream &  out,
const JDAQEvent event 
)
inline

Print DAQ Event.

Parameters
outoutput stream
eventevent
Returns
output stream

Definition at line 303 of file JDAQEvent.hh.

304  {
305  return event.print(out, getDAQLongprint());
306  }
bool & getDAQLongprint()
Get DAQ print option.
Definition: JDAQPrint.hh:15
bool KM3NETDAQ::operator== ( const JDAQEventHeader first,
const JDAQEventHeader second 
)
inline

Equal operator for DAQ event headers.

Parameters
firstevent header
secondevent header
Returns
true if first event header equal to second; else false

Definition at line 108 of file JDAQEventHeader.hh.

110  {
111  return (first.getDAQHeader() == second.getDAQHeader() &&
112  first.getDAQTriggerCounter() == second.getDAQTriggerCounter() &&
113  first.getDAQTriggerMask() == second.getDAQTriggerMask());
114  }
const JDAQHeader & getDAQHeader() const
Get DAQ header.
Definition: JDAQHeader.hh:49
const JDAQTriggerCounter & getDAQTriggerCounter() const
Get DAQ trigger counter.
const JDAQTriggerMask & getDAQTriggerMask() const
Get DAQ trigger mask.
bool KM3NETDAQ::operator!= ( const JDAQEventHeader first,
const JDAQEventHeader second 
)
inline

Not-equal operator for DAQ event headers.

Parameters
firstevent header
secondevent header
Returns
true if first event header not equal to second; else false

Definition at line 124 of file JDAQEventHeader.hh.

126  {
127  return !(first == second);
128  }
bool KM3NETDAQ::operator== ( const JDAQFrame first,
const JDAQFrame second 
)
inline

Equal operator for DAQ frames.

Parameters
firstframe
secondframe
Returns
true if first frame equal to second; else false

Definition at line 300 of file JDAQFrame.hh.

302  {
303  if (first.size() == second.size()) {
304 
305  for (JDAQFrame::const_iterator p = first.begin(), q = second.begin(); p != first.end(); ++p, ++q) {
306  if (*p != *q) {
307  return false;
308  }
309  }
310 
311  return true;
312 
313  } else {
314 
315  return false;
316  }
317  }
Hit data structure.
Definition: JDAQHit.hh:34
const_iterator begin() const
Definition: JDAQFrame.hh:164
int size() const
Definition: JDAQFrame.hh:182
const_iterator end() const
Definition: JDAQFrame.hh:165
bool KM3NETDAQ::operator!= ( const JDAQFrame first,
const JDAQFrame second 
)
inline

Not-equal operator for DAQ frames.

Parameters
firstframe
secondframe
Returns
true if first frame not equal to second; else false

Definition at line 327 of file JDAQFrame.hh.

329  {
330  return !(first == second);
331  }
bool KM3NETDAQ::operator== ( const JDAQFrameStatus first,
const JDAQFrameStatus second 
)
inline

Equal operator for DAQ frame status.

Parameters
firstframe status
secondframe status
Returns
true if first frame status equal to second; else false

Definition at line 345 of file JDAQFrameStatus.hh.

347  {
348  return (first.getDAQStatus() == second.getDAQStatus() &&
349  first.getStatus() == second.getStatus() &&
350  first.getFIFOStatus() == second.getFIFOStatus());
351  }
int getStatus() const
Get TDC and White Rabbit status.
int getDAQStatus() const
Get DAQ status.
int getFIFOStatus() const
Get FIFO status.
bool KM3NETDAQ::operator!= ( const JDAQFrameStatus first,
const JDAQFrameStatus second 
)
inline

Not-equal operator for DAQ frame status.

Parameters
firstframe status
secondframe status
Returns
true if first frame status not equal to second; else false

Definition at line 361 of file JDAQFrameStatus.hh.

363  {
364  return !(first == second);
365  }
bool KM3NETDAQ::operator== ( const JDAQHeader first,
const JDAQHeader second 
)
inline

Equal operator for DAQ headers.

Parameters
firstheader
secondheader
Returns
true if first header equal to second; else false

Definition at line 77 of file JDAQHeader.hh.

79  {
80  return (first.getDAQChronometer() == second.getDAQChronometer());
81  }
const JDAQChronometer & getDAQChronometer() const
Get DAQ chronometer.
bool KM3NETDAQ::operator!= ( const JDAQHeader first,
const JDAQHeader second 
)
inline

Not-equal operator for DAQ headers.

Parameters
firstheader
secondheader
Returns
true if first header not equal to second; else false

Definition at line 91 of file JDAQHeader.hh.

93  {
94  return !(first == second);
95  }
bool KM3NETDAQ::operator< ( const JDAQHit first,
const JDAQHit second 
)
inline

Less than operator for DAQ hits.

The less than operator is applied first to the time and then to the PMT channel of the hits.

Parameters
firsthit
secondhit
Returns
true if first hit earlier than second; else false

Definition at line 174 of file JDAQHit.hh.

176  {
177  if (first.getT() != second.getT())
178  return first.getT() < second.getT();
179  else
180  return first.getPMT() < second.getPMT();
181  }
JTDC_t getT() const
Get time.
Definition: JDAQHit.hh:86
JPMT_t getPMT() const
Get PMT.
Definition: JDAQHit.hh:75
bool KM3NETDAQ::operator== ( const JDAQHit first,
const JDAQHit second 
)
inline

Equal operator for DAQ hits.

Parameters
firsthit
secondhit
Returns
true if first hit equal to second; else false

Definition at line 191 of file JDAQHit.hh.

193  {
194  return (first.getPMT() == second.getPMT() &&
195  first.getT() == second.getT() &&
196  first.getToT() == second.getToT());
197  }
JTDC_t getT() const
Get time.
Definition: JDAQHit.hh:86
JPMT_t getPMT() const
Get PMT.
Definition: JDAQHit.hh:75
JTOT_t getToT() const
Get time-over-threshold.
Definition: JDAQHit.hh:97
bool KM3NETDAQ::operator!= ( const JDAQHit first,
const JDAQHit second 
)
inline

Not-equal operator for DAQ hits.

Parameters
firsthit
secondhit
Returns
true if first hit not equal to second; else false

Definition at line 207 of file JDAQHit.hh.

209  {
210  return !(first == second);
211  }
bool KM3NETDAQ::operator< ( const JDAQKeyHit first,
const JDAQKeyHit second 
)
inline

Less than operator for DAQ hits.

The less than operator is applied first to the module idientifier then to the PMT channel and then to the time of the hits.

Parameters
firsthit
secondhit
Returns
true if first hit before than second; else false

Definition at line 83 of file JDAQKeyHit.hh.

85  {
86  if (first.getModuleID() == second.getModuleID()) {
87  if (first.getPMT() == second.getPMT())
88  return first.getT() < second.getT();
89  else
90  return first.getPMT() < second.getPMT();
91  } else
92  return first.getModuleID() < second.getModuleID();
93  }
int getModuleID() const
Get module identifier.
JTDC_t getT() const
Get time.
Definition: JDAQHit.hh:86
JPMT_t getPMT() const
Get PMT.
Definition: JDAQHit.hh:75
bool KM3NETDAQ::operator== ( const JDAQKeyHit first,
const JDAQKeyHit second 
)
inline

Equal operator for DAQ hits.

The equal operator is applied to the module idientifier, to the PMT channel and to the time of the hits.

Parameters
firsthit
secondhit
Returns
t rue if first hit equal to second; else false

Definition at line 106 of file JDAQKeyHit.hh.

108  {
109  return (first.getModuleID() == second.getModuleID() &&
110  first.getPMT() == second.getPMT() &&
111  first.getT() == second.getT());
112  }
int getModuleID() const
Get module identifier.
JTDC_t getT() const
Get time.
Definition: JDAQHit.hh:86
JPMT_t getPMT() const
Get PMT.
Definition: JDAQHit.hh:75
bool KM3NETDAQ::operator!= ( const JDAQKeyHit first,
const JDAQKeyHit second 
)
inline

Not-equal operator for DAQ hits.

Parameters
firsthit
secondhit
Returns
true if first hit not equal to second; else false

Definition at line 122 of file JDAQKeyHit.hh.

124  {
125  return !(first == second);
126  }
bool KM3NETDAQ::operator== ( const JDAQModuleIdentifier first,
const JDAQModuleIdentifier second 
)
inline

Equal operator.

Parameters
firstfirst module identifier
secondsecond module identifier
Returns
true if identifiers are equal; else false

Definition at line 123 of file JDAQModuleIdentifier.hh.

124  {
125  return first.getModuleID() == second.getModuleID();
126  }
int getModuleID() const
Get module identifier.
bool KM3NETDAQ::operator!= ( const JDAQModuleIdentifier first,
const JDAQModuleIdentifier second 
)
inline

Not equal operator.

Parameters
firstfirst module identifier
secondsecond module identifier
Returns
true if identifiers are different; else false

Definition at line 136 of file JDAQModuleIdentifier.hh.

137  {
138  return first.getModuleID() != second.getModuleID();
139  }
int getModuleID() const
Get module identifier.
bool KM3NETDAQ::operator== ( const JDAQModuleIdentifier module,
const int  id 
)
inline

Equal operator.

Parameters
modulemodule identifier
ididentifier
Returns
true if identifiers are equal; else false

Definition at line 149 of file JDAQModuleIdentifier.hh.

150  {
151  return module.getModuleID() == id;
152  }
int getModuleID() const
Get module identifier.
bool KM3NETDAQ::operator!= ( const JDAQModuleIdentifier module,
const int  id 
)
inline

Not equal operator.

Parameters
modulemodule identifier
ididentifier
Returns
true if identifiers are different; else false

Definition at line 162 of file JDAQModuleIdentifier.hh.

163  {
164  return module.getModuleID() != id;
165  }
int getModuleID() const
Get module identifier.
bool KM3NETDAQ::operator< ( const JDAQModuleIdentifier first,
const JDAQModuleIdentifier second 
)
inline

Less than operator.

Parameters
firstfirst module identifier
secondsecond module identifier
Returns
true if first identifier less than second eidentifier; else false

Definition at line 175 of file JDAQModuleIdentifier.hh.

176  {
177  return first.getModuleID() < second.getModuleID();
178  }
int getModuleID() const
Get module identifier.
bool KM3NETDAQ::operator< ( const JDAQModuleIdentifier module,
const int  id 
)
inline

Less than operator.

Parameters
modulemodule identifier
ididentifier
Returns
true if module identifier less than identifier; else false

Definition at line 188 of file JDAQModuleIdentifier.hh.

189  {
190  return module.getModuleID() < id;
191  }
int getModuleID() const
Get module identifier.
bool KM3NETDAQ::operator< ( const JDAQPMTIdentifier first,
const JDAQPMTIdentifier second 
)
inline

Less than operator for PMT identifiers.

The less than operator is applied first to the module identifer and then to the PMT address.

Parameters
firstPMT identifier
secondPMT identifier
Returns
true if first PMT lower than second PMT; else false

Definition at line 154 of file JDAQPMTIdentifier.hh.

155  {
156  if (first.getModuleIdentifier() == second.getModuleIdentifier())
157  return first.getPMTAddress() < second.getPMTAddress();
158  else
159  return first.getModuleIdentifier() < second.getModuleIdentifier();
160  }
int getPMTAddress() const
Get PMT identifier.
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
bool KM3NETDAQ::operator== ( const JDAQPMTIdentifier first,
const JDAQPMTIdentifier second 
)
inline

Equal operator for PMT identifiers.

The equal operator is applied to the module identifer and to the PMT address.

Parameters
firstPMT identifier
secondPMT identifier
Returns
true if first PMT equal second PMT; else false

Definition at line 172 of file JDAQPMTIdentifier.hh.

173  {
174  return (first.getModuleIdentifier() == second.getModuleIdentifier() &&
175  first.getPMTAddress() == second.getPMTAddress());
176  }
int getPMTAddress() const
Get PMT identifier.
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
bool KM3NETDAQ::operator!= ( const JDAQPMTIdentifier first,
const JDAQPMTIdentifier second 
)
inline

Not-equal operator for PMT identifiers.

Parameters
firstPMT identifier
secondPMT identifier
Returns
true if first PMT identifier not equal to second; else false

Definition at line 186 of file JDAQPMTIdentifier.hh.

188  {
189  return !(first == second);
190  }
bool& KM3NETDAQ::getDAQLongprint ( )
inline

Get DAQ print option.

Returns
print option

Definition at line 15 of file JDAQPrint.hh.

16  {
17  static bool option;
18 
19  return option;
20  }
void KM3NETDAQ::setDAQLongprint ( const bool  option)
inline

Set DAQ print option.

Parameters
optionprint option

Definition at line 28 of file JDAQPrint.hh.

29  {
30  getDAQLongprint() = option;
31  }
bool & getDAQLongprint()
Get DAQ print option.
Definition: JDAQPrint.hh:15
template<class T >
size_t KM3NETDAQ::getSizeof ( )
inline

Definition of method to get size of data type.

This method should be specialised for each desired data type with fixed length.

Returns
number of bytes
bool KM3NETDAQ::operator== ( const JDAQRate first,
const JDAQRate second 
)
inline

Equal operator for DAQ rates.

Parameters
firstrate
secondrate
Returns
true if first rate equal to second; else false

Definition at line 296 of file JDAQSummaryFrame.hh.

298  {
299  return (first.getValue() == second.getValue());
300  }
static JRate_t getValue(const int numberOfHits, const double frameTime_ns)
Get value.
bool KM3NETDAQ::operator!= ( const JDAQRate first,
const JDAQRate second 
)
inline

Not-equal operator for DAQ rates.

Parameters
firstrate
secondrate
Returns
true if first rate not equal to second; else false

Definition at line 310 of file JDAQSummaryFrame.hh.

312  {
313  return (first.getValue() != second.getValue());
314  }
static JRate_t getValue(const int numberOfHits, const double frameTime_ns)
Get value.
bool KM3NETDAQ::operator== ( const JDAQSummaryFrame first,
const JDAQSummaryFrame second 
)
inline

Equal operator for DAQ summary frames.

Parameters
firstsummary frame
secondsummary frame
Returns
true if first summary frame equal to second; else false

Definition at line 506 of file JDAQSummaryFrame.hh.

508  {
509  if (first.getModuleIdentifier() == second.getModuleIdentifier() &&
510  first.getDAQFrameStatus() == second.getDAQFrameStatus()) {
511 
512  for (int i = 0; i != NUMBER_OF_PMTS; ++i) {
513  if (first[i] != second[i]) {
514  return false;
515  }
516  }
517 
518  return true;
519 
520  } else {
521 
522  return false;
523  }
524  }
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
static const int NUMBER_OF_PMTS
Total number of PMTs in module.
Definition: JDAQ.hh:26
const JDAQFrameStatus & getDAQFrameStatus() const
Get DAQ frame status.
bool KM3NETDAQ::operator!= ( const JDAQSummaryFrame first,
const JDAQSummaryFrame second 
)
inline

Not-equal operator for DAQ summary frames.

Parameters
firstsummary frame
secondsummary frame
Returns
true if first summary frame not equal to second; else false

Definition at line 534 of file JDAQSummaryFrame.hh.

536  {
537  return !(first == second);
538  }
std::ostream& KM3NETDAQ::operator<< ( std::ostream &  out,
const KM3NETDAQ::JDAQSummaryslice summary 
)
inline

Print DAQ summary.

Parameters
outoutput stream
summarysummary
Returns
output stream

Definition at line 139 of file JDAQSummaryslice.hh.

140  {
141  return summary.print(out, getDAQLongprint());
142  }
std::ostream & print(std::ostream &out, const bool lpr=false) const
Print DAQ summary.
bool & getDAQLongprint()
Get DAQ print option.
Definition: JDAQPrint.hh:15
bool KM3NETDAQ::operator== ( const JDAQSummaryslice first,
const JDAQSummaryslice second 
)
inline

Equal operator for DAQ summary slices.

Parameters
firstsummary slice
secondsummary slice
Returns
true if first summary slice equal to second; else false

Definition at line 152 of file JDAQSummaryslice.hh.

154  {
155  return (first.getDAQSummarysliceHeader() == second.getDAQSummarysliceHeader() &&
156  static_cast<const std::vector<JDAQSummaryFrame>&>(first) == static_cast<const std::vector<JDAQSummaryFrame>&>(second));
157  }
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
const JDAQSummarysliceHeader & getDAQSummarysliceHeader() const
Get DAQ summary slice header.
bool KM3NETDAQ::operator!= ( const JDAQSummaryslice first,
const JDAQSummaryslice second 
)
inline

Not-equal operator for DAQ summary slices.

Parameters
firstsummary slice
secondsummary slice
Returns
true if first summary slice not equal to second; else false

Definition at line 167 of file JDAQSummaryslice.hh.

169  {
170  return !(first == second);
171  }
bool KM3NETDAQ::operator== ( const JDAQSummarysliceHeader first,
const JDAQSummarysliceHeader second 
)
inline

Equal operator for DAQ summary slice headers.

Parameters
firstsummary slice header
secondsummary slice header
Returns
true if first summaryslice header equal to second; else false

Definition at line 61 of file JDAQSummarysliceHeader.hh.

63  {
64  return (first.getDAQHeader() == second.getDAQHeader());
65  }
const JDAQHeader & getDAQHeader() const
Get DAQ header.
Definition: JDAQHeader.hh:49
bool KM3NETDAQ::operator!= ( const JDAQSummarysliceHeader first,
const JDAQSummarysliceHeader second 
)
inline

Not-equal operator for DAQ summary slice headers.

Parameters
firstsummary slice header
secondsummary slice header
Returns
true if first summary slice header not equal to second; else false

Definition at line 75 of file JDAQSummarysliceHeader.hh.

77  {
78  return !(first == second);
79  }
bool KM3NETDAQ::operator== ( const JDAQSuperFrame first,
const JDAQSuperFrame second 
)
inline

Equal operator for DAQ super frames.

Parameters
firstsuper frame
secondsuper frame
Returns
true if first super frame equal to second; else false

Definition at line 137 of file JDAQSuperFrame.hh.

139  {
140  if (first.getDAQSuperFrameHeader() == second.getDAQSuperFrameHeader() &&
141  first.size() == second.size()) {
142 
143  for (JDAQSuperFrame::const_iterator p = first.begin(), q = second.begin(); p != first.end(); ++p, ++q) {
144  if (*p != *q) {
145  return false;
146  }
147  }
148 
149  return true;
150 
151  } else {
152 
153  return false;
154  }
155  }
Hit data structure.
Definition: JDAQHit.hh:34
const_iterator begin() const
Definition: JDAQFrame.hh:164
const JDAQSuperFrameHeader & getDAQSuperFrameHeader() const
Get DAQ super frame header.
int size() const
Definition: JDAQFrame.hh:182
const_iterator end() const
Definition: JDAQFrame.hh:165
bool KM3NETDAQ::operator!= ( const JDAQSuperFrame first,
const JDAQSuperFrame second 
)
inline

Not-equal operator for DAQ super frames.

Parameters
firstsuper frame
secondsuper frame
Returns
true if first super frame not equal to second; else false

Definition at line 165 of file JDAQSuperFrame.hh.

167  {
168  return !(first == second);
169  }
bool KM3NETDAQ::operator== ( const JDAQSuperFrameHeader first,
const JDAQSuperFrameHeader second 
)
inline

Equal operator for DAQ super frame headers.

Parameters
firstsuper frame header
secondsuper frame header
Returns
true if first super frame header equal to second; else false

Definition at line 103 of file JDAQSuperFrameHeader.hh.

105  {
106  return (first.getDAQHeader() == second.getDAQHeader() &&
107  first.getModuleIdentifier() == second.getModuleIdentifier() &&
108  first.getDAQFrameStatus() == second.getDAQFrameStatus());
109  }
const JDAQHeader & getDAQHeader() const
Get DAQ header.
Definition: JDAQHeader.hh:49
const JDAQModuleIdentifier & getModuleIdentifier() const
Get Module identifier.
const JDAQFrameStatus & getDAQFrameStatus() const
Get DAQ frame status.
bool KM3NETDAQ::operator!= ( const JDAQSuperFrameHeader first,
const JDAQSuperFrameHeader second 
)
inline

Not-equal operator for DAQ super frame headers.

Parameters
firstsuper frame header
secondsuper frame header
Returns
true if first super frame header not equal to second; else false

Definition at line 119 of file JDAQSuperFrameHeader.hh.

121  {
122  return !(first == second);
123  }
bool KM3NETDAQ::operator== ( const JDAQTimeslice first,
const JDAQTimeslice second 
)
inline

Equal operator for DAQ time slices.

Parameters
firsttime slice
secondtime slice
Returns
true if first time slice equal to second; else false

Definition at line 232 of file JDAQTimeslice.hh.

234  {
235  return (first.getDAQTimesliceHeader() == second.getDAQTimesliceHeader() &&
236  static_cast<const std::vector<JDAQSuperFrame>&>(first) == static_cast<const std::vector<JDAQSuperFrame>&>(second));
237  }
const JDAQTimesliceHeader & getDAQTimesliceHeader() const
Get DAQ time slice header.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
bool KM3NETDAQ::operator!= ( const JDAQTimeslice first,
const JDAQTimeslice second 
)
inline

Not-equal operator for DAQ time slices.

Parameters
firsttime slice
secondtime slice
Returns
true if first time slice not equal to second; else false

Definition at line 247 of file JDAQTimeslice.hh.

249  {
250  return !(first == second);
251  }
std::ostream& KM3NETDAQ::operator<< ( std::ostream &  out,
const JDAQTimeslice timeslice 
)
inline

Print DAQ Timeslice.

Parameters
outoutput stream
timeslicetimeslice
Returns
output stream

Definition at line 285 of file JDAQTimeslice.hh.

286  {
287  return timeslice.print(out, getDAQLongprint());
288  }
std::ostream & print(std::ostream &out, const bool lpr=false) const
Print DAQ Timeslice.
bool & getDAQLongprint()
Get DAQ print option.
Definition: JDAQPrint.hh:15
bool KM3NETDAQ::operator== ( const JDAQTimesliceHeader first,
const JDAQTimesliceHeader second 
)
inline

Equal operator for DAQ time slice headers.

Parameters
firsttime slice header
secondtime slice header
Returns
true if first timeslice header equal to second; else false

Definition at line 60 of file JDAQTimesliceHeader.hh.

62  {
63  return (first.getDAQHeader() == second.getDAQHeader());
64  }
const JDAQHeader & getDAQHeader() const
Get DAQ header.
Definition: JDAQHeader.hh:49
bool KM3NETDAQ::operator!= ( const JDAQTimesliceHeader first,
const JDAQTimesliceHeader second 
)
inline

Not-equal operator for DAQ time slice headers.

Parameters
firsttime slice header
secondtime slice header
Returns
true if first time slice header not equal to second; else false

Definition at line 74 of file JDAQTimesliceHeader.hh.

76  {
77  return !(first == second);
78  }
bool KM3NETDAQ::operator== ( const JDAQTriggerCounter first,
const JDAQTriggerCounter second 
)
inline

Equal operator for DAQ trigger counters.

Parameters
firsttrigger counter
secondtrigger counter
Returns
true if first trigger counter equal to second; else false

Definition at line 142 of file JDAQTriggerCounter.hh.

144  {
145  return (first.getCounter() == second.getCounter());
146  }
JTriggerCounter_t getCounter() const
Get trigger counter.
bool KM3NETDAQ::operator!= ( const JDAQTriggerCounter first,
const JDAQTriggerCounter second 
)
inline

Not-equal operator for DAQ trigger counters.

Parameters
firsttrigger counter
secondtrigger counter
Returns
true if first trigger counter not equal to second; else false

Definition at line 156 of file JDAQTriggerCounter.hh.

158  {
159  return !(first == second);
160  }
bool KM3NETDAQ::operator== ( const JDAQTriggeredHit first,
const JDAQTriggeredHit second 
)
inline

Equal operator for DAQ triggered hits.

Parameters
firsttriggered hit
secondtriggered hit
Returns
true if first triggered hit equal to second; else false

Definition at line 72 of file JDAQTriggeredHit.hh.

74  {
75  return (static_cast<const JDAQKeyHit&> (first) == static_cast<const JDAQKeyHit&> (second) &&
76  static_cast<const JDAQTriggerMask&>(first) == static_cast<const JDAQTriggerMask&>(second));
77  }
bool KM3NETDAQ::operator!= ( const JDAQTriggeredHit first,
const JDAQTriggeredHit second 
)
inline

Not-equal operator for DAQ triggered hits.

Parameters
firsttriggered hit
secondtriggered hit
Returns
true if first triggered hit not equal to second; else false

Definition at line 87 of file JDAQTriggeredHit.hh.

89  {
90  return !(first == second);
91  }
JTriggerMask_t KM3NETDAQ::getTriggerMask ( const unsigned int  bit)
inline

Convert trigger bit to trigger mask.

Parameters
bittrigger bit
Returns
trigger mask

Definition at line 36 of file JDAQTriggerMask.hh.

37  {
38  if (bit < NUMBER_OF_TRIGGER_BITS)
39  return JTriggerMask_t(1) << bit;
40  else
41  return 0;
42  }
static const unsigned int NUMBER_OF_TRIGGER_BITS
Number of trigger bits.
unsigned long long int JTriggerMask_t
Type definition of trigger mask.
bool KM3NETDAQ::operator== ( const JDAQTriggerMask first,
const JDAQTriggerMask second 
)
inline

Equal operator for DAQ trigger masks.

Parameters
firsttrigger mask
secondtrigger mask
Returns
true if first trigger mask equal to second; else false

Definition at line 282 of file JDAQTriggerMask.hh.

284  {
285  return (first.getTriggerMask() == second.getTriggerMask());
286  }
JTriggerMask_t getTriggerMask() const
Get trigger mask.
bool KM3NETDAQ::operator!= ( const JDAQTriggerMask first,
const JDAQTriggerMask second 
)
inline

Not-equal operator for DAQ trigger masks.

Parameters
firsttrigger mask
secondtrigger mask
Returns
true if first trigger mask not equal to second; else false

Definition at line 296 of file JDAQTriggerMask.hh.

298  {
299  return !(first == second);
300  }
bool KM3NETDAQ::operator< ( const JDAQUTCExtended first,
const JDAQUTCExtended second 
)
inline

Less than operator for UTC times.

Parameters
firstUTC time
secondUTC time
Returns
true if first UTC time earlier than second UTC time; else false

Definition at line 217 of file JDAQUTCExtended.hh.

218  {
219  if (first.getUTCseconds() == second.getUTCseconds())
220  return first.getUTC16nanosecondcycles() < second.getUTC16nanosecondcycles();
221  else
222  return first.getUTCseconds() < second.getUTCseconds();
223  }
JUINT32_t getUTC16nanosecondcycles() const
Get time.
JUINT32_t getUTCseconds() const
Get time.
bool KM3NETDAQ::operator== ( const JDAQUTCExtended first,
const JDAQUTCExtended second 
)
inline

Equal operator for UTC times.

Parameters
firstUTC time
secondUTC time
Returns
true if first UTC time equal second UTC time; else false

Definition at line 233 of file JDAQUTCExtended.hh.

234  {
235  return (first.getUTCseconds() == second.getUTCseconds() &&
237  }
JUINT32_t getUTC16nanosecondcycles() const
Get time.
JUINT32_t getUTCseconds() const
Get time.
bool KM3NETDAQ::operator!= ( const JDAQUTCExtended first,
const JDAQUTCExtended second 
)
inline

Not equal operator for UTC times.

Parameters
firstUTC time
secondUTC time
Returns
true if first UTC time not equal second UTC time; else false

Definition at line 247 of file JDAQUTCExtended.hh.

248  {
249  return !(first == second);
250  }

Variable Documentation

const JDAQEvaluator KM3NETDAQ::getDAQValue
static

Function object for evaluation of DAQ objects.

Definition at line 81 of file JDAQEvaluator.hh.

const std::string KM3NETDAQ::RUN_CONTROL_CLIENT = std::string("DAQ")
static

Definition at line 22 of file JDAQTags.hh.

const std::string KM3NETDAQ::JDATAQUEUE = std::string("DataQueue")
static

Definition at line 26 of file JDAQTags.hh.

const std::string KM3NETDAQ::JDATAFILTER = std::string("JDataFilter")
static

Definition at line 27 of file JDAQTags.hh.

const std::string KM3NETDAQ::JACOUSTICDATAFILTER = std::string("AcousticDataFilter")
static

Definition at line 28 of file JDAQTags.hh.

const std::string KM3NETDAQ::JDATAWRITER = std::string("JDataWriter")
static

Definition at line 29 of file JDAQTags.hh.

const std::string KM3NETDAQ::JUNIQUE_ID = std::string("uniqueID")
static

Definition at line 30 of file JDAQTags.hh.

const char KM3NETDAQ::WILD_CARD = '%'
static

Definition at line 34 of file JDAQTags.hh.

const char KM3NETDAQ::EVENTNAME_DELIMETER = ':'
static

Definition at line 35 of file JDAQTags.hh.

const std::string KM3NETDAQ::TOKEN_DELIMETER = std::string("#")
static

Definition at line 36 of file JDAQTags.hh.

const std::string KM3NETDAQ::CLIENTNAME_DELIMETER = std::string("/")
static

Definition at line 37 of file JDAQTags.hh.

const std::string KM3NETDAQ::FILENAME_PREFIX = std::string("%<")
static

Definition at line 38 of file JDAQTags.hh.

const std::string KM3NETDAQ::FILENAME_POSTFIX = std::string(">%")
static

Definition at line 39 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_STRT = JNET::JTag("RC_STRT")
static

Definition at line 43 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_CMD = JNET::JTag("RC_CMD")
static

Definition at line 44 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_REPLY = JNET::JTag("RC_REPLY")
static

Definition at line 45 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_FAIL = JNET::JTag("RC_FAIL")
static

Definition at line 46 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_DOMSIMULATOR = JNET::JTag("RC_DOM")
static

Definition at line 47 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_EVTGENERATOR = JNET::JTag("RC_EVT")
static

Definition at line 48 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_DWRITER = JNET::JTag("RC_DWRT")
static

JTag for JDataWriter

Definition at line 49 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_LOG = JNET::JTag("RC_LOG")
static

JTag for Logger

Definition at line 50 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_DFILTER = JNET::JTag("RC_DFLTR")
static

JTag for JDataFilter

Definition at line 51 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_DQUEUE = JNET::JTag("RC_DQUE")
static

JTag for combined opto-acoustic DataQueue

Definition at line 52 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_DQUEUE_ACS = JNET::JTag("RC_DQUEA")
static

JTag for acoustic-only DataQueue

Definition at line 53 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_DQUEUE_OPT = JNET::JTag("RC_DQUEO")
static

JTag for optical-only DataQueue

Definition at line 54 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_MONITORING_ROUTER = JNET::JTag("RC_MROUT")
static

JTag for Monitoring Router

Definition at line 55 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_AFILTER = JNET::JTag("RC_AFLTR")
static

Definition at line 56 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::RC_ALERT = JNET::JTag("RC_ALRT")
static

JTag for JDataFilter alert

Definition at line 57 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::IO_TIMESLICE = JNET::JTag("IO_TSL")
static

Definition at line 61 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::IO_TIMESLICE_L0 = JNET::JTag("IO_TSL0")
static

Definition at line 62 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::IO_TIMESLICE_L1 = JNET::JTag("IO_TSL1")
static

Definition at line 63 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::IO_TIMESLICE_L2 = JNET::JTag("IO_TSL2")
static

Definition at line 64 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::IO_TIMESLICE_SN = JNET::JTag("IO_TSSN")
static

Definition at line 65 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::IO_EVENT = JNET::JTag("IO_EVT")
static

Definition at line 66 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::IO_SUMMARY = JNET::JTag("IO_SUM")
static

Definition at line 67 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::IO_TRIGGER_PARAMETERS = JNET::JTag("TRG_PARS")
static

Definition at line 68 of file JDAQTags.hh.

const JNET::JTag KM3NETDAQ::IO_MONITORING_DATA = JNET::JTag("IO_MONIT")
static

Definition at line 69 of file JDAQTags.hh.

double KM3NETDAQ::HIGH_RATE_VETO_HZ = 20.0e3
static

High-rate veto [kHz].

Definition at line 15 of file JHighRateVeto.hh.

const int KM3NETDAQ::NUMBER_OF_PMTS = 31
static

Total number of PMTs in module.

Definition at line 26 of file JDAQ.hh.

const JBit KM3NETDAQ::DAQ_WHITE_RABBIT(31)
static

White Rabbit status.

const JBits KM3NETDAQ::DAQ_TDC(0, 30)
static

TDC high-rate veto status.

const JBits KM3NETDAQ::DAQ_FIFO(0, 30)
static

FIFO almost full bits.

const JBit KM3NETDAQ::DAQ_UDP_TRAILER(31)
static

UDP trailer.

const JBits KM3NETDAQ::DAQ_UDP_RECEIVED_PACKETS(0, 15)
static

Mask of UDP received packets.

const JBits KM3NETDAQ::DAQ_UDP_SEQUENCE_NUMBER(16, 31)
static

Mask of UDP sequence number.

const unsigned int KM3NETDAQ::NUMBER_OF_TRIGGER_BITS = sizeof(JTriggerMask_t) * 8
static

Number of trigger bits.

Definition at line 27 of file JDAQTriggerMask.hh.

const JDAQTriggerMask KM3NETDAQ::TRIGGER_MASK_ON = JDAQTriggerMask(~JTriggerMask_t(0))
static

Trigger mask on;.

Definition at line 271 of file JDAQTriggerMask.hh.

const JDAQTriggerMask KM3NETDAQ::TRIGGER_MASK_OFF = JDAQTriggerMask( JTriggerMask_t(0))
static

Trigger mask off;.

Definition at line 272 of file JDAQTriggerMask.hh.