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

#include <G4VParticipants.hh>

+ Inheritance diagram for G4VParticipants:

Public Member Functions

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

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}

◆ G4VParticipants() [2/2]

G4VParticipants::G4VParticipants ( const G4VParticipants right)
delete

Member Function Documentation

◆ GetProjectileNucleus()

G4V3DNucleus * G4VParticipants::GetProjectileNucleus ( ) const
inlinevirtual

Definition at line 77 of file G4VParticipants.hh.

78{
80}

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

◆ GetWoundedNucleus()

G4V3DNucleus * G4VParticipants::GetWoundedNucleus ( ) const
inlinevirtual

Definition at line 72 of file G4VParticipants.hh.

73{
74 return theNucleus;
75}

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)=0

Referenced by G4FTFModel::Init().

◆ InitProjectileNucleus()

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

Definition at line 67 of file G4VParticipants.cc.

68{
69 if ( theProjectileNucleus == nullptr )
71
72 theProjectileNucleus->Init(theA, theZ);
74}
virtual void SortNucleonsDecZ()=0

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}

◆ SetProjectileNucleus()

void G4VParticipants::SetProjectileNucleus ( G4V3DNucleus aNucleus)
virtual

Definition at line 76 of file G4VParticipants.cc.

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

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

Member Data Documentation

◆ theNucleus

◆ theProjectileNucleus

G4V3DNucleus* G4VParticipants::theProjectileNucleus
protected

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