Go to the documentation of this file. 1 #ifndef __JTRIGGER__JPMTMASK__
2 #define __JTRIGGER__JPMTMASK__
187 unsigned int bit = 0;
189 for (std::string::const_reverse_iterator i = buffer.rbegin(); i != buffer.rend() && bit !=
NUMBER_OF_PMT_BITS; ++i, ++bit) {
208 unsigned int bit = 0;
210 for (std::string::reverse_iterator i = buffer.rbegin(); i != buffer.rend() && bit !=
NUMBER_OF_PMT_BITS; ++i, ++bit) {
Interface for binary input.
JPMTMask & addPMTMask(const JPMTMask &mask)
Add pmt pmt mask.
JPMTMask_t getPMTMask() const
Get pmt bit pattern.
friend std::ostream & operator<<(std::ostream &out, const JPMTMask &mask)
Write pmt mask to output.
JPMTMask(const JPMTMask_t mask)
Constructor.
static int sizeOf()
Get size of object.
JPMTMask()
Default constructor.
JPMTMask & addPMTMask(const JPMTMask_t mask)
Add pmt pmt mask.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
virtual ~JPMTMask()
Virtual destructor.
bool hasPMTBit(const unsigned int bit) const
Check pmt bit.
JPMTMask(const std::string &buffer)
Constructor.
Interface for binary output.
JPMTMask_t getPMTMask(const unsigned int bit)
Convert pmt bit to pmt mask.
friend JWriter & operator<<(JWriter &out, const JPMTMask &mask)
Write JPMTMask to output.
friend JReader & operator>>(JReader &in, JPMTMask &mask)
Read JPMTMask from input.
bool hasPMT(const JPMTReadoutAddress &channel) const
check pmt
std::string toString() const
Convert pmt mask.
JPMTMask & addPMT(const JPMTReadoutAddress &channel)
Add pmt channel.
virtual JReader & read(JReader &in)
Auxiliary class for pmt mask.
virtual JWriter & write(JWriter &out) const
static const unsigned int NUMBER_OF_PMT_BITS
Number of pmt bits.
JPMTMask & addPMTBit(const unsigned int bit)
Add pmt bit.
static JPMTMask valueOf(const std::string &buffer)
Extract pmt mask.
unsigned int JPMTMask_t
Type definition of pmt mask.
Data structure for PMT readout address.
int getTDC() const
Get TDC.
friend std::istream & operator>>(std::istream &in, JPMTMask &mask)
Read pmt mask from input.