G4HEAntiSigmaZeroInelastic.cc

Go to the documentation of this file.
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 
00029 // G4 Process: Gheisha High Energy Collision model.
00030 // This includes the high energy cascading model, the two-body-resonance model
00031 // and the low energy two-body model.  Not included is the low energy stuff
00032 // like nuclear reactions, nuclear fission without any cascading and all
00033 // processes for particles at rest.  
00034 // First work done by J.L.Chuma and F.W.Jones, TRIUMF, June 96.  
00035 // H. Fesefeldt, RWTH-Aachen, 23-October-1996
00036  
00037 #include "G4HEAntiSigmaZeroInelastic.hh"
00038 #include "G4Gamma.hh"
00039 #include "globals.hh"
00040 #include "G4ios.hh"
00041 
00042 void G4HEAntiSigmaZeroInelastic::ModelDescription(std::ostream& outFile) const
00043 {
00044   outFile << "G4HEAntiSigmaZeroInelastic is one of the High Energy\n"
00045           << "Parameterized (HEP) models used to implement inelastic\n"
00046           << "anti-Sigma0 scattering from nuclei.  It is a re-engineered\n"
00047           << "version of the GHEISHA code of H. Fesefeldt.  It divides the\n"
00048           << "initial collision products into backward- and forward-going\n"
00049           << "clusters which are then decayed into final state hadrons.\n"
00050           << "The model does not conserve energy on an event-by-event\n"
00051           << "basis.  It may be applied to anti-Sigma0 with initial\n"
00052           << "energies above 20 GeV.\n";
00053 }
00054 
00055 
00056 G4HadFinalState*
00057 G4HEAntiSigmaZeroInelastic::ApplyYourself(const G4HadProjectile& aTrack,
00058                                           G4Nucleus& targetNucleus)
00059 {
00060   G4HEVector* pv = new G4HEVector[MAXPART];
00061   const G4HadProjectile *aParticle = &aTrack;
00062   G4HEVector incidentParticle(aParticle);
00063   G4HEAntiLambdaInelastic theAntiLambdaInelastic;
00064   theAntiLambdaInelastic.SetMaxNumberOfSecondaries(MAXPART);
00065   theAntiLambdaInelastic.SetVerboseLevel(verboseLevel);
00066     
00067   G4double incidentTotalMomentum = incidentParticle.getTotalMomentum();
00068   G4double pgam = G4UniformRand()*incidentTotalMomentum*0.75;
00069   G4HEVector incidentAntiLambda; 
00070   incidentAntiLambda.SmulAndUpdate(incidentParticle, 
00071                                    (incidentTotalMomentum - pgam)/incidentTotalMomentum);                   
00072   G4DynamicParticle* aLambda = new G4DynamicParticle();
00073   aLambda->SetDefinition(G4AntiLambda::AntiLambda());
00074   aLambda->SetMomentum(incidentAntiLambda.getMomentum());
00075   G4HadProjectile aLambdaTrack(*aLambda);
00076   G4HadFinalState* result = theAntiLambdaInelastic.ApplyYourself(aLambdaTrack, targetNucleus);          
00077   vecLength = theAntiLambdaInelastic.GetNumberOfSecondaries();
00078   pv[vecLength] = Gamma;
00079   pv[vecLength].setMomentum(incidentParticle.getMomentum());
00080   pv[vecLength].SmulAndUpdate( pv[vecLength],pgam/incidentTotalMomentum); 
00081   G4DynamicParticle * aPhoton = new G4DynamicParticle();
00082   aPhoton->SetDefinition(G4Gamma::Gamma());
00083   aPhoton->SetMomentum(pv[vecLength].getMomentum());
00084   result->AddSecondary(aPhoton);
00085   delete [] pv;
00086   return result;
00087 } 
00088 

Generated on Mon May 27 17:48:28 2013 for Geant4 by  doxygen 1.4.7