~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/legacy/Optics/PhaseSpaceVector.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:
3
3
#include "PhaseSpaceVector.hh"
4
4
#include "src/legacy/Interface/Squeak.hh"
5
5
#include "src/legacy/Config/ModuleConverter.hh"
 
6
#include "Utils/Exception.hh"
6
7
 
7
8
const double      PhaseSpaceVector::c_l         = CLHEP::c_light;
8
9
const int         PhaseSpaceVector::nVarNames   = 21;
192
193
                case 23: setEy(value); break;
193
194
                case 24: setEz(value); break;
194
195
                default: 
195
 
                        throw Squeal(Squeal::recoverable, "Variable "+name+" not recognised", "PhaseSpaceVector::set(double, string)");
 
196
                        throw MAUS::Exception(MAUS::Exception::recoverable, "Variable "+name+" not recognised", "PhaseSpaceVector::set(double, string)");
196
197
        }
197
198
}
198
199
 
213
214
 
214
215
PhaseSpaceVector PhaseSpaceVector::interpolate(std::vector<PhaseSpaceVector> psv, std::string variableName, double variable)
215
216
{
216
 
  if(psv.size() < 1) throw(Squeal(Squeal::recoverable, "Interpolating PhaseSpaceVector array with length 0", "PhaseSpaceVector::interpolate"));
 
217
  if(psv.size() < 1) throw(MAUS::Exception(MAUS::Exception::recoverable, "Interpolating PhaseSpaceVector array with length 0", "PhaseSpaceVector::interpolate"));
217
218
        int    point = -1;
218
219
        int    i     = 0;
219
220
        double delta = 0;