#include <G4RPGKShortInelastic.hh>
Inheritance diagram for G4RPGKShortInelastic:

Public Member Functions | |
| G4RPGKShortInelastic () | |
| virtual | ~G4RPGKShortInelastic () |
| G4HadFinalState * | ApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus) |
Definition at line 46 of file G4RPGKShortInelastic.hh.
| G4RPGKShortInelastic::G4RPGKShortInelastic | ( | ) | [inline] |
Definition at line 49 of file G4RPGKShortInelastic.hh.
References G4HadronicInteraction::SetMaxEnergy(), and G4HadronicInteraction::SetMinEnergy().
00049 : G4RPGInelastic("G4RPGKShortInelastic") 00050 { 00051 SetMinEnergy( 0.0 ); 00052 SetMaxEnergy( 25.*CLHEP::GeV ); 00053 }
| virtual G4RPGKShortInelastic::~G4RPGKShortInelastic | ( | ) | [inline, virtual] |
| G4HadFinalState* G4RPGKShortInelastic::ApplyYourself | ( | const G4HadProjectile & | aTrack, | |
| G4Nucleus & | targetNucleus | |||
| ) | [inline, virtual] |
Implements G4HadronicInteraction.
Definition at line 57 of file G4RPGKShortInelastic.hh.
References G4RPGAntiKZeroInelastic::ApplyYourself(), G4RPGKZeroInelastic::ApplyYourself(), and G4UniformRand.
00058 { 00059 if(G4UniformRand() < 0.50) 00060 { 00061 return theKZeroInelastic.ApplyYourself(aTrack, targetNucleus); 00062 } 00063 else 00064 { 00065 return theAntiKZeroInelastic.ApplyYourself(aTrack, targetNucleus); 00066 } 00067 }
1.4.7