~mbogomilov/maus/devel3

« back to all changes in this revision

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

  • Committer: Durga Rajaram
  • Date: 2014-01-14 04:39:44 UTC
  • mfrom: (663.38.24 merge)
  • mto: (698.1.1 release)
  • mto: This revision was merged to the branch mainline in revision 693.
  • Revision ID: durga@fnal.gov-20140114043944-qf0i8nksnwu74cll
candidate 0.7.6 - trunk r1026

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
void MAUSEventAction::EndOfEventAction(const G4Event *anEvent) {
53
53
    //  For each detector i
54
54
    if (_primary >= _events.size())
55
 
        throw(Squeal(Squeal::recoverable,
 
55
        throw(Exception(Exception::recoverable,
56
56
                     "Ran out of space in event array",
57
57
                     "MAUSEventAction::EndOfEventAction"));
58
58
    for (int i = 0; i < _geometry->GetSDSize(); i++) {
69
69
 
70
70
void MAUSEventAction::SetEvents(Json::Value events) {
71
71
    if (!events.isArray())
72
 
        throw(Squeal(Squeal::recoverable, "Particles must be an array value",
 
72
        throw(Exception(Exception::recoverable, "Particles must be an array value",
73
73
                     "MAUSEventAction::SetEvent"));
74
74
    for (size_t i = 0; i < events.size(); ++i) {
75
75
        if (!events[i].isObject())
76
 
            throw(Squeal(Squeal::recoverable,
 
76
            throw(Exception(Exception::recoverable,
77
77
                         "Each Particle must be an object value",
78
78
                         "MAUSEventAction::SetEvent"));
79
79
    }