Files
geant4/source/processes/hadronic/models/high_energy/src/G4HEKaonZeroShortInelastic.cc
T
2016-06-08 15:09:25 +02:00

54 lines
1.5 KiB
C++

// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4HEKaonZeroShortInelastic.cc,v 1.2 1999/06/16 04:37:57 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
#include "globals.hh"
#include "G4ios.hh"
//
// G4 Process: Gheisha High Energy Collision model.
// This includes the high energy cascading model, the two-body-resonance model
// and the low energy two-body model. Not included are the low energy stuff like
// nuclear reactions, nuclear fission without any cascading and all processes for
// particles at rest.
// First work done by J.L.Chuma and F.W.Jones, TRIUMF, June 96.
// H. Fesefeldt, RWTH-Aachen, 23-October-1996
// Last modified: 29-July-1998
#include "G4HEKaonZeroShortInelastic.hh"
G4VParticleChange * G4HEKaonZeroShortInelastic::
ApplyYourself( const G4Track &aTrack, G4Nucleus &targetNucleus )
{
G4HEKaonZeroInelastic theKaonZeroInelastic;
G4HEAntiKaonZeroInelastic theAntiKaonZeroInelastic;
theKaonZeroInelastic.SetVerboseLevel(verboseLevel);
theAntiKaonZeroInelastic.SetVerboseLevel(verboseLevel);
if(G4UniformRand() < 0.50)
{
return theKaonZeroInelastic.ApplyYourself(aTrack, targetNucleus);
}
else
{
return theAntiKaonZeroInelastic.ApplyYourself(aTrack, targetNucleus);
}
}