Go to the documentation of this file. 1 #ifndef __JTRIGGER__JDOMTOPMTMASKMAP__
2 #define __JTRIGGER__JDOMTOPMTMASKMAP__
30 public std::map<JModuleIdentifier, JPMTMask>,
57 for(;
n !=0 && in; --
n) {
61 if(!(masks.insert(std::make_pair(
id,mask))).second) {
62 throw JException(
"Key already exists in map.");
78 dommask!=masks.end();++dommask)
80 out << dommask->first <<
' ' << dommask->second << endl;
97 for(;
n !=0 && in; --
n) {
101 if(!(insert(std::make_pair(
id,mask))).second) {
102 throw JException(
"Key already exists in map.");
115 unsigned int n = size();
120 dommask!=this->end(); ++dommask )
122 out << dommask->first
Interface for binary input.
virtual JReader & read(JReader &in)
Read from input.
virtual JWriter & write(JWriter &out) const
Write to output.
Forward declaration of binary output.
JLANG::JObjectID JModuleIdentifier
const JPMTMask & getPMTMask(const JModuleIdentifier &id)
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Interface for binary output.
friend std::ostream & operator<<(std::ostream &out, const JDOMToPMTMaskMap &masks)
friend std::istream & operator>>(std::istream &in, JDOMToPMTMaskMap &masks)
Auxiliary class for pmt mask.