Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Physics
QuasiElastic
XSection
NievesQELException.cxx
Go to the documentation of this file.
1
//____________________________________________________________________________
2
/*
3
Copyright (c) 2003-2020, The GENIE Collaboration
4
For the full text of the license visit http://copyright.genie-mc.org
5
6
Steve Dytman <dytman \at pitt.edu>
7
Univ. of Pittsburgh
8
9
Joe Johnston <jpj13 \at pitt.edu>
10
Univ. of Pittsburgh
11
*/
12
//____________________________________________________________________________
13
14
#include "
Physics/QuasiElastic/XSection/NievesQELException.h
"
15
#include "
Framework/Messenger/Messenger.h
"
16
17
using
std::endl
;
18
using namespace
genie::exceptions
;
19
20
//___________________________________________________________________________
21
namespace
genie
{
22
namespace
exceptions {
23
ostream &
operator<<
(ostream&
stream
,
const
NievesQELException
& exc)
24
{
25
exc.
Print
(stream);
26
return
stream
;
27
}
28
}
29
}
30
//___________________________________________________________________________
31
NievesQELException::NievesQELException
()
32
{
33
this->
Init
();
34
}
35
//___________________________________________________________________________
36
NievesQELException::NievesQELException
(
const
NievesQELException
& exc)
37
{
38
this->Copy(exc);
39
}
40
//___________________________________________________________________________
41
NievesQELException::~NievesQELException
()
42
{
43
44
}
45
//___________________________________________________________________________
46
void
NievesQELException::Init
(
void
)
47
{
48
fReason =
""
;
49
}
50
//___________________________________________________________________________
51
void
NievesQELException::Copy
(
const
NievesQELException
& exc)
52
{
53
fReason = exc.
fReason
;
54
}
55
//___________________________________________________________________________
56
void
NievesQELException::Print
(ostream &
stream
)
const
57
{
58
stream <<
"**EXCEPTION Reason: "
<< this->ShowReason() <<
endl
;
59
}
60
//___________________________________________________________________________
NievesQELException.h
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
AlgCmp.h:25
genie::exceptions::operator<<
ostream & operator<<(ostream &stream, const EVGThreadException &exc)
Definition:
EVGThreadException.cxx:20
genie::exceptions::NievesQELException::Print
void Print(ostream &stream) const
Definition:
NievesQELException.cxx:56
genie::exceptions::NievesQELException::Init
void Init(void)
Definition:
NievesQELException.cxx:46
genie::exceptions
GENIE-defined C++ exceptions.
Definition:
EVGThreadException.cxx:19
genie::exceptions::NievesQELException
An exception thrown by NievesQELCCPXSec for kinematics problems. When failure occurs, set xsec = 0.
Definition:
NievesQELException.h:36
genie::exceptions::NievesQELException::fReason
string fReason
Definition:
NievesQELException.h:56
generate_datataset.stream
stream
Definition:
generate_datataset.py:30
genie::exceptions::NievesQELException::NievesQELException
NievesQELException()
Definition:
NievesQELException.cxx:31
Messenger.h
Init
void Init(void)
Definition:
gXSecComp.cxx:138
genie::exceptions::NievesQELException::Copy
void Copy(const NievesQELException &exception)
Definition:
NievesQELException.cxx:51
genie::exceptions::NievesQELException::~NievesQELException
~NievesQELException()
Definition:
NievesQELException.cxx:41
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11