Address of PMT in detector data structure.
More...
#include <JPMTAddress.hh>
Address of PMT in detector data structure.
The address of a PMT consists of a pair of integer values, where
- JPMTAddress::first refers to the index of the parent module in the detector data structure; and
- JPMTAddress::second refers to the index of the PMT in the corresponding module data structure.
This class implements the JLANG::JComparable interface.
Definition at line 32 of file JPMTAddress.hh.
◆ JPMTAddress() [1/2]
JDETECTOR::JPMTAddress::JPMTAddress |
( |
| ) |
|
|
inline |
◆ JPMTAddress() [2/2]
JDETECTOR::JPMTAddress::JPMTAddress |
( |
const JModuleAddress & |
module, |
|
|
const int |
pmt |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
module | module address |
pmt | PMT index |
Definition at line 52 of file JPMTAddress.hh.
◆ less()
bool JDETECTOR::JPMTAddress::less |
( |
const JPMTAddress & |
address | ) |
const |
|
inline |
Less than method.
- Parameters
-
- Returns
- true if this PMT address is less than given PMT address; else false
Definition at line 65 of file JPMTAddress.hh.
◆ equals()
bool JDETECTOR::JModuleAddress::equals |
( |
const JModuleAddress & |
address | ) |
const |
|
inlineinherited |
Equal method.
- Parameters
-
- Returns
- true if this module address equal to given module address; else false
Definition at line 58 of file JModuleAddress.hh.
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JPMTAddress & |
object |
|
) |
| |
|
friend |
Read PMT address from input.
- Parameters
-
in | input stream |
object | PMT address |
- Returns
- input stream
Definition at line 81 of file JPMTAddress.hh.
83 return in >> static_cast<JModuleAddress&>(
object) >>
object.second;
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JPMTAddress & |
object |
|
) |
| |
|
friend |
Write PMT address to output.
- Parameters
-
out | output stream |
object | PMT address |
- Returns
- output stream
Definition at line 94 of file JPMTAddress.hh.
96 return out << static_cast<const JModuleAddress&>(
object) <<
' ' <<
object.second;
◆ second
int JDETECTOR::JPMTAddress::second |
index of PMT in module data structure.
Definition at line 100 of file JPMTAddress.hh.
◆ first
int JDETECTOR::JModuleAddress::first |
|
inherited |
The documentation for this class was generated from the following file: