~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/Utils/KLChannelMap.cc

  • Committer: Durga Rajaram
  • Date: 2014-07-16 15:13:05 UTC
  • mfrom: (659.1.92 cand)
  • Revision ID: durga@fnal.gov-20140716151305-q27rv1y9p03v9lks
Tags: MAUS-v0.9, MAUS-v0.9.0
MAUS-v0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
void KLChannelMap::InitFromCDB() {}
65
65
 
66
 
KLChannelKey* KLChannelMap::find(DAQChannelKey *daqKey) {
 
66
KLChannelKey* KLChannelMap::find(DAQChannelKey *daqKey) const {
67
67
  if (daqKey->eqType() == 120) {
68
68
    for (unsigned int i = 0;i < _klKey.size();i++) {
69
69
      if ( _fadcKey[i]->ldc()     == daqKey->ldc() &&
76
76
  return NULL;
77
77
}
78
78
 
79
 
KLChannelKey* KLChannelMap::find(std::string daqKeyStr) {
 
79
KLChannelKey* KLChannelMap::find(std::string daqKeyStr) const {
80
80
  DAQChannelKey xDaqKey;
81
81
  stringstream xConv;
82
82
  try {
106
106
  }
107
107
}
108
108
 
109
 
bool KLChannelKey::operator==( KLChannelKey const key ) {
 
109
bool KLChannelKey::operator==( KLChannelKey const key ) const {
110
110
  if ( _cell == key._cell &&
111
111
       _pmt == key._pmt &&
112
112
       _detector == key._detector) {
116
116
  }
117
117
}
118
118
 
119
 
bool KLChannelKey::operator!=( KLChannelKey const key ) {
 
119
bool KLChannelKey::operator!=( KLChannelKey const key ) const {
120
120
  if ( _cell == key._cell &&
121
121
       _pmt == key._pmt &&
122
122
       _detector == key._detector) {