GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NievesQELException.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::exceptions::NievesQELException
5 
6 \brief An exception thrown by NievesQELCCPXSec for kinematics problems.
7  When failure occurs, set xsec = 0.
8 
9 \author Steve Dytman <dytman \at pitt.edu>
10  Univ. of Pittsburgh
11 
12  Joe Johnston <jpj13 \at pitt.edu>
13  Univ. of Pittsburgh
14 
15 \created June 2015
16 
17 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
18  For the full text of the license visit http://copyright.genie-mc.org
19 */
20 //____________________________________________________________________________
21 
22 #ifndef _NIEVES_QEL_EXCEPTION_H_
23 #define _NIEVES_QEL_EXCEPTION_H_
24 
25 #include <string>
26 #include <ostream>
27 
28 #include <TMath.h>
29 
30 using std::string;
31 using std::ostream;
32 
33 namespace genie {
34 namespace exceptions {
35 
37 
38 public :
40  NievesQELException(const NievesQELException & exception);
42 
43  void SetReason(string reason) { fReason = reason; }
44 
45  string ShowReason(void) const { return fReason; }
46 
47  void Init (void);
48  void Copy (const NievesQELException & exception);
49  void Print (ostream & stream) const;
50 
51  friend ostream & operator << (
52  ostream & stream, const NievesQELException & exception);
53 
54 private:
55 
56  string fReason;
57 };
58 
59 } // exceptions namespace
60 } // genie namespace
61 
62 #endif // _NIEVES_QEL_EXCEPTION_H_
void Print(ostream &stream) const
An exception thrown by NievesQELCCPXSec for kinematics problems. When failure occurs, set xsec = 0.
void Copy(const NievesQELException &exception)
friend ostream & operator<<(ostream &stream, const NievesQELException &exception)