PMT identifier.
More...
#include <JDAQPMTIdentifier.hh>
PMT identifier.
Definition at line 25 of file JDAQPMTIdentifier.hh.
◆ JDAQPMTIdentifier() [1/2]
KM3NETDAQ::JDAQPMTIdentifier::JDAQPMTIdentifier |
( |
| ) |
|
|
inline |
◆ JDAQPMTIdentifier() [2/2]
KM3NETDAQ::JDAQPMTIdentifier::JDAQPMTIdentifier |
( |
const JDAQModuleIdentifier & |
id, |
|
|
const int |
pmt_address |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
id | module identifier |
pmt_address | PMT address |
Definition at line 44 of file JDAQPMTIdentifier.hh.
◆ getPMTIdentifier()
◆ setPMTIdentifier()
◆ getPMTAddress()
int KM3NETDAQ::JDAQPMTIdentifier::getPMTAddress |
( |
| ) |
const |
|
inline |
◆ compare()
Compare PMT identifiers.
The comparison is applied to the module identifer and to the PMT address. If the module identifier or PMT address is -1
, the corresponding comparison evaluates to true
.
- Parameters
-
first | PMT identifier |
second | PMT identifier |
- Returns
- true if first PMT equal second PMT; else false
Definition at line 158 of file JDAQPMTIdentifier.hh.
164 first .getPMTAddress() == -1 ||
165 second.getPMTAddress() == -1));
◆ sizeOf()
static int KM3NETDAQ::JDAQPMTIdentifier::sizeOf |
( |
| ) |
|
|
inlinestatic |
◆ ClassDefNV() [1/2]
◆ getModuleIdentifier()
◆ setModuleIdentifier()
◆ getModuleID()
int KM3NETDAQ::JDAQModuleIdentifier::getModuleID |
( |
| ) |
const |
|
inlineinherited |
◆ ClassDefNV() [2/2]
◆ operator>> [1/2]
Read PMT identifier from input.
- Parameters
-
in | input stream |
pmt | PMT identifier |
- Returns
- input stream
Definition at line 91 of file JDAQPMTIdentifier.hh.
93 in >> static_cast<JDAQModuleIdentifier&>(pmt);
◆ operator<< [1/2]
Write PMT identifier to output.
- Parameters
-
out | output stream |
pmt | PMT identifier |
- Returns
- output stream
Definition at line 107 of file JDAQPMTIdentifier.hh.
109 out << static_cast<const JDAQModuleIdentifier&>(pmt) <<
' ';
◆ operator>> [2/2]
Read PMT identifier from input.
- Parameters
-
in | reader |
pmt | PMT identifier |
- Returns
- reader
Definition at line 123 of file JDAQPMTIdentifier.hh.
125 in >> static_cast<JDAQModuleIdentifier&>(pmt);
◆ operator<< [2/2]
Write PMT identifier to output.
- Parameters
-
out | writer |
pmt | PMT identifier |
- Returns
- writer
Definition at line 139 of file JDAQPMTIdentifier.hh.
141 out << static_cast<const JDAQModuleIdentifier&>(pmt);
◆ address
int KM3NETDAQ::JDAQPMTIdentifier::address |
|
protected |
◆ id
int KM3NETDAQ::JDAQModuleIdentifier::id |
|
protectedinherited |
The documentation for this class was generated from the following file: