Geant4-11
Public Member Functions | Protected Attributes
G4VParticipants Class Reference

#include <G4VParticipants.hh>

Inheritance diagram for G4VParticipants:
G4FTFParticipants G4QGSParticipants G4GammaParticipants

Public Member Functions

 G4VParticipants ()
 
 G4VParticipants (const G4VParticipants &right)=delete
 
virtual G4V3DNucleusGetProjectileNucleus () const
 
virtual G4V3DNucleusGetWoundedNucleus () const
 
virtual void Init (G4int theZ, G4int theA)
 
virtual void InitProjectileNucleus (G4int theZ, G4int theA, G4int numberOfLambdasOrAntiLambdas=0)
 
G4bool operator!= (const G4VParticipants &right) const =delete
 
const G4VParticipantsoperator= (const G4VParticipants &right)=delete
 
G4bool operator== (const G4VParticipants &right) const =delete
 
virtual void SetNucleus (G4V3DNucleus *aNucleus)
 
virtual void SetProjectileNucleus (G4V3DNucleus *aNucleus)
 
virtual ~G4VParticipants ()
 

Protected Attributes

G4V3DNucleustheNucleus
 
G4V3DNucleustheProjectileNucleus
 

Detailed Description

Definition at line 46 of file G4VParticipants.hh.

Constructor & Destructor Documentation

◆ G4VParticipants() [1/2]

G4VParticipants::G4VParticipants ( )

Definition at line 43 of file G4VParticipants.cc.

43 : theNucleus(nullptr),
45{}
G4V3DNucleus * theProjectileNucleus
G4V3DNucleus * theNucleus

◆ ~G4VParticipants()

G4VParticipants::~G4VParticipants ( )
virtual

Definition at line 47 of file G4VParticipants.cc.

48{
49 // G4cout << "G4VParticipants::~G4VParticipants()" << G4endl;
50 if ( theNucleus != nullptr ) delete theNucleus;
51 if ( theProjectileNucleus != nullptr ) delete theProjectileNucleus;
52}

References theNucleus, and theProjectileNucleus.

◆ G4VParticipants() [2/2]

G4VParticipants::G4VParticipants ( const G4VParticipants right)
delete

Member Function Documentation

◆ GetProjectileNucleus()

G4V3DNucleus * G4VParticipants::GetProjectileNucleus ( ) const
inlinevirtual

Reimplemented in G4QGSParticipants.

Definition at line 78 of file G4VParticipants.hh.

79{
81}

References theProjectileNucleus.

Referenced by G4FTFModel::GetProjectileNucleus(), and G4FTFModel::Init().

◆ GetWoundedNucleus()

G4V3DNucleus * G4VParticipants::GetWoundedNucleus ( ) const
inlinevirtual

Definition at line 73 of file G4VParticipants.hh.

74{
75 return theNucleus;
76}

References theNucleus.

Referenced by G4FTFModel::GetTargetNucleus(), and G4FTFModel::GetWoundedNucleus().

◆ Init()

void G4VParticipants::Init ( G4int  theZ,
G4int  theA 
)
virtual

Definition at line 54 of file G4VParticipants.cc.

55{
56 if ( theNucleus == nullptr ) theNucleus = new G4Fancy3DNucleus();
57 theNucleus->Init(theA, theZ);
59}
virtual void SortNucleonsIncZ()=0
virtual void Init(G4int theA, G4int theZ, G4int numberOfLambdas=0)=0

References G4V3DNucleus::Init(), G4V3DNucleus::SortNucleonsIncZ(), and theNucleus.

Referenced by G4FTFModel::Init().

◆ InitProjectileNucleus()

void G4VParticipants::InitProjectileNucleus ( G4int  theZ,
G4int  theA,
G4int  numberOfLambdasOrAntiLambdas = 0 
)
virtual

Definition at line 67 of file G4VParticipants.cc.

69{
70 if ( theProjectileNucleus == nullptr )
72
73 theProjectileNucleus->Init(theA, theZ, numberOfLambdasOrAntiLambdas);
75}
virtual void SortNucleonsDecZ()=0

References G4V3DNucleus::Init(), G4V3DNucleus::SortNucleonsDecZ(), and theProjectileNucleus.

Referenced by G4FTFModel::Init().

◆ operator!=()

G4bool G4VParticipants::operator!= ( const G4VParticipants right) const
delete

◆ operator=()

const G4VParticipants & G4VParticipants::operator= ( const G4VParticipants right)
delete

◆ operator==()

G4bool G4VParticipants::operator== ( const G4VParticipants right) const
delete

◆ SetNucleus()

void G4VParticipants::SetNucleus ( G4V3DNucleus aNucleus)
virtual

Definition at line 61 of file G4VParticipants.cc.

62{
63 if (theNucleus != nullptr) delete theNucleus;
64 theNucleus = aNucleus;
65}

References theNucleus.

◆ SetProjectileNucleus()

void G4VParticipants::SetProjectileNucleus ( G4V3DNucleus aNucleus)
virtual

Definition at line 77 of file G4VParticipants.cc.

78{
79 if (theProjectileNucleus != nullptr) delete theProjectileNucleus;
80 theProjectileNucleus = aNucleus;
81}

References theProjectileNucleus.

Referenced by G4QGSParticipants::BuildInteractions(), and G4FTFModel::Init().

Field Documentation

◆ theNucleus

G4V3DNucleus* G4VParticipants::theNucleus
protected

◆ theProjectileNucleus

G4V3DNucleus* G4VParticipants::theProjectileNucleus
protected

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