G4RPGKShortInelastic Class Reference

#include <G4RPGKShortInelastic.hh>

Inheritance diagram for G4RPGKShortInelastic:

G4RPGInelastic G4HadronicInteraction

Public Member Functions

 G4RPGKShortInelastic ()
virtual ~G4RPGKShortInelastic ()
G4HadFinalStateApplyYourself (const G4HadProjectile &aTrack, G4Nucleus &targetNucleus)

Detailed Description

Definition at line 46 of file G4RPGKShortInelastic.hh.


Constructor & Destructor Documentation

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]

Definition at line 55 of file G4RPGKShortInelastic.hh.

00055 { }


Member Function Documentation

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     } 


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:53:18 2013 for Geant4 by  doxygen 1.4.7