~christopher-hunt08/maus/maus_integrated_kalman

« back to all changes in this revision

Viewing changes to src/common_cpp/FieldTools/SectorField.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:
19
19
#include <vector>
20
20
#include <algorithm>
21
21
 
22
 
#include "src/legacy/Interface/Squeal.hh"
 
22
#include "Utils/Exception.hh"
23
23
 
24
24
#include "src/common_cpp/FieldTools/SectorField.hh"
25
25
 
76
76
                        (double bbMinR, double bbMinY, double bbMinPhi,
77
77
                         double bbMaxR, double bbMaxY, double bbMaxPhi) {
78
78
    if (bbMinR > bbMaxR) {
79
 
        throw(Squeal(Squeal::recoverable,
 
79
        throw(Exception(Exception::recoverable,
80
80
               "Bounding box minimum radius was greater than maximum radius",
81
81
               "SectorField::SetPolarBoundingBox"));
82
82
    }
83
83
    if (bbMinR < 0.) {
84
 
        throw(Squeal(Squeal::recoverable,
 
84
        throw(Exception(Exception::recoverable,
85
85
               "Bounding box radius must be positive",
86
86
               "SectorField::SetPolarBoundingBox"));
87
87
    }
88
88
    if (bbMinY > bbMaxY) {
89
 
        throw(Squeal(Squeal::recoverable,
 
89
        throw(Exception(Exception::recoverable,
90
90
               "Bounding box minimum y was greater than maximum y",
91
91
               "SectorField::SetPolarBoundingBox"));
92
92
    }
93
93
    if (bbMinY > bbMaxY) {
94
 
        throw(Squeal(Squeal::recoverable,
 
94
        throw(Exception(Exception::recoverable,
95
95
               "Bounding box minimum angle was greater than maximum angle",
96
96
               "SectorField::SetPolarBoundingBox"));
97
97
    }
98
98
    if (bbMinPhi < -2.*M_PI || bbMinPhi > 2.*M_PI ||
99
99
        bbMaxPhi < -2.*M_PI || bbMaxPhi > 2.*M_PI) {
100
 
        throw(Squeal(Squeal::recoverable,
 
100
        throw(Exception(Exception::recoverable,
101
101
               "Bounding box angles must be in range -2*M_PI < phi < 2*M_PI",
102
102
               "SectorField::SetPolarBoundingBox"));
103
103
    }