Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JDETECTOR::JGetPMTStatusBit Struct Reference

Auxiliary class to map key to PMT status bit. More...

#include <JPMTStatus.hh>

Inheritance diagram for JDETECTOR::JGetPMTStatusBit:
JEEP::JGetStatusBit std::map< std::string, int >

Public Member Functions

 JGetPMTStatusBit ()
 Default constructor.
 
int operator() (const std::string &key) const
 Get status bit.
 

Detailed Description

Auxiliary class to map key to PMT status bit.

Definition at line 34 of file JPMTStatus.hh.

Constructor & Destructor Documentation

◆ JGetPMTStatusBit()

JDETECTOR::JGetPMTStatusBit::JGetPMTStatusBit ( )
inline

Default constructor.

Definition at line 40 of file JPMTStatus.hh.

41 {
42#define MAKE_ENTRY(A) std::make_pair(#A, A)
43
44 this->insert(MAKE_ENTRY(PMT_DISABLE));
46 this->insert(MAKE_ENTRY(FIFO_FULL_DISABLE));
47 this->insert(MAKE_ENTRY(UDP_COUNTER_DISABLE));
48 this->insert(MAKE_ENTRY(UDP_TRAILER_DISABLE));
49 this->insert(MAKE_ENTRY(OUT_OF_SYNC));
50
51#undef MAKE_ENTRY
52 }
#define MAKE_ENTRY(A)
static const int UDP_COUNTER_DISABLE
Enable (disable) use of UDP packet counter test if this status bit is 0 (1);.
Definition pmt_status.hh:15
static const int UDP_TRAILER_DISABLE
Enable (disable) use of UDP packet trailer test if this status bit is 0 (1);.
Definition pmt_status.hh:16
static const int FIFO_FULL_DISABLE
Enable (disable) use of FIFO (almost) full test if this status bit is 0 (1);.
Definition pmt_status.hh:14
static const int OUT_OF_SYNC
Enable (disable) synchronous signal from this PMT if this status bit is 0 (1);.
Definition pmt_status.hh:17
static const int HIGH_RATE_VETO_DISABLE
Enable (disable) use of high-rate veto test if this status bit is 0 (1);.
Definition pmt_status.hh:13
static const int PMT_DISABLE
KM3NeT Data Definitions v3.6.0 https://git.km3net.de/common/km3net-dataformat.
Definition pmt_status.hh:12

Member Function Documentation

◆ operator()()

int JEEP::JGetStatusBit::operator() ( const std::string & key) const
inlineinherited

Get status bit.

Parameters
keykey
Returns
bit

Definition at line 216 of file JStatus.hh.

217 {
218 return this->at(key);
219 }

The documentation for this struct was generated from the following file: