#include <G4XNNTotal.hh>
Inheritance diagram for G4XNNTotal:
Public Member Functions | |
G4XNNTotal () | |
virtual | ~G4XNNTotal () |
G4bool | operator== (const G4XNNTotal &right) const |
G4bool | operator!= (const G4XNNTotal &right) const |
virtual const G4CrossSectionVector * | GetComponents () const |
virtual G4String | Name () const |
Definition at line 37 of file G4XNNTotal.hh.
G4XNNTotal::G4XNNTotal | ( | ) |
Definition at line 38 of file G4XNNTotal.cc.
00039 { 00040 components = new G4CrossSectionVector; 00041 00042 G4VCrossSectionSource* xNNTotalLowE = new G4XNNTotalLowE; 00043 components->push_back(xNNTotalLowE); 00044 00045 G4VCrossSectionSource* xNNTotalHighE = new G4XPDGTotal; 00046 components->push_back(xNNTotalHighE); 00047 }
G4XNNTotal::~G4XNNTotal | ( | ) | [virtual] |
Definition at line 50 of file G4XNNTotal.cc.
References GetComponents().
00051 { 00052 if (components != 0) 00053 { 00054 G4int nComponents = this->GetComponents()->size(); 00055 G4int i; 00056 for (i=0; i<nComponents; i++) 00057 { 00058 G4CrossSectionSourcePtr componentPtr = (*components)[i]; 00059 G4VCrossSectionSource* component = componentPtr(); 00060 delete component; 00061 component = 0; 00062 componentPtr = 0; 00063 } 00064 } 00065 delete components; 00066 components = 0; 00067 }
virtual const G4CrossSectionVector* G4XNNTotal::GetComponents | ( | ) | const [inline, virtual] |
Implements G4CrossSectionPatch.
Definition at line 48 of file G4XNNTotal.hh.
Referenced by ~G4XNNTotal().
G4String G4XNNTotal::Name | ( | ) | const [virtual] |
Implements G4VCrossSectionSource.
Definition at line 82 of file G4XNNTotal.cc.
00083 { 00084 G4String name("NNTotal"); 00085 return name; 00086 }
G4bool G4XNNTotal::operator!= | ( | const G4XNNTotal & | right | ) | const |
Definition at line 76 of file G4XNNTotal.cc.
00077 { 00078 return (this != (G4XNNTotal*) &right); 00079 }
G4bool G4XNNTotal::operator== | ( | const G4XNNTotal & | right | ) | const |
Definition at line 70 of file G4XNNTotal.cc.
00071 { 00072 return (this == (G4XNNTotal*) &right); 00073 }