~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/legacy/Interface/RFFieldMap.cc

  • 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:
1
1
// MAUS WARNING: THIS IS LEGACY CODE.
2
2
#include <cmath>
3
 
#include "Interface/Squeal.hh"
 
3
#include "Utils/Exception.hh"
4
4
#include "Interface/RFFieldMap.hh"
5
5
 
6
6
// Constructor to read in a RF cavity field map
60
60
        }
61
61
        catch(...)
62
62
        {
63
 
                throw(Squeal(Squeal::recoverable, "There was a problem accessing the RFFieldMap", "RFFieldMap::ReadMap"));
 
63
                throw(MAUS::Exception(MAUS::Exception::recoverable, "There was a problem accessing the RFFieldMap", "RFFieldMap::ReadMap"));
64
64
        }
65
65
}
66
66
 
203
203
      for( int vpos = pos; vpos < end; ++vpos )
204
204
        variable += fileName[vpos];
205
205
      if(getenv( variable.c_str() ) == NULL) 
206
 
          throw(Squeal(Squeal::recoverable, "Error - "+variable+" environment variable was not defined", "RFFieldMap::ReplaceVariables"));
 
206
          throw(MAUS::Exception(MAUS::Exception::recoverable, "Error - "+variable+" environment variable was not defined", "RFFieldMap::ReplaceVariables"));
207
207
      fullName += std::string( getenv( variable.c_str() ) );
208
208
      pos = end + 1;
209
209
    }