~chris-rogers/maus/emr_mc_digitization

« back to all changes in this revision

Viewing changes to src/legacy/BeamTools/BTCombinedFunction.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 "BTCombinedFunction.hh"
3
 
#include "Interface/Squeal.hh"
 
3
#include "Utils/Exception.hh"
4
4
#include "Interface/Squeak.hh"
5
5
 
6
6
BTCombinedFunction::BTCombinedFunction
69
69
                        return b0 * _fieldIndex*(_fieldIndex+1)/(2*_radiusOfCurvature*_radiusOfCurvature)*_width/2.*_width/2.;
70
70
                }
71
71
                default:
72
 
                        throw (Squeal(Squeal::nonRecoverable, "Combined Function pole out of range", "BTCombinedFunction::GetFieldAtPoleTip(int)"));
 
72
                        throw (MAUS::Exception(MAUS::Exception::nonRecoverable, "Combined Function pole out of range", "BTCombinedFunction::GetFieldAtPoleTip(int)"));
73
73
        }
74
74
}
75
75