Jpp  pmt_effective_area_update
the software that should make you happy
 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 207 of file JStatus.hh.

Constructor & Destructor Documentation

JDETECTOR::JGetPMTStatusBit::JGetPMTStatusBit ( )
inline

Default constructor.

Definition at line 213 of file JStatus.hh.

214  {
215  using namespace JPP;
216 
217 #define MAKE_ENTRY(A) std::make_pair(getClassname(#A), A)
218 
219  this->insert(MAKE_ENTRY(PMT_DISABLE));
220  this->insert(MAKE_ENTRY(HIGH_RATE_VETO_DISABLE));
221  this->insert(MAKE_ENTRY(FIFO_FULL_DISABLE));
222  this->insert(MAKE_ENTRY(UDP_COUNTER_DISABLE));
223  this->insert(MAKE_ENTRY(UDP_TRAILER_DISABLE));
224  this->insert(MAKE_ENTRY(OUT_OF_SYNC));
225 
226 #undef MAKE_ENTRY
227  }
#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-15-g59d2e2b 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 236 of file JStatus.hh.

237  {
238  return this->at(key);
239  }

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