Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4LEKaonZeroSInelastic.hh
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 // G4 Gheisha High Energy model class -- header file
29 // H. Fesefeldt, RWTH Aachen 23-October-1996
30 // A prototype of the Gheisha High Energy collision model.
31 
32 #ifndef G4LEKaonZeroSInelastic_h
33 #define G4LEKaonZeroSInelastic_h 1
34 
36 
37 #include "G4LEKaonZeroInelastic.hh"
39 #include "Randomize.hh"
40 
42 {
43  public:
44  G4LEKaonZeroSInelastic() : G4InelasticInteraction("G4LEKaonZeroSInelastic")
45  {
46  SetMinEnergy(0.0);
47  SetMaxEnergy(25.*CLHEP::GeV);
48  G4cout << "WARNING: model G4LEKaonZeroSInelastic is being deprecated and will\n"
49  << "disappear in Geant4 version 10.0" << G4endl;
50  }
51 
53 
54  G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack, G4Nucleus& targetNucleus)
55  {
56  if(G4UniformRand() < 0.50)
57  {
58  return theKaonZeroInelastic.ApplyYourself(aTrack, targetNucleus);
59  }
60  else
61  {
62  return theAntiKaonZeroInelastic.ApplyYourself(aTrack, targetNucleus);
63  }
64  }
65 
66  virtual void ModelDescription(std::ostream& outFile) const
67  {
68  outFile << "G4LEKaonZeroSInelastic is one of the Low Energy\n"
69  << "Parameterized (LEP) models used to implement K0S\n"
70  << "scattering from nuclei. Upon interaction with a nucleus\n"
71  << "the K0S is treated as a K0 50% of the time and an antiK0\n"
72  << "50% of the time. Then the K0 or antiK0 interacts with the\n"
73  << "nucleus using the re-engineered GHEISHA code of\n"
74  << "H. Fesefeldt, which divides the initial collision products\n"
75  << "into backward- and forward-going clusters which are then\n"
76  << "decayed into final state hadrons. The model does not\n"
77  << "conserve energy or charge on an event-by-event basis. It\n"
78  << "may be applied to K0S with initial energies between 0 and\n"
79  << "25 GeV.\n";
80  }
81 
82  private:
83  G4LEKaonZeroInelastic theKaonZeroInelastic;
84  G4LEAntiKaonZeroInelastic theAntiKaonZeroInelastic;
85 
86 };
87 #endif
88 
89