1 #ifndef __JTRIGGER__JDOMTOPMTMASKMAP__
2 #define __JTRIGGER__JDOMTOPMTMASKMAP__
18 namespace JPP {
using namespace JTRIGGER; }
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
friend std::istream & operator>>(std::istream &in, JDOMToPMTMaskMap &masks)
virtual JWriter & write(JWriter &out) const override
Write to output.
Interface for binary output.
friend std::ostream & operator<<(std::ostream &out, const JDOMToPMTMaskMap &masks)
Auxiliary class for pmt mask.
JLANG::JObjectID JModuleIdentifier
Forward declaration of binary output.
Interface for binary input.
virtual JReader & read(JReader &in) override
Read from input.
alias put_queue eval echo n
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 typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
const JPMTMask & getPMTMask(const JModuleIdentifier &id)