~mwinter4/maus/ckov-reco

« back to all changes in this revision

Viewing changes to src/map/MapCppSimulation/MapCppSimulation.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:
20
20
#include <vector>
21
21
#include <string>
22
22
 
23
 
#include "Interface/Squeal.hh"
 
23
#include "Utils/Exception.hh"
24
24
 
25
25
#include "src/common_cpp/Utils/Globals.hh"
26
26
#include "src/common_cpp/Utils/JsonWrapper.hh"
41
41
    _doVis = MAUSGeant4Manager::GetInstance()->GetVisManager() != NULL;
42
42
    return true;  // Sucessful completion
43
43
  // Normal session, no visualization
44
 
  } catch(Squeal& squee) {
45
 
    MAUS::CppErrorHandler::getInstance()->HandleSquealNoJson(squee, _classname);
 
44
  } catch(Exception& exception) {
 
45
    MAUS::CppErrorHandler::getInstance()->HandleExceptionNoJson(exception, _classname);
46
46
  } catch(std::exception& exc) {
47
47
    MAUS::CppErrorHandler::getInstance()->HandleStdExcNoJson(exc, _classname);
48
48
  }
67
67
    if (_doVis)
68
68
        MAUS::MAUSGeant4Manager::GetInstance()->GetVisManager()->TearDownRun();
69
69
  }
70
 
  catch(Squeal& squee) {
 
70
  catch(Exception& exception) {
71
71
    spill = MAUS::CppErrorHandler::getInstance()
72
 
                                       ->HandleSqueal(spill, squee, _classname);
 
72
                                       ->HandleException(spill, exception, _classname);
73
73
  } catch(std::exception& exc) {
74
74
    spill = MAUS::CppErrorHandler::getInstance()
75
75
                                         ->HandleStdExc(spill, exc, _classname);