Jpp
Public Member Functions | List of all members
JDETECTOR::JGetPMTStatusBit Struct Reference

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

#include <JPMT.hh>

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

Public Member Functions

 JGetPMTStatusBit ()
 Default constructor. More...
 
JPMT::JPMTStatusBits_t 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 278 of file JPMT.hh.

Constructor & Destructor Documentation

◆ JGetPMTStatusBit()

JDETECTOR::JGetPMTStatusBit::JGetPMTStatusBit ( )
inline

Default constructor.

Definition at line 284 of file JPMT.hh.

285  {
286  using namespace JPP;
287 
288 #define MAKE_ENTRY(A) std::make_pair(getClassname(#A), A)
289 
290  this->insert(MAKE_ENTRY(JPMT::PMT_STATUS));
291  this->insert(MAKE_ENTRY(JPMT::DAQ_STATUS));
292 
293 #undef MAKE_ENTRY
294  }

Member Function Documentation

◆ operator()()

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

Get PMT status bit.

Parameters
keykey
Returns
bit

Definition at line 303 of file JPMT.hh.

304  {
305  return JPP::get_key(*this, key);
306  }

The documentation for this struct was generated from the following file:
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
MAKE_ENTRY
#define MAKE_ENTRY(A)
JDETECTOR::JPMT::PMT_STATUS
Enable (disable) use of PMT data if 0 (1);.
Definition: JPMT.hh:66
JDETECTOR::JPMT::DAQ_STATUS
Enable (disable) use of high-rate veto and FIFO (almost) full if 0 (1);.
Definition: JPMT.hh:67
JLANG::get_key
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