~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/common_cpp/Utils/DAQChannelMap.hh

  • Committer: Chris Rogers
  • Date: 2014-04-16 11:48:45 UTC
  • mfrom: (707 merge)
  • mto: This revision was merged to the branch mainline in revision 711.
  • Revision ID: chris.rogers@stfc.ac.uk-20140416114845-h3u3q7pdcxkxvovs
Update to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <algorithm>
30
30
#include <fstream>
31
31
 
32
 
#include "src/legacy/Interface/Squeal.hh"
 
32
#include "Utils/Exception.hh"
 
33
 
 
34
namespace MAUS {
33
35
 
34
36
/** Identifier for a single DAQ channel.
35
37
 * This class is used to hold and manage all the information needed
44
46
  DAQChannelKey(int l, int g, int ch, int e, std::string d)
45
47
  :_ldcId(l), _geo(g), _channel(ch), _eqType(e), _detector(d) {}
46
48
 
47
 
  explicit DAQChannelKey(std::string keyStr) throw(Squeal);
 
49
  explicit DAQChannelKey(std::string keyStr) throw(Exception);
48
50
 
49
51
  virtual ~DAQChannelKey() {}
50
52
 
52
54
  bool operator!=( DAQChannelKey key );
53
55
 
54
56
  friend std::ostream& operator<< ( std::ostream& stream, DAQChannelKey key );
55
 
  friend std::istream& operator>> ( std::istream& stream, DAQChannelKey &key )  throw(Squeal);
 
57
  friend std::istream& operator>> ( std::istream& stream, DAQChannelKey &key )  throw(Exception);
56
58
 
57
59
  std::string detector() {return _detector;}
58
60
 
135
137
  std::vector<DAQChannelKey*> _chKey;
136
138
};
137
139
 
 
140
}  // namespace MAUS
138
141
 
139
142
#endif
140
143