#include <G4XNNElastic.hh>
Inheritance diagram for G4XNNElastic:
Public Member Functions | |
G4XNNElastic () | |
virtual | ~G4XNNElastic () |
G4bool | operator== (const G4XNNElastic &right) const |
G4bool | operator!= (const G4XNNElastic &right) const |
virtual const G4CrossSectionVector * | GetComponents () const |
virtual G4String | Name () const |
Definition at line 50 of file G4XNNElastic.hh.
G4XNNElastic::G4XNNElastic | ( | ) |
Definition at line 53 of file G4XNNElastic.cc.
00054 { 00055 components = new G4CrossSectionVector; 00056 00057 G4VCrossSectionSource* xNNElasticLowE = new G4XNNElasticLowE; 00058 components->push_back(xNNElasticLowE); 00059 00060 G4VCrossSectionSource* xNNElasticHighE = new G4XPDGElastic; 00061 components->push_back(xNNElasticHighE); 00062 }
G4XNNElastic::~G4XNNElastic | ( | ) | [virtual] |
Definition at line 65 of file G4XNNElastic.cc.
References GetComponents().
00066 { 00067 if (components != 0) 00068 { 00069 G4int nComponents = this->GetComponents()->size(); 00070 G4int i; 00071 for (i=0; i<nComponents; i++) 00072 { 00073 G4CrossSectionSourcePtr componentPtr = (*components)[i]; 00074 G4VCrossSectionSource* component = componentPtr(); 00075 delete component; 00076 component = 0; 00077 componentPtr = 0; 00078 } 00079 } 00080 delete components; 00081 components = 0; 00082 }
virtual const G4CrossSectionVector* G4XNNElastic::GetComponents | ( | ) | const [inline, virtual] |
Implements G4CrossSectionPatch.
Definition at line 62 of file G4XNNElastic.hh.
Referenced by ~G4XNNElastic().
G4String G4XNNElastic::Name | ( | ) | const [virtual] |
Implements G4VCrossSectionSource.
Definition at line 97 of file G4XNNElastic.cc.
00098 { 00099 G4String name("NNElastic"); 00100 return name; 00101 }
G4bool G4XNNElastic::operator!= | ( | const G4XNNElastic & | right | ) | const |
Definition at line 91 of file G4XNNElastic.cc.
00092 { 00093 return (this != (G4XNNElastic*) &right); 00094 }
G4bool G4XNNElastic::operator== | ( | const G4XNNElastic & | right | ) | const |
Definition at line 85 of file G4XNNElastic.cc.
00086 { 00087 return (this == (G4XNNElastic*) &right); 00088 }