Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4HEAntiSigmaZeroInelastic.cc
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id$
27 //
28 
29 // G4 Process: Gheisha High Energy Collision model.
30 // This includes the high energy cascading model, the two-body-resonance model
31 // and the low energy two-body model. Not included is the low energy stuff
32 // like nuclear reactions, nuclear fission without any cascading and all
33 // processes for particles at rest.
34 // First work done by J.L.Chuma and F.W.Jones, TRIUMF, June 96.
35 // H. Fesefeldt, RWTH-Aachen, 23-October-1996
36 
38 #include "G4Gamma.hh"
39 #include "globals.hh"
40 #include "G4ios.hh"
41 
43 {
44  outFile << "G4HEAntiSigmaZeroInelastic is one of the High Energy\n"
45  << "Parameterized (HEP) models used to implement inelastic\n"
46  << "anti-Sigma0 scattering from nuclei. It is a re-engineered\n"
47  << "version of the GHEISHA code of H. Fesefeldt. It divides the\n"
48  << "initial collision products into backward- and forward-going\n"
49  << "clusters which are then decayed into final state hadrons.\n"
50  << "The model does not conserve energy on an event-by-event\n"
51  << "basis. It may be applied to anti-Sigma0 with initial\n"
52  << "energies above 20 GeV.\n";
53 }
54 
55 
58  G4Nucleus& targetNucleus)
59 {
60  G4HEVector* pv = new G4HEVector[MAXPART];
61  const G4HadProjectile *aParticle = &aTrack;
62  G4HEVector incidentParticle(aParticle);
63  G4HEAntiLambdaInelastic theAntiLambdaInelastic;
64  theAntiLambdaInelastic.SetMaxNumberOfSecondaries(MAXPART);
65  theAntiLambdaInelastic.SetVerboseLevel(verboseLevel);
66 
67  G4double incidentTotalMomentum = incidentParticle.getTotalMomentum();
68  G4double pgam = G4UniformRand()*incidentTotalMomentum*0.75;
69  G4HEVector incidentAntiLambda;
70  incidentAntiLambda.SmulAndUpdate(incidentParticle,
71  (incidentTotalMomentum - pgam)/incidentTotalMomentum);
72  G4DynamicParticle* aLambda = new G4DynamicParticle();
74  aLambda->SetMomentum(incidentAntiLambda.getMomentum());
75  G4HadProjectile aLambdaTrack(*aLambda);
76  G4HadFinalState* result = theAntiLambdaInelastic.ApplyYourself(aLambdaTrack, targetNucleus);
77  vecLength = theAntiLambdaInelastic.GetNumberOfSecondaries();
78  pv[vecLength] = Gamma;
79  pv[vecLength].setMomentum(incidentParticle.getMomentum());
80  pv[vecLength].SmulAndUpdate( pv[vecLength],pgam/incidentTotalMomentum);
81  G4DynamicParticle * aPhoton = new G4DynamicParticle();
82  aPhoton->SetDefinition(G4Gamma::Gamma());
83  aPhoton->SetMomentum(pv[vecLength].getMomentum());
84  result->AddSecondary(aPhoton);
85  delete [] pv;
86  return result;
87 }
88