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.
JDETECTOR::JPMTChannel::JPMTChannel |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 37 of file JPMTChannel.hh.
JObjectID()
Default constructor.
JLocation()
Default constructor.
JPMTReadoutAddress()
Default constructor.
Constructor.
- Parameters
-
id | detector identifier |
location | module location |
tdc | PMT readout address |
Definition at line 51 of file JPMTChannel.hh.
JObjectID()
Default constructor.
JLocation()
Default constructor.
JPMTReadoutAddress()
Default constructor.
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;
int JLANG::JObjectID::getID |
( |
| ) |
const |
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 50 of file JObjectID.hh.
int& JLANG::JObjectID::getID |
( |
| ) |
|
|
inlineinherited |
Get identifier.
- Returns
- identifier
Definition at line 61 of file JObjectID.hh.
void JLANG::JObjectID::setID |
( |
const int |
id | ) |
|
|
inlineinherited |
Set identifier.
- Parameters
-
Definition at line 72 of file JObjectID.hh.
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 84 of file JObjectID.hh.
86 return this->
getID() <
object.getID();
int getID() const
Get identifier.
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 96 of file JObjectID.hh.
98 return this->
getID() < id;
int getID() const
Get identifier.
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 108 of file JObjectID.hh.
110 return this->
getID() > id;
int getID() const
Get identifier.
const JLocation& JDETECTOR::JLocation::getLocation |
( |
| ) |
const |
|
inlineinherited |
Get location.
- Returns
- location
Definition at line 69 of file JLocation.hh.
71 return static_cast<const JLocation&
>(*this);
Logical location of module.
JLocation& JDETECTOR::JLocation::getLocation |
( |
| ) |
|
|
inlineinherited |
Get location.
- Returns
- location
Definition at line 80 of file JLocation.hh.
Logical location of module.
void JDETECTOR::JLocation::setLocation |
( |
const JLocation & |
location | ) |
|
|
inlineinherited |
Set location.
- Parameters
-
Definition at line 91 of file JLocation.hh.
93 static_cast<JLocation&
>(*this) = location;
Logical location of module.
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 118 of file JLocation.hh.
122 buffer.replace(target,
string, 1);
123 buffer.replace(target,
floor, 1);
Wrapper class around STL string class.
int JDETECTOR::JLocation::getString |
( |
| ) |
const |
|
inlineinherited |
Get string number.
- Returns
- string number
Definition at line 134 of file JLocation.hh.
int JDETECTOR::JLocation::getFloor |
( |
| ) |
const |
|
inlineinherited |
Get floor number.
- Returns
- floor number
Definition at line 145 of file JLocation.hh.
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 157 of file JLocation.hh.
int getFloor() const
Get floor number.
int getString() const
Get string number.
int JDETECTOR::JPMTReadoutAddress::getTDC |
( |
| ) |
const |
|
inlineinherited |
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.
JObjectID()
Default constructor.
Logical location of module.
Data structure for PMT readout address.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
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 JLocation&> (object) <<
' ';
103 out << static_cast<const JPMTReadoutAddress&>(object);
int JLANG::JObjectID::__id |
|
protectedinherited |
int JDETECTOR::JLocation::string |
|
protectedinherited |
int JDETECTOR::JLocation::floor |
|
protectedinherited |
int JDETECTOR::JPMTReadoutAddress::tdc |
|
inherited |
The documentation for this class was generated from the following file: