00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 // $Id$ 00027 00028 // G4 Process: Gheisha High Energy Collision model. 00029 // This includes the high energy cascading model, the two-body-resonance model 00030 // and the low energy two-body model. Not included are the low energy stuff 00031 // like nuclear reactions, nuclear fission without any cascading and all 00032 // processes for particles at rest. 00033 // First work done by J.L.Chuma and F.W.Jones, TRIUMF, June 96. 00034 // H. Fesefeldt, RWTH-Aachen, 23-October-1996 00035 00036 #include "G4HESigmaZeroInelastic.hh" 00037 #include "globals.hh" 00038 #include "G4ios.hh" 00039 #include "G4Gamma.hh" 00040 00041 void G4HESigmaZeroInelastic::ModelDescription(std::ostream& outFile) const 00042 { 00043 outFile << "G4HESigmaZeroInelastic is one of the High Energy\n" 00044 << "Parameterized (HEP) models used to implement inelastic\n" 00045 << "Sigma0 scattering from nuclei. It is a re-engineered\n" 00046 << "version of the GHEISHA code of H. Fesefeldt. It divides the\n" 00047 << "initial collision products into backward- and forward-going\n" 00048 << "clusters which are then decayed into final state hadrons.\n" 00049 << "The model does not conserve energy on an event-by-event\n" 00050 << "basis. It may be applied to Sigma0 with initial energies\n" 00051 << "above 20 GeV.\n"; 00052 } 00053 00054 00055 G4HadFinalState* 00056 G4HESigmaZeroInelastic::ApplyYourself(const G4HadProjectile& aTrack, 00057 G4Nucleus& targetNucleus) 00058 { 00059 G4HEVector* pv = new G4HEVector[MAXPART]; 00060 const G4HadProjectile* aParticle = &aTrack; 00061 G4HEVector incidentParticle(aParticle); 00062 00063 G4HELambdaInelastic theLambdaInelastic; 00064 theLambdaInelastic.SetMaxNumberOfSecondaries(MAXPART); 00065 theLambdaInelastic.SetVerboseLevel(verboseLevel); 00066 00067 G4double incidentTotalMomentum = incidentParticle.getTotalMomentum(); 00068 G4double pgam = G4UniformRand()*incidentTotalMomentum*0.75; 00069 G4HEVector incidentLambda; 00070 incidentLambda.SmulAndUpdate(incidentParticle, 00071 (incidentTotalMomentum - pgam)/incidentTotalMomentum); 00072 G4DynamicParticle* aLambda = new G4DynamicParticle(); 00073 aLambda->SetDefinition(G4Lambda::Lambda()); 00074 aLambda->SetMomentum(incidentLambda.getMomentum()); 00075 G4HadProjectile aLambdaTrack(*aLambda); 00076 G4HadFinalState* result = 00077 theLambdaInelastic.ApplyYourself(aLambdaTrack, targetNucleus); 00078 vecLength = theLambdaInelastic.GetNumberOfSecondaries(); 00079 00080 pv[vecLength] = Gamma; 00081 pv[vecLength].setMomentum(incidentParticle.getMomentum()); 00082 pv[vecLength].SmulAndUpdate( pv[vecLength],pgam/incidentTotalMomentum); 00083 G4DynamicParticle* aPhoton = new G4DynamicParticle(); 00084 aPhoton->SetDefinition(G4Gamma::Gamma()); 00085 aPhoton->SetMomentum(pv[vecLength].getMomentum()); 00086 result->AddSecondary(aPhoton); 00087 delete [] pv; 00088 return result; 00089 } 00090