Geant4 11.2.2
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 SetProjectileNucleon (G4Nucleon *aNucleon)
 
G4NucleonGetProjectileNucleon () 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 45 of file G4InteractionContent.hh.

Constructor & Destructor Documentation

◆ G4InteractionContent() [1/2]

G4InteractionContent::G4InteractionContent ( )
inline

Definition at line 48 of file G4InteractionContent.hh.

48{}

◆ G4InteractionContent() [2/2]

G4InteractionContent::G4InteractionContent ( G4VSplitableHadron * aPrimaryParticipant)

Definition at line 41 of file G4InteractionContent.cc.

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

◆ ~G4InteractionContent()

G4InteractionContent::~G4InteractionContent ( )

Definition at line 51 of file G4InteractionContent.cc.

52{}

Member Function Documentation

◆ GetInteractionTime()

G4double G4InteractionContent::GetInteractionTime ( ) const

Definition at line 63 of file G4InteractionContent.cc.

64{return theInteractionTime;}

Referenced by G4FTFPartHelperForSortInT(), G4FTFParticipants::GetList(), and operator<().

◆ GetNumberOfDiffractiveCollisions()

G4int G4InteractionContent::GetNumberOfDiffractiveCollisions ( )
inline

Definition at line 164 of file G4InteractionContent.hh.

165{
166 return theNumberOfDiffractive;
167}

◆ GetNumberOfHardCollisions()

G4int G4InteractionContent::GetNumberOfHardCollisions ( )
inline

Definition at line 149 of file G4InteractionContent.hh.

150{
151 return theNumberOfHard;
152}

◆ GetNumberOfSoftCollisions()

G4int G4InteractionContent::GetNumberOfSoftCollisions ( )
inline

Definition at line 144 of file G4InteractionContent.hh.

145{
146 return theNumberOfSoft;
147}

Referenced by G4QGSParticipants::PerformSoftCollisions().

◆ GetProjectile()

G4VSplitableHadron * G4InteractionContent::GetProjectile ( ) const
inline

Definition at line 109 of file G4InteractionContent.hh.

110{
111 return theProjectile;
112}

Referenced by G4FTFModel::GetStrings(), G4QGSParticipants::PerformSoftCollisions(), and G4FTFParticipants::ShiftInteractionTime().

◆ GetProjectileNucleon()

G4Nucleon * G4InteractionContent::GetProjectileNucleon ( ) const
inline

Definition at line 129 of file G4InteractionContent.hh.

130{
131 return theProjectileNucleon;
132}

◆ GetStatus()

G4int G4InteractionContent::GetStatus ( ) const

Definition at line 69 of file G4InteractionContent.cc.

70{return curStatus;}

Referenced by G4QGSParticipants::PerformDiffractiveCollisions().

◆ GetTarget()

G4VSplitableHadron * G4InteractionContent::GetTarget ( ) const
inline

◆ GetTargetNucleon()

G4Nucleon * G4InteractionContent::GetTargetNucleon ( ) const
inline

Definition at line 139 of file G4InteractionContent.hh.

140{
141 return theTargetNucleon;
142}

◆ operator<()

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

Definition at line 55 of file G4InteractionContent.cc.

56{
57 return this->GetInteractionTime() < right.GetInteractionTime();
58}
G4double GetInteractionTime() const

◆ SetInteractionTime()

void G4InteractionContent::SetInteractionTime ( G4double aValue)

Definition at line 60 of file G4InteractionContent.cc.

61{theInteractionTime = aValue;}

Referenced by G4FTFParticipants::GetList().

◆ SetNumberOfDiffractiveCollisions()

void G4InteractionContent::SetNumberOfDiffractiveCollisions ( int nCol)
inline

Definition at line 169 of file G4InteractionContent.hh.

170{
171 theNumberOfDiffractive = nCol;
172}

Referenced by G4QGSParticipants::SelectInteractions().

◆ SetNumberOfHardCollisions()

void G4InteractionContent::SetNumberOfHardCollisions ( int nCol)
inline

Definition at line 159 of file G4InteractionContent.hh.

160{
161 theNumberOfHard = nCol;
162}

◆ SetNumberOfSoftCollisions()

void G4InteractionContent::SetNumberOfSoftCollisions ( int nCol)
inline

Definition at line 154 of file G4InteractionContent.hh.

155{
156 theNumberOfSoft = nCol;
157}

Referenced by G4QGSParticipants::SelectInteractions().

◆ SetProjectileNucleon()

void G4InteractionContent::SetProjectileNucleon ( G4Nucleon * aNucleon)
inline

Definition at line 124 of file G4InteractionContent.hh.

125{
126 theProjectileNucleon = aNucleon;
127}

Referenced by G4FTFParticipants::GetList().

◆ SetStatus()

void G4InteractionContent::SetStatus ( G4int aValue)

Definition at line 66 of file G4InteractionContent.cc.

67{curStatus = aValue;}

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

◆ SetTarget()

void G4InteractionContent::SetTarget ( G4VSplitableHadron * aTarget)
inline

Definition at line 119 of file G4InteractionContent.hh.

120{
121 theTarget = aTarget;
122}

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

◆ SetTargetNucleon()

void G4InteractionContent::SetTargetNucleon ( G4Nucleon * aNucleon)
inline

Definition at line 134 of file G4InteractionContent.hh.

135{
136 theTargetNucleon = aNucleon;
137}

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

◆ SplitHadrons()

void G4InteractionContent::SplitHadrons ( )
inline

Definition at line 174 of file G4InteractionContent.hh.

175{
176 //G4cout<<"InterContent Proj "<<theProjectile<<G4endl;
177 if ( theProjectile != NULL ) {theProjectile->SplitUp();}
178 //G4cout<<"InterContent Targ "<<theTarget<<G4endl;
179 if ( theTarget != NULL ) {theTarget->SplitUp();}
180 #ifdef G4DEBUG
181 //Dump();
182 #endif
183}
virtual void SplitUp()=0

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