Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JDETECTOR::JGetPMTStatusBit Struct Reference

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

#include <JStatus.hh>

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

Public Member Functions

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

Detailed Description

Auxiliary class to map key to PMT status bit.

Definition at line 208 of file JStatus.hh.

Constructor & Destructor Documentation

JDETECTOR::JGetPMTStatusBit::JGetPMTStatusBit ( )
inline

Default constructor.

Definition at line 214 of file JStatus.hh.

215  {
216  using namespace JPP;
217 
218 #define MAKE_ENTRY(A) std::make_pair(getClassname(#A), A)
219 
220  this->insert(MAKE_ENTRY(PMT_DISABLE));
221  this->insert(MAKE_ENTRY(HIGH_RATE_VETO_DISABLE));
222  this->insert(MAKE_ENTRY(FIFO_FULL_DISABLE));
223  this->insert(MAKE_ENTRY(UDP_COUNTER_DISABLE));
224  this->insert(MAKE_ENTRY(UDP_TRAILER_DISABLE));
225  this->insert(MAKE_ENTRY(OUT_OF_SYNC));
226 
227 #undef MAKE_ENTRY
228  }
#define MAKE_ENTRY(A)
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 v2.0.0 https://git.km3net.de/common/km3net-dataformat.
Definition: pmt_status.hh:12
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.
Definition: pmt_status.hh:17
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

Member Function Documentation

int JDETECTOR::JGetPMTStatusBit::operator() ( const std::string &  key) const
inline

Get PMT status bit.

Parameters
keykey
Returns
bit

Definition at line 237 of file JStatus.hh.

238  {
239  return JPP::get_key(*this, key);
240  }
const JValue_t & get_key(const std::map< JKey_t, JValue_t, JComparator_t, JAllocator_t > &map, const JKey_t key)
Get value in map.
Definition: JSTDToolkit.hh:31

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