Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Framework
EventGen
EVGThreadException.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
Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
7
University of Liverpool & STFC Rutherford Appleton Laboratory
8
*/
9
//____________________________________________________________________________
10
11
#include "
Framework/EventGen/EVGThreadException.h
"
12
#include "
Framework/Messenger/Messenger.h
"
13
14
using
std::endl
;
15
using namespace
genie::exceptions
;
16
17
//___________________________________________________________________________
18
namespace
genie
{
19
namespace
exceptions {
20
ostream &
operator<<
(ostream&
stream
,
const
EVGThreadException
& exc)
21
{
22
exc.
Print
(stream);
23
return
stream
;
24
}
25
}
26
}
27
//___________________________________________________________________________
28
EVGThreadException::EVGThreadException
()
29
{
30
this->
Init
();
31
}
32
//___________________________________________________________________________
33
EVGThreadException::EVGThreadException
(
const
EVGThreadException
& exc)
34
{
35
this->Copy(exc);
36
}
37
//___________________________________________________________________________
38
EVGThreadException::~EVGThreadException
()
39
{
40
41
}
42
//___________________________________________________________________________
43
void
EVGThreadException::Init
(
void
)
44
{
45
fReason =
""
;
46
fFastFwd =
false
;
47
fStepBack =
false
;
48
fReturnStep = 999999;
49
}
50
//___________________________________________________________________________
51
void
EVGThreadException::Copy
(
const
EVGThreadException
& exc)
52
{
53
fReason = exc.
fReason
;
54
fFastFwd = exc.
fFastFwd
;
55
fStepBack = exc.
fStepBack
;
56
fReturnStep = exc.
fReturnStep
;
57
}
58
//___________________________________________________________________________
59
void
EVGThreadException::Print
(ostream &
stream
)
const
60
{
61
stream <<
"**EXCEPTION Reason: "
<< this->ShowReason() <<
endl
;
62
}
63
//___________________________________________________________________________
EVGThreadException.h
genie::exceptions::EVGThreadException::fReturnStep
int fReturnStep
Definition:
EVGThreadException.h:64
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::EVGThreadException::Copy
void Copy(const EVGThreadException &exception)
Definition:
EVGThreadException.cxx:51
genie::exceptions::EVGThreadException::EVGThreadException
EVGThreadException()
Definition:
EVGThreadException.cxx:28
genie::exceptions
GENIE-defined C++ exceptions.
Definition:
EVGThreadException.cxx:19
genie::exceptions::EVGThreadException::Print
void Print(ostream &stream) const
Definition:
EVGThreadException.cxx:59
genie::exceptions::EVGThreadException
An exception thrown by EventRecordVisitorI when the normal processing sequence has to be disrupted (f...
Definition:
EVGThreadException.h:35
genie::exceptions::EVGThreadException::Init
void Init(void)
Definition:
EVGThreadException.cxx:43
genie::exceptions::EVGThreadException::fFastFwd
bool fFastFwd
Definition:
EVGThreadException.h:62
genie::exceptions::EVGThreadException::fStepBack
bool fStepBack
Definition:
EVGThreadException.h:63
generate_datataset.stream
stream
Definition:
generate_datataset.py:30
Messenger.h
Init
void Init(void)
Definition:
gXSecComp.cxx:138
genie::exceptions::EVGThreadException::fReason
string fReason
Definition:
EVGThreadException.h:65
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
genie::exceptions::EVGThreadException::~EVGThreadException
~EVGThreadException()
Definition:
EVGThreadException.cxx:38
Generated by
1.8.11