~sophie-middleton08/maus/devel

« back to all changes in this revision

Viewing changes to src/common_cpp/Simulation/MAUSPrimaryGeneratorAction.cc

  • Committer: Chris Rogers
  • Date: 2013-04-30 15:29:46 UTC
  • mfrom: (659.1.64 release-candidate)
  • Revision ID: chris.rogers@stfc.ac.uk-20130430152946-7xe8q7zwcn3a4uhs
Tags: MAUS-v0.5.2
MAUS-v0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
#include "src/legacy/Config/MiceModule.hh"
30
30
 
 
31
#include "src/legacy/Interface/STLUtils.hh"
31
32
#include "src/common_cpp/Utils/Globals.hh"
32
33
#include "src/common_cpp/Simulation/MAUSPrimaryGeneratorAction.hh"
33
34
 
69
70
                 "MAUSPrimaryGeneratorAction::GeneratePrimaries"));
70
71
  if (!isInWorldVolume(part.x, part.y, part.z)) {
71
72
    throw(Squeal(Squeal::recoverable,
72
 
                 "Particle is outside world volume",
 
73
                 "Particle is outside world volume at position ("+
 
74
                 STLUtils::ToString(part.x)+", "+
 
75
                 STLUtils::ToString(part.y)+", "+
 
76
                 STLUtils::ToString(part.z)+")",
73
77
                 "MAUSPrimaryGeneratorAction::GeneratePrimaries"));
74
78
  }
75
79
  gun->SetParticleDefinition(particle);