Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4XnpTotal Class Reference

#include <G4XnpTotal.hh>

Inheritance diagram for G4XnpTotal:
Collaboration diagram for G4XnpTotal:

Public Member Functions

 G4XnpTotal ()
 
virtual ~G4XnpTotal ()
 
G4bool operator== (const G4XnpTotal &right) const
 
G4bool operator!= (const G4XnpTotal &right) const
 
virtual const
G4CrossSectionVector
GetComponents () const
 
virtual G4String Name () const
 
- Public Member Functions inherited from G4CrossSectionPatch
 G4CrossSectionPatch ()
 
virtual ~G4CrossSectionPatch ()
 
G4bool operator== (const G4CrossSectionPatch &right) const
 
G4bool operator!= (const G4CrossSectionPatch &right) const
 
virtual G4double CrossSection (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
virtual G4bool IsValid (G4double e) const
 
- Public Member Functions inherited from G4VCrossSectionSource
 G4VCrossSectionSource ()
 
virtual ~G4VCrossSectionSource ()
 
G4bool operator== (const G4VCrossSectionSource &right) const
 
G4bool operator!= (const G4VCrossSectionSource &right) const
 
virtual void Print () const
 
virtual void PrintAll (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
virtual G4double HighLimit () const
 
virtual G4double LowLimit () const
 

Additional Inherited Members

- Protected Member Functions inherited from G4CrossSectionPatch
G4double Transition (const G4KineticTrack &trk1, const G4KineticTrack &trk2, const G4VCrossSectionSource *comp1, const G4VCrossSectionSource *comp2) const
 
G4double Transition (G4double ecm, G4double sigma1, G4double sigma2, G4double e1, G4double e2) const
 
- Protected Member Functions inherited from G4VCrossSectionSource
G4bool InLimits (G4double e, G4double eLow, G4double eHigh) const
 
const G4ParticleDefinitionFindLightParticle (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
G4double FcrossX (G4double e, G4double e0, G4double sigma, G4double eParam, G4double power) const
 
const G4ParticleDefinitionFindKeyParticle (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 

Detailed Description

Definition at line 50 of file G4XnpTotal.hh.

Constructor & Destructor Documentation

G4XnpTotal::G4XnpTotal ( )

Definition at line 53 of file G4XnpTotal.cc.

54 {
55  components = new G4CrossSectionVector;
56 
57  G4VCrossSectionSource* xnpTotalLowE = new G4XnpTotalLowE;
58  components->push_back(xnpTotalLowE);
59 
60  G4VCrossSectionSource* xnpTotalHighE = new G4XPDGTotal;
61  components->push_back(xnpTotalHighE);
62 }
std::vector< G4CrossSectionSourcePtr > G4CrossSectionVector
G4XnpTotal::~G4XnpTotal ( )
virtual

Definition at line 65 of file G4XnpTotal.cc.

66 {
67  if (components != 0)
68  {
69  G4int nComponents = this->GetComponents()->size();
70  G4int i;
71  for (i=0; i<nComponents; i++)
72  {
73  G4CrossSectionSourcePtr componentPtr = (*components)[i];
74  G4VCrossSectionSource* component = componentPtr();
75  delete component;
76  component = 0;
77  componentPtr = 0;
78  }
79  }
80  delete components;
81  components = 0;
82 }
int G4int
Definition: G4Types.hh:78
virtual const G4CrossSectionVector * GetComponents() const
Definition: G4XnpTotal.hh:62

Here is the call graph for this function:

Member Function Documentation

virtual const G4CrossSectionVector* G4XnpTotal::GetComponents ( ) const
inlinevirtual

Implements G4CrossSectionPatch.

Definition at line 62 of file G4XnpTotal.hh.

62 { return components; }

Here is the caller graph for this function:

G4String G4XnpTotal::Name ( ) const
virtual

Implements G4VCrossSectionSource.

Definition at line 97 of file G4XnpTotal.cc.

98 {
99  G4String name("npTotal");
100  return name;
101 }
const XML_Char * name
Definition: expat.h:151
G4bool G4XnpTotal::operator!= ( const G4XnpTotal right) const

Definition at line 91 of file G4XnpTotal.cc.

92 {
93  return (this != (G4XnpTotal*) &right);
94 }
G4bool G4XnpTotal::operator== ( const G4XnpTotal right) const

Definition at line 85 of file G4XnpTotal.cc.

86 {
87  return (this == (G4XnpTotal*) &right);
88 }

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