Files
geant4/source/processes/hadronic/models/high_energy/src/G4HEKaonZeroLongInelastic.cc
T
2016-06-08 16:57:27 +02:00

70 lines
2.7 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * 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: G4HEKaonZeroLongInelastic.cc,v 1.7 2002/12/12 19:18:02 gunter Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
//
#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 "G4HEKaonZeroLongInelastic.hh"
G4VParticleChange * G4HEKaonZeroLongInelastic::
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);
}
}