GENIEGenerator
Loading...
Searching...
No Matches
genie::exceptions::NievesQELException Class Reference

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

#include <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
Steve Dytman <dytman \at pitt.edu> Univ. of Pittsburgh

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

Created:\n June 2015
License:\n Copyright (c) 2003-2025, The GENIE Collaboration
For the full text of the license visit http://copyright.genie-mc.org

Definition at line 36 of file NievesQELException.h.

Constructor & Destructor Documentation

◆ NievesQELException() [1/2]

NievesQELException::NievesQELException ( )

Definition at line 31 of file NievesQELException.cxx.

32{
33 this->Init();
34}

References Init().

Referenced by Copy(), NievesQELException(), and operator<<.

◆ NievesQELException() [2/2]

NievesQELException::NievesQELException ( const NievesQELException & exception)

Definition at line 36 of file NievesQELException.cxx.

37{
38 this->Copy(exc);
39}
void Copy(const NievesQELException &exception)

References Copy(), and NievesQELException().

◆ ~NievesQELException()

NievesQELException::~NievesQELException ( )

Definition at line 41 of file NievesQELException.cxx.

42{
43
44}

Member Function Documentation

◆ Copy()

void NievesQELException::Copy ( const NievesQELException & exception)

Definition at line 51 of file NievesQELException.cxx.

52{
53 fReason = exc.fReason;
54}

References fReason, and NievesQELException().

Referenced by NievesQELException().

◆ Init()

void NievesQELException::Init ( void )

Definition at line 46 of file NievesQELException.cxx.

47{
48 fReason = "";
49}

References fReason.

Referenced by NievesQELException().

◆ Print()

void NievesQELException::Print ( ostream & stream) const

Definition at line 56 of file NievesQELException.cxx.

57{
58 stream << "**EXCEPTION Reason: " << this->ShowReason() << endl;
59}

References ShowReason().

Referenced by operator<<.

◆ SetReason()

void genie::exceptions::NievesQELException::SetReason ( string reason)
inline

Definition at line 43 of file NievesQELException.h.

43{ fReason = reason; }

References fReason.

◆ ShowReason()

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

Definition at line 45 of file NievesQELException.h.

45{ return fReason; }

References fReason.

Referenced by Print().

◆ operator<<

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

Definition at line 23 of file NievesQELException.cxx.

24 {
25 exc.Print(stream);
26 return stream;
27 }

References NievesQELException(), and Print().

Member Data Documentation

◆ fReason

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

Definition at line 56 of file NievesQELException.h.

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


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