#include <G4RPGKLongInelastic.hh>
Inheritance diagram for G4RPGKLongInelastic:
Public Member Functions | |
G4RPGKLongInelastic () | |
virtual | ~G4RPGKLongInelastic () |
G4HadFinalState * | ApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus) |
Data Fields | |
G4RPGKZeroInelastic | theKZeroInelastic |
G4RPGAntiKZeroInelastic | theAntiKZeroInelastic |
Definition at line 48 of file G4RPGKLongInelastic.hh.
G4RPGKLongInelastic::G4RPGKLongInelastic | ( | ) | [inline] |
Definition at line 51 of file G4RPGKLongInelastic.hh.
References G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().
00051 : G4RPGInelastic("G4RPGKLongInelastic") 00052 { 00053 SetMinEnergy( 0.0 ); 00054 SetMaxEnergy( 25.*CLHEP::GeV ); 00055 }
virtual G4RPGKLongInelastic::~G4RPGKLongInelastic | ( | ) | [inline, virtual] |
G4HadFinalState* G4RPGKLongInelastic::ApplyYourself | ( | const G4HadProjectile & | aTrack, | |
G4Nucleus & | targetNucleus | |||
) | [inline, virtual] |
Implements G4HadronicInteraction.
Definition at line 59 of file G4RPGKLongInelastic.hh.
References G4RPGAntiKZeroInelastic::ApplyYourself(), G4RPGKZeroInelastic::ApplyYourself(), G4UniformRand, theAntiKZeroInelastic, and theKZeroInelastic.
00060 { 00061 if(G4UniformRand() < 0.50) 00062 { 00063 return theKZeroInelastic.ApplyYourself(aTrack, targetNucleus); 00064 } 00065 else 00066 { 00067 return theAntiKZeroInelastic.ApplyYourself(aTrack, targetNucleus); 00068 } 00069 }