~mwinter4/maus/ckov-reco

« back to all changes in this revision

Viewing changes to src/common_cpp/Simulation/MAUSSteppingAction.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:
18
18
#include <iostream>
19
19
 
20
20
#include "Interface/Squeak.hh"
21
 
#include "Interface/Squeal.hh"
 
21
#include "Utils/Exception.hh"
22
22
#include "Interface/MICERun.hh"
23
23
 
24
24
#include "src/common_cpp/Utils/JsonWrapper.hh"
69
69
    G4StepPoint* point = aStep->GetPostStepPoint();
70
70
    if (prestep) point = aStep->GetPreStepPoint();
71
71
    if (!aTrack || !point || !aStep)
72
 
        throw(Squeal(Squeal::recoverable,
 
72
        throw(Exception(Exception::recoverable,
73
73
                     "Failed to resolve step point",
74
74
                     "MAUSSteppingAction::StepPointToJson"));
75
75
    Json::Value step;
112
112
 
113
113
void  MAUSSteppingAction::SetSteps(Json::Value steps) {
114
114
    if (!steps.isArray())
115
 
        throw(Squeal(Squeal::recoverable,
 
115
        throw(Exception(Exception::recoverable,
116
116
              "Attempting to set steps to non-array type",
117
117
              "MAUSSteppingAction::SetSteps()"));
118
118
    _steps = steps;