Public Member Functions | Private Attributes | Friends | List of all members
genie::exceptions::NievesQELException Class Reference

An exception thrown by NievesQELCCPXSec for kinematics problems. When failure occurs, set xsec = 0. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+2.6-2.12-e17-debug/GENIE-Generator/src/Physics/QuasiElastic/XSection/NievesQELException.h"

Public Member Functions

 NievesQELException ()
 
 NievesQELException (const NievesQELException &exception)
 
 ~NievesQELException ()
 
void SetReason (string reason)
 
string ShowReason (void) const
 
void Init (void)
 
void Copy (const NievesQELException &exception)
 
void Print (ostream &stream) const
 

Private Attributes

string fReason
 

Friends

ostream & operator<< (ostream &stream, const NievesQELException &exception)
 

Detailed Description

An exception thrown by NievesQELCCPXSec for kinematics problems. When failure occurs, set xsec = 0.

Author
Costas Andreopoulos <costas.andreopoulos stfc.ac.uk> STFC, Rutherford Appleton Laboratory

Steve Dytman <dytman pitt.edu> Univ. of Pittsburgh

Joe Johnston <jpj13 pitt.edu> Univ. of Pittsburgh

June 2015

Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 40 of file NievesQELException.h.

Constructor & Destructor Documentation

NievesQELException::NievesQELException ( )

Definition at line 42 of file NievesQELException.cxx.

References Init().

43 {
44  this->Init();
45 }
NievesQELException::NievesQELException ( const NievesQELException exception)

Definition at line 47 of file NievesQELException.cxx.

48 {
49  this->Copy(exc);
50 }
void Copy(const NievesQELException &exception)
NievesQELException::~NievesQELException ( )

Definition at line 52 of file NievesQELException.cxx.

53 {
54 
55 }

Member Function Documentation

void NievesQELException::Copy ( const NievesQELException exception)

Definition at line 62 of file NievesQELException.cxx.

References fReason.

Referenced by ShowReason().

63 {
64  fReason = exc.fReason;
65 }
void NievesQELException::Init ( void  )

Definition at line 57 of file NievesQELException.cxx.

Referenced by ShowReason().

58 {
59  fReason = "";
60 }
void NievesQELException::Print ( ostream &  stream) const

Definition at line 67 of file NievesQELException.cxx.

References allTimeWatchdog::endl.

Referenced by genie::exceptions::operator<<(), and ShowReason().

68 {
69  stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
70 }
void genie::exceptions::NievesQELException::SetReason ( string  reason)
inline

Definition at line 47 of file NievesQELException.h.

References fReason.

string genie::exceptions::NievesQELException::ShowReason ( void  ) const
inline

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const NievesQELException exception 
)
friend

Definition at line 34 of file NievesQELException.cxx.

Referenced by ShowReason().

35  {
36  exc.Print(stream);
37  return stream;
38  }

Member Data Documentation

string genie::exceptions::NievesQELException::fReason
private

Definition at line 60 of file NievesQELException.h.

Referenced by Copy(), SetReason(), and ShowReason().


The documentation for this class was generated from the following files: