~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/map/MapCppKLDigits/MapCppKLDigits.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:
19
19
#include "Utils/JsonWrapper.hh"
20
20
#include "Utils/KLChannelMap.hh"
21
21
#include "Utils/DAQChannelMap.hh"
22
 
#include "Interface/Squeal.hh"
 
22
#include "Utils/Exception.hh"
23
23
#include "Interface/dataCards.hh"
24
24
 
25
25
#include "src/map/MapCppKLDigits/MapCppKLDigits.hh"
26
26
 
27
27
namespace MAUS {
 
28
 
28
29
bool MapCppKLDigits::birth(std::string argJsonConfigDocument) {
29
30
 
30
31
  _classname = "MapCppKLDigits";
34
35
  if (!pMAUS_ROOT_DIR) {
35
36
    Squeak::mout(Squeak::error)
36
37
    << "Could not find the $MAUS_ROOT_DIR environmental variable." << std::endl;
37
 
    Squeak::mout(Squeak::error) << "Did you try running: source env.sh ?" << std::endl;
 
38
    Squeak::mout(Squeak::error) << "Did you try running: source env.sh ?"
 
39
                                << std::endl;
38
40
    return false;
39
41
  }
40
42
 
67
69
      << std::endl;
68
70
    }
69
71
 
70
 
  return true;
71
 
  } catch(Squeal squee) {
72
 
    MAUS::CppErrorHandler::getInstance()->HandleSquealNoJson(squee, _classname);
 
72
    return true;
 
73
  } catch(Exception exc) {
 
74
    CppErrorHandler::getInstance()->HandleExceptionNoJson(exc, _classname);
73
75
  } catch(std::exception exc) {
74
 
    MAUS::CppErrorHandler::getInstance()->HandleStdExcNoJson(exc, _classname);
 
76
    CppErrorHandler::getInstance()->HandleStdExcNoJson(exc, _classname);
75
77
  }
76
78
 
77
79
  return false;
134
136
          }
135
137
      }
136
138
    }
137
 
  } catch(Squeal squee) {
138
 
    root = MAUS::CppErrorHandler::getInstance()
139
 
      ->HandleSqueal(root, squee, _classname);
 
139
  } catch(Exception exc) {
 
140
    root = CppErrorHandler::getInstance()
 
141
      ->HandleException(root, exc, _classname);
140
142
  } catch(std::exception exc) {
141
 
    root = MAUS::CppErrorHandler::getInstance()
 
143
    root = CppErrorHandler::getInstance()
142
144
      ->HandleStdExc(root, exc, _classname);
143
145
  }
144
146