~mbogomilov/maus/devel3

« back to all changes in this revision

Viewing changes to src/common_cpp/JsonCppStreamer/IRStream.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 <stdio.h>
19
19
 
20
20
#include "JsonCppStreamer/IRStream.hh"
21
 
#include "Interface/Squeal.hh"
 
21
#include "Utils/Exception.hh"
22
22
 
23
23
irstream::irstream(const char* fileName,
24
24
                   const char* treeName,
32
32
      << treeName
33
33
      << "' was not found in the tree."
34
34
      <<std::endl;
35
 
    throw Squeal(Squeal::nonRecoverable,
 
35
    throw MAUS::Exception(MAUS::Exception::nonRecoverable,
36
36
                 "irstream object not correctly initialised as couldn;t find requested TTree.",
37
37
                 "irstream::irstream(const char*, const char*, const char*)");
38
38
  }
46
46
    Squeak::mout(Squeak::error)
47
47
      << "Couldn't open ROOT TFile as no filename given"
48
48
      << std::endl;
49
 
    throw Squeal(Squeal::recoverable,
 
49
    throw MAUS::Exception(MAUS::Exception::recoverable,
50
50
                 "Cannot open file as null \"\" string passed as filename",
51
51
                 "void irstream::open(const char*, const char*, const char*)");
52
52
  }
56
56
    Squeak::mout(Squeak::error)
57
57
      << "ROOT TFile opened incorrectly"
58
58
      << std::endl;
59
 
    throw Squeal(Squeal::recoverable,
 
59
    throw MAUS::Exception(MAUS::Exception::recoverable,
60
60
                 "TFile object not opened properly",
61
61
                 "void irstream::open(const char*, const char*, const char*)");
62
62
  }
68
68
      << treeName
69
69
      << "' was not found in the tree."
70
70
      << std::endl;
71
 
    throw Squeal(Squeal::recoverable,
 
71
    throw MAUS::Exception(MAUS::Exception::recoverable,
72
72
                 "Could not find requested TTree.",
73
73
                 "void irstream::open(const char*, const char*, const char*)");
74
74
  }