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

#include <G4InteractionContent.hh>

Public Member Functions

 G4InteractionContent ()
 
 G4InteractionContent (G4VSplitableHadron *aPrimaryParticipant)
 
 ~G4InteractionContent ()
 
G4bool operator< (const G4InteractionContent &right) const
 
G4VSplitableHadronGetProjectile () const
 
G4VSplitableHadronGetTarget () const
 
void SetTargetNucleon (G4Nucleon *aNucleon)
 
G4NucleonGetTargetNucleon () const
 
void SetTarget (G4VSplitableHadron *aTarget)
 
G4int GetNumberOfSoftCollisions ()
 
G4int GetNumberOfHardCollisions ()
 
void SetNumberOfSoftCollisions (int)
 
void SetNumberOfHardCollisions (int)
 
G4int GetNumberOfDiffractiveCollisions ()
 
void SetNumberOfDiffractiveCollisions (int)
 
void SplitHadrons ()
 
void SetInteractionTime (G4double aValue)
 
G4double GetInteractionTime () const
 
void SetStatus (G4int aValue)
 
G4int GetStatus () const
 

Detailed Description

Definition at line 51 of file G4InteractionContent.hh.

Constructor & Destructor Documentation

◆ G4InteractionContent() [1/2]

G4InteractionContent::G4InteractionContent ( )
inline

Definition at line 56 of file G4InteractionContent.hh.

56{}

◆ G4InteractionContent() [2/2]

G4InteractionContent::G4InteractionContent ( G4VSplitableHadron aPrimaryParticipant)

Definition at line 39 of file G4InteractionContent.cc.

40 : theNumberOfHard(0), theNumberOfSoft(0), theNumberOfDiffractive(0),
41 theInteractionTime(0.), curStatus(0)
42{
43 theProjectile=aPrimaryParticipant;
44 theTarget=0;
45 theTargetNucleon=0;
46}

◆ ~G4InteractionContent()

G4InteractionContent::~G4InteractionContent ( )

Definition at line 48 of file G4InteractionContent.cc.

49{}

Member Function Documentation

◆ GetInteractionTime()

G4double G4InteractionContent::GetInteractionTime ( ) const

Definition at line 60 of file G4InteractionContent.cc.

61{return theInteractionTime;}

Referenced by operator<().

◆ GetNumberOfDiffractiveCollisions()

G4int G4InteractionContent::GetNumberOfDiffractiveCollisions ( )
inline

Definition at line 160 of file G4InteractionContent.hh.

161{
162 return theNumberOfDiffractive;
163}

◆ GetNumberOfHardCollisions()

G4int G4InteractionContent::GetNumberOfHardCollisions ( )
inline

Definition at line 145 of file G4InteractionContent.hh.

146{
147 return theNumberOfHard;
148}

◆ GetNumberOfSoftCollisions()

G4int G4InteractionContent::GetNumberOfSoftCollisions ( )
inline

Definition at line 140 of file G4InteractionContent.hh.

141{
142 return theNumberOfSoft;
143}

Referenced by G4QGSParticipants::PerformSoftCollisions().

◆ GetProjectile()

G4VSplitableHadron * G4InteractionContent::GetProjectile ( ) const
inline

◆ GetStatus()

G4int G4InteractionContent::GetStatus ( ) const

Definition at line 65 of file G4InteractionContent.cc.

66{return curStatus;}

◆ GetTarget()

G4VSplitableHadron * G4InteractionContent::GetTarget ( ) const
inline

Definition at line 120 of file G4InteractionContent.hh.

121{
122 return theTarget;
123}

Referenced by G4QGSParticipants::PerformDiffractiveCollisions(), and G4QGSParticipants::PerformSoftCollisions().

◆ GetTargetNucleon()

G4Nucleon * G4InteractionContent::GetTargetNucleon ( ) const
inline

Definition at line 135 of file G4InteractionContent.hh.

136{
137 return theTargetNucleon;
138}

◆ operator<()

G4bool G4InteractionContent::operator< ( const G4InteractionContent right) const

Definition at line 52 of file G4InteractionContent.cc.

53{
54 return this->GetInteractionTime() < right.GetInteractionTime();
55}
G4double GetInteractionTime() const

◆ SetInteractionTime()

void G4InteractionContent::SetInteractionTime ( G4double  aValue)

Definition at line 57 of file G4InteractionContent.cc.

58{theInteractionTime = aValue;}

◆ SetNumberOfDiffractiveCollisions()

void G4InteractionContent::SetNumberOfDiffractiveCollisions ( int  nCol)
inline

Definition at line 165 of file G4InteractionContent.hh.

166{
167 theNumberOfDiffractive = nCol;
168}

Referenced by G4QGSParticipants::SelectInteractions().

◆ SetNumberOfHardCollisions()

void G4InteractionContent::SetNumberOfHardCollisions ( int  nCol)
inline

Definition at line 155 of file G4InteractionContent.hh.

156{
157 theNumberOfHard = nCol;
158}

◆ SetNumberOfSoftCollisions()

void G4InteractionContent::SetNumberOfSoftCollisions ( int  nCol)
inline

Definition at line 150 of file G4InteractionContent.hh.

151{
152 theNumberOfSoft = nCol;
153}

Referenced by G4QGSParticipants::SelectInteractions().

◆ SetStatus()

void G4InteractionContent::SetStatus ( G4int  aValue)

Definition at line 63 of file G4InteractionContent.cc.

64{curStatus = aValue;}

Referenced by G4FTFParticipants::GetList().

◆ SetTarget()

void G4InteractionContent::SetTarget ( G4VSplitableHadron aTarget)
inline

Definition at line 125 of file G4InteractionContent.hh.

126{
127 theTarget = aTarget;
128}

Referenced by G4FTFParticipants::GetList(), and G4QGSParticipants::SelectInteractions().

◆ SetTargetNucleon()

void G4InteractionContent::SetTargetNucleon ( G4Nucleon aNucleon)
inline

Definition at line 130 of file G4InteractionContent.hh.

131{
132 theTargetNucleon = aNucleon;
133}

Referenced by G4FTFParticipants::GetList().

◆ SplitHadrons()

void G4InteractionContent::SplitHadrons ( )
inline

Definition at line 170 of file G4InteractionContent.hh.

171{
172 if ( theProjectile != NULL ) theProjectile->SplitUp();
173 if ( theTarget != NULL ) theTarget->SplitUp();
174 #ifdef G4DEBUG
175 // Dump();
176 #endif
177}
virtual void SplitUp()=0

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