Auxiliary class to uniquely identify PMT readout channel.
More...
#include <JPMTChannel.hh>
|
template<class JHead_t , class JTail_t > |
static bool | lt (const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JTail_t > > &type) |
| Less than method for composite data types. More...
|
|
template<class JHead_t > |
static bool | lt (const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JNullType > > &type) |
| Less than method for composite data types. More...
|
|
Auxiliary class to uniquely identify PMT readout channel.
Definition at line 31 of file JPMTChannel.hh.
◆ JPMTChannel() [1/2]
JDETECTOR::JPMTChannel::JPMTChannel |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 40 of file JPMTChannel.hh.
JLocation()
Default constructor.
JPMTReadoutAddress()
Default constructor.
◆ JPMTChannel() [2/2]
Constructor.
- Parameters
-
location | module location |
tdc | PMT readout address |
Definition at line 52 of file JPMTChannel.hh.
◆ getLocation() [1/2]
const JLocation& JDETECTOR::JLocation::getLocation |
( |
| ) |
const |
|
inlineinherited |
Get location.
- Returns
- location
Definition at line 70 of file JLocation.hh.
72 return static_cast<const JLocation&
>(*this);
Logical location of module.
◆ getLocation() [2/2]
JLocation& JDETECTOR::JLocation::getLocation |
( |
| ) |
|
|
inlineinherited |
Get location.
- Returns
- location
Definition at line 81 of file JLocation.hh.
◆ setLocation()
void JDETECTOR::JLocation::setLocation |
( |
const JLocation & |
location | ) |
|
|
inlineinherited |
◆ toString() [1/2]
std::string JDETECTOR::JLocation::toString |
( |
| ) |
const |
|
inlineinherited |
Convert module location to string.
- Returns
- string
Definition at line 103 of file JLocation.hh.
std::string toString() const
Convert module location to string.
◆ toString() [2/2]
std::string JDETECTOR::JLocation::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 119 of file JLocation.hh.
123 buffer.replace(
target,
string, 1);
Wrapper class around STL string class.
◆ getString()
int JDETECTOR::JLocation::getString |
( |
| ) |
const |
|
inlineinherited |
Get string number.
- Returns
- string number
Definition at line 135 of file JLocation.hh.
◆ getFloor()
int JDETECTOR::JLocation::getFloor |
( |
| ) |
const |
|
inlineinherited |
Get floor number.
- Returns
- floor number
Definition at line 146 of file JLocation.hh.
◆ less() [1/2]
bool JDETECTOR::JLocation::less |
( |
const JLocation & |
location | ) |
const |
|
inlineinherited |
Less than method.
- Parameters
-
- Returns
- true if first location before second location; else false
Definition at line 158 of file JLocation.hh.
int getFloor() const
Get floor number.
int getString() const
Get string number.
◆ less() [2/2]
Less than method.
- Parameters
-
address | PMT readout address |
- Returns
- true if this address before given address; else false
Definition at line 58 of file JPMTReadoutAddress.hh.
60 return this->
tdc < address.
tdc;
◆ getTDC()
int JDETECTOR::JPMTReadoutAddress::getTDC |
( |
| ) |
const |
|
inlineinherited |
◆ lt() [1/2]
template<class JClass_t , class JTypelist_t >
template<class JHead_t , class JTail_t >
|
inlinestaticprotectedinherited |
Less than method for composite data types.
- Parameters
-
first | first object |
second | second object |
type | type |
- Returns
- true if first object is less than second object; else false
Definition at line 43 of file JMultiComparable.hh.
47 if (
static_cast<const JHead_t&
>(first) <
48 static_cast<const JHead_t&
>(second))
50 else if (
static_cast<const JHead_t&
>(second) <
51 static_cast<const JHead_t&
>(first))
static bool lt(const JClass_t &first, const JClass_t &second, const JType< JTypeList< JHead_t, JTail_t > > &type)
Less than method for composite data types.
Auxiliary class for a type holder.
◆ lt() [2/2]
template<class JClass_t , class JTypelist_t >
template<class JHead_t >
|
inlinestaticprotectedinherited |
Less than method for composite data types.
- Parameters
-
first | first object |
second | second object |
type | type |
- Returns
- true if first object is less than second object; else false
Definition at line 67 of file JMultiComparable.hh.
71 return (
static_cast<const JHead_t&
>(first) <
72 static_cast<const JHead_t&
>(second));
◆ 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 66 of file JPMTChannel.hh.
Data structure for PMT readout address.
◆ 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 82 of file JPMTChannel.hh.
84 out << static_cast<const JLocation&> (
object) <<
' ';
85 out << static_cast<const JPMTReadoutAddress&>(
object);
◆ string
int JDETECTOR::JLocation::string |
|
protectedinherited |
◆ floor
int JDETECTOR::JLocation::floor |
|
protectedinherited |
◆ tdc
int JDETECTOR::JPMTReadoutAddress::tdc |
|
inherited |
The documentation for this class was generated from the following file: