Auxiliary class to uniquely identify PMT readout channel.
More...
#include <JPMTChannel.hh>
Auxiliary class to uniquely identify PMT readout channel.
Definition at line 28 of file JPMTChannel.hh.
◆ JPMTChannel() [1/2]
JDETECTOR::JPMTChannel::JPMTChannel |
( |
| ) |
|
|
inline |
◆ JPMTChannel() [2/2]
Constructor.
- Parameters
-
id | detector identifier |
location | module location |
tdc | PMT readout address |
Definition at line 51 of file JPMTChannel.hh.
◆ toString() [1/2]
std::string JDETECTOR::JPMTChannel::toString |
( |
| ) |
const |
|
inline |
Convert PMT channel to string.
- Returns
- string
Definition at line 65 of file JPMTChannel.hh.
67 std::ostringstream os;
◆ getID()
int JLANG::JObjectID::getID |
( |
| ) |
const |
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 55 of file JObjectID.hh.
◆ setID()
void JLANG::JObjectID::setID |
( |
const int |
id | ) |
|
|
inlineinherited |
Set identifier.
- Parameters
-
Definition at line 66 of file JObjectID.hh.
◆ less() [1/3]
bool JLANG::JObjectID::less |
( |
const JObjectID & |
object | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 78 of file JObjectID.hh.
80 return this->
getID() <
object.getID();
◆ less() [2/3]
bool JLANG::JObjectID::less |
( |
const int |
id | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if this identifier less than given identifier; else false
Definition at line 90 of file JObjectID.hh.
92 return this->
getID() < id;
◆ more()
bool JLANG::JObjectID::more |
( |
const int |
id | ) |
const |
|
inlineinherited |
More than method.
- Parameters
-
- Returns
- true if this identifier greater than given identifier; else false
Definition at line 102 of file JObjectID.hh.
104 return this->
getID() > id;
◆ getLocation() [1/2]
Get location.
- Returns
- location
Definition at line 68 of file JModuleLocation.hh.
70 return static_cast<const JModuleLocation&>(*
this);
◆ getLocation() [2/2]
Get location.
- Returns
- location
Definition at line 79 of file JModuleLocation.hh.
81 return static_cast<JModuleLocation&>(*
this);
◆ setLocation()
void JDETECTOR::JModuleLocation::setLocation |
( |
const JModuleLocation & |
location | ) |
|
|
inlineinherited |
Set location.
- Parameters
-
Definition at line 90 of file JModuleLocation.hh.
92 static_cast<JModuleLocation&>(*
this) = location;
◆ toString() [2/2]
std::string JDETECTOR::JModuleLocation::toString |
( |
const std::string & |
fmt, |
|
|
const std::string |
target = "%" |
|
) |
| const |
|
inlineinherited |
Convert module loation to string.
The targets target
in the format string fmt
are consecutively replaced by floor
and string
.
- Parameters
-
- Returns
- string
Definition at line 117 of file JModuleLocation.hh.
121 buffer.replace(target,
string, 1);
122 buffer.replace(target,
floor, 1);
◆ getString()
int JDETECTOR::JModuleLocation::getString |
( |
| ) |
const |
|
inlineinherited |
◆ getFloor()
int JDETECTOR::JModuleLocation::getFloor |
( |
| ) |
const |
|
inlineinherited |
◆ less() [3/3]
bool JDETECTOR::JModuleLocation::less |
( |
const JModuleLocation & |
location | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if first location before second location; else false
Definition at line 156 of file JModuleLocation.hh.
◆ getTDC()
int JDETECTOR::JPMTReadoutAddress::getTDC |
( |
| ) |
const |
|
inlineinherited |
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JPMTChannel & |
object |
|
) |
| |
|
friend |
Read PMT channel.
- Parameters
-
in | input stream |
object | PMT channel |
- Returns
- input stream
Definition at line 82 of file JPMTChannel.hh.
84 in >> static_cast<JObjectID&> (
object);
85 in >> static_cast<JModuleLocation&> (
object);
86 in >> static_cast<JPMTReadoutAddress&>(
object);
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JPMTChannel & |
object |
|
) |
| |
|
friend |
Write PMT channel.
- Parameters
-
out | output stream |
object | PMT channel |
- Returns
- output stream
Definition at line 99 of file JPMTChannel.hh.
101 out << static_cast<const JObjectID&> (
object) <<
' ';
102 out << static_cast<const JModuleLocation&> (
object) <<
' ';
103 out << static_cast<const JPMTReadoutAddress&>(
object);
◆ __id
int JLANG::JObjectID::__id |
|
protectedinherited |
◆ string
int JDETECTOR::JModuleLocation::string |
|
protectedinherited |
◆ floor
int JDETECTOR::JModuleLocation::floor |
|
protectedinherited |
◆ tdc
int JDETECTOR::JPMTReadoutAddress::tdc |
|
inherited |
The documentation for this class was generated from the following file: