~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/legacy/BeamTools/BTPillBox.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:
6
6
#include "BTField.hh"
7
7
#include "BTPillBox.hh"
8
8
#include "BTPhaser.hh"
9
 
#include "Interface/Squeal.hh"
 
9
#include "Utils/Exception.hh"
10
10
#include "micegsl.hh"
11
11
#include <string>
12
12
 
210
210
        else if(phaseModel == "timevarying")                    return normal;
211
211
        else if(phaseModel == "electrostatic")                  return electrostatic;
212
212
        else if(phaseModel == "nofield"||phaseModel == "none")  return noField;
213
 
        else throw(Squeal(Squeal::recoverable, "Did not recognise field phasing model "+phaseModel, "BTPillBox::SetFieldDuringPhasing"));
 
213
        else throw(MAUS::Exception(MAUS::Exception::recoverable, "Did not recognise field phasing model "+phaseModel, "BTPillBox::SetFieldDuringPhasing"));
214
214
        return noField;
215
215
}
216
216