~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/legacy/BeamTools/BTCombinedFunction.cc

  • Committer: Durga Rajaram
  • Date: 2014-01-14 07:07:02 UTC
  • mfrom: (659.1.80 relcand)
  • Revision ID: durga@fnal.gov-20140114070702-2l1fuj1w6rraw7xe
Tags: MAUS-v0.7.6
MAUS-v0.7.6

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