Jpp
|
Auxiliary class for controlling PMT status. More...
#include <JStatus.hh>
Public Types | |
enum | JPMTStatusBits_t { PMT_DISABLE = 0, HIGH_RATE_VETO_DISABLE = 1, FIFO_FULL_DISABLE = 2, UDP_COUNTER_DISABLE = 3, UDP_TRAILER_DISABLE = 4 } |
Enumeration of status bits. More... | |
Public Member Functions | |
JStatus () | |
Default constructor. More... | |
JStatus (const int status) | |
Constructor. More... | |
const JStatus & | getStatus () const |
Get status. More... | |
JStatus | getStatus () |
Get status. More... | |
void | setStatus (const JStatus &status) |
Set status. More... | |
bool | equals (const JStatus &status) const |
Equal method. More... | |
bool | has (const JPMTStatusBits_t bit) const |
Test PMT status. More... | |
void | set (const JPMTStatusBits_t bit) |
Set PMT status. More... | |
void | reset (const JPMTStatusBits_t bit) |
Reset PMT status. More... | |
void | print (std::ostream &out) const |
Print status. More... | |
Protected Attributes | |
int | status |
Friends | |
std::istream & | operator>> (std::istream &in, JStatus &status) |
Read status from input. More... | |
std::ostream & | operator<< (std::ostream &out, const JStatus &status) |
Write status to output. More... | |
JReader & | operator>> (JReader &in, JStatus &status) |
Read status from input. More... | |
JWriter & | operator<< (JWriter &out, const JStatus &status) |
Write status to output. More... | |
Auxiliary class for controlling PMT status.
The various status are controlled using a bitwise data field.
The corresponding bits are defined via an internal enumeration.
Definition at line 40 of file JStatus.hh.
Enumeration of status bits.
Additional status bits should be included in JGetPMTStatusBit::JGetPMTStatusBit.
Definition at line 48 of file JStatus.hh.
|
inline |
Default constructor.
Definition at line 60 of file JStatus.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Equal method.
status | status |
Definition at line 114 of file JStatus.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Print status.
Print PMT status.
out | output stream |
Definition at line 342 of file JStatus.hh.
|
friend |
Read status from input.
in | input stream |
status | status |
Definition at line 168 of file JStatus.hh.
|
friend |
Write status to output.
out | output stream |
status | status |
Definition at line 181 of file JStatus.hh.
Read status from input.
in | reader |
status | status |
Definition at line 194 of file JStatus.hh.
Write status to output.
out | writer |
status | status |
Definition at line 207 of file JStatus.hh.
|
protected |
Definition at line 213 of file JStatus.hh.