Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4XNNTotal Class Reference

#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 G4CrossSectionVectorGetComponents () 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 const G4CrossSectionVectorGetComponents () const =0
 
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 G4double CrossSection (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const =0
 
virtual const G4CrossSectionVectorGetComponents () const =0
 
virtual G4String Name () const =0
 
virtual void Print () const
 
virtual void PrintAll (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
virtual G4bool IsValid (G4double e) 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
 
G4ParticleDefinitionFindKeyParticle (const G4KineticTrack &trk1, const G4KineticTrack &trk2) const
 
G4double GetTransversePionMass () const
 
G4double GetMinStringMass () const
 

Detailed Description

Definition at line 37 of file G4XNNTotal.hh.

Constructor & Destructor Documentation

◆ G4XNNTotal()

G4XNNTotal::G4XNNTotal ( )

Definition at line 38 of file G4XNNTotal.cc.

39{
40 components = new G4CrossSectionVector;
41
42 G4VCrossSectionSource* xNNTotalLowE = new G4XNNTotalLowE;
43 components->push_back(xNNTotalLowE);
44
45 G4VCrossSectionSource* xNNTotalHighE = new G4XPDGTotal;
46 components->push_back(xNNTotalHighE);
47}
std::vector< G4CrossSectionSourcePtr > G4CrossSectionVector

◆ ~G4XNNTotal()

G4XNNTotal::~G4XNNTotal ( )
virtual

Definition at line 50 of file G4XNNTotal.cc.

51{
52 if (components != 0)
53 {
54 G4int nComponents = this->GetComponents()->size();
55 G4int i;
56 for (i=0; i<nComponents; i++)
57 {
58 G4CrossSectionSourcePtr componentPtr = (*components)[i];
59 G4VCrossSectionSource* component = componentPtr();
60 delete component;
61 component = 0;
62 componentPtr = 0;
63 }
64 }
65 delete components;
66 components = 0;
67}
int G4int
Definition: G4Types.hh:66
virtual const G4CrossSectionVector * GetComponents() const
Definition: G4XNNTotal.hh:48

Member Function Documentation

◆ GetComponents()

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

Implements G4CrossSectionPatch.

Definition at line 48 of file G4XNNTotal.hh.

48{ return components; }

Referenced by ~G4XNNTotal().

◆ Name()

G4String G4XNNTotal::Name ( ) const
virtual

Implements G4VCrossSectionSource.

Definition at line 82 of file G4XNNTotal.cc.

83{
84 G4String name("NNTotal");
85 return name;
86}

◆ operator!=()

G4bool G4XNNTotal::operator!= ( const G4XNNTotal right) const

Definition at line 76 of file G4XNNTotal.cc.

77{
78 return (this != (G4XNNTotal*) &right);
79}

◆ operator==()

G4bool G4XNNTotal::operator== ( const G4XNNTotal right) const

Definition at line 70 of file G4XNNTotal.cc.

71{
72 return (this == (G4XNNTotal*) &right);
73}

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