Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
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 55 of file G4InteractionContent.hh.

Constructor & Destructor Documentation

G4InteractionContent::G4InteractionContent ( )
inline

Definition at line 60 of file G4InteractionContent.hh.

60 {}
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  theProjectileNucleon=0; // Uzhi Nov. 2012
46  theTargetNucleon=0;
47 }
G4InteractionContent::~G4InteractionContent ( )

Definition at line 49 of file G4InteractionContent.cc.

50 {}

Member Function Documentation

G4double G4InteractionContent::GetInteractionTime ( ) const

Definition at line 63 of file G4InteractionContent.cc.

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

64 {return theInteractionTime;}
G4int G4InteractionContent::GetNumberOfDiffractiveCollisions ( )
inline

Definition at line 179 of file G4InteractionContent.hh.

180 {
181  return theNumberOfDiffractive;
182 }
G4int G4InteractionContent::GetNumberOfHardCollisions ( )
inline

Definition at line 164 of file G4InteractionContent.hh.

165 {
166  return theNumberOfHard;
167 }
G4int G4InteractionContent::GetNumberOfSoftCollisions ( )
inline

Definition at line 159 of file G4InteractionContent.hh.

Referenced by G4QGSParticipants::PerformSoftCollisions().

160 {
161  return theNumberOfSoft;
162 }
G4VSplitableHadron * G4InteractionContent::GetProjectile ( ) const
inline
G4Nucleon * G4InteractionContent::GetProjectileNucleon ( ) const
inline

Definition at line 144 of file G4InteractionContent.hh.

145 {
146  return theProjectileNucleon;
147 }
G4int G4InteractionContent::GetStatus ( ) const

Definition at line 68 of file G4InteractionContent.cc.

69 {return curStatus;}
G4VSplitableHadron * G4InteractionContent::GetTarget ( void  ) const
inline
G4Nucleon * G4InteractionContent::GetTargetNucleon ( ) const
inline

Definition at line 154 of file G4InteractionContent.hh.

155 {
156  return theTargetNucleon;
157 }
G4bool G4InteractionContent::operator< ( const G4InteractionContent right) const

Definition at line 53 of file G4InteractionContent.cc.

References python.hepunit::fermi, G4cout, G4endl, and GetInteractionTime().

54 {
56  return this->GetInteractionTime() < right.GetInteractionTime();
57 // return right.GetInteractionTime() < this->GetInteractionTime();
58 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
G4double GetInteractionTime() const
void G4InteractionContent::SetInteractionTime ( G4double  aValue)

Definition at line 60 of file G4InteractionContent.cc.

Referenced by G4FTFParticipants::GetList().

61 {theInteractionTime = aValue;}
void G4InteractionContent::SetNumberOfDiffractiveCollisions ( int  nCol)
inline

Definition at line 184 of file G4InteractionContent.hh.

Referenced by G4QGSParticipants::SelectInteractions().

185 {
186  theNumberOfDiffractive = nCol;
187 }
void G4InteractionContent::SetNumberOfHardCollisions ( int  nCol)
inline

Definition at line 174 of file G4InteractionContent.hh.

175 {
176  theNumberOfHard = nCol;
177 }
void G4InteractionContent::SetNumberOfSoftCollisions ( int  nCol)
inline

Definition at line 169 of file G4InteractionContent.hh.

Referenced by G4QGSParticipants::SelectInteractions().

170 {
171  theNumberOfSoft = nCol;
172 }
void G4InteractionContent::SetProjectileNucleon ( G4Nucleon aNucleon)
inline

Definition at line 139 of file G4InteractionContent.hh.

Referenced by G4FTFParticipants::GetList().

140 {
141  theProjectileNucleon = aNucleon;
142 }
void G4InteractionContent::SetStatus ( G4int  aValue)

Definition at line 66 of file G4InteractionContent.cc.

Referenced by G4FTFParticipants::GetList().

67 {curStatus = aValue;}
void G4InteractionContent::SetTarget ( G4VSplitableHadron aTarget)
inline

Definition at line 134 of file G4InteractionContent.hh.

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

135 {
136  theTarget = aTarget;
137 }
void G4InteractionContent::SetTargetNucleon ( G4Nucleon aNucleon)
inline

Definition at line 149 of file G4InteractionContent.hh.

Referenced by G4FTFParticipants::GetList().

150 {
151  theTargetNucleon = aNucleon;
152 }
void G4InteractionContent::SplitHadrons ( )
inline

Definition at line 189 of file G4InteractionContent.hh.

References G4VSplitableHadron::SplitUp().

190 {
191  if ( theProjectile != NULL ) theProjectile->SplitUp();
192  if ( theTarget != NULL ) theTarget->SplitUp();
193  #ifdef G4DEBUG
194  // Dump();
195  #endif
196 }
virtual void SplitUp()=0

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