Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4QLowEnergy.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 // ---------------- G4QLowEnergy header ----------------
29 // by Mikhail Kossov, Aug 2007.
30 // Header of G4QLowEnergy class (A+A) of the CHIPS Simulation Branch in GEANT4
31 // -------------------------------------------------------------------------------
32 // This is a unique CHIPS class for the Ion-Ion Low Energy Inelastic Interactions
33 // -------------------------------------------------------------------------------
34 // At present (Aug-07) it is not tested.
35 // The normalization is based on the temporary G4QIonIonCrossSection class
36 // -------------------------------------------------------------------------------
37 // Short description: This is a fast low energy algorithm for the
38 // inelastic interactions of nucleons and nuclei (ions) with nuclei.
39 // This is a fase-space algorithm, but not quark level. Provides
40 // nuclear fragments upto alpha only. Never was tumed (but can be).
41 // ---------------------------------------------------------------
42 
43 #ifndef G4QLowEnergy_hh
44 #define G4QLowEnergy_hh
45 
46 // GEANT4 Headers
47 #include "globals.hh"
48 #include "G4ios.hh"
49 #include "Randomize.hh"
50 #include "G4VDiscreteProcess.hh"
51 #include "G4Track.hh"
52 #include "G4Step.hh"
53 #include "G4ParticleTypes.hh"
54 #include "G4ParticleTable.hh"
55 #include "G4VParticleChange.hh"
56 #include "G4ParticleDefinition.hh"
57 #include "G4DynamicParticle.hh"
58 #include "G4ThreeVector.hh"
59 #include "G4LorentzVector.hh"
60 
61 // CHIPS Headers
62 #include "G4QNucleus.hh"
63 #include "G4QIonIonCrossSection.hh"
67 #include "G4QIsotope.hh"
68 #include "G4QCHIPSWorld.hh"
69 #include "G4QHadronVector.hh"
70 #include <vector>
71 
73 {
74 public:
75 
76  // Constructor
77  G4QLowEnergy(const G4String& processName ="CHIPS_LowEnergyIonIonInelastic");
78 
79  // Destructor
80  ~G4QLowEnergy();
81 
82  G4bool IsApplicable(const G4ParticleDefinition& particle);
83 
84  G4double GetMeanFreePath(const G4Track& aTrack, G4double previousStepSize,
86  // It returns the MeanFreePath of the process for the current track :
87  // (energy, material)
88  // The previousStepSize and G4ForceCondition* are not used.
89  // This function overloads a virtual function of the base class.
90  // It is invoked by the ProcessManager of the Particle.
91 
92 
93  G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep);
94  // It computes the final state of the process (at end of step),
95  // returned as a ParticleChange object.
96  // This function overloads a virtual function of the base class.
97  // It is invoked by the ProcessManager of the Particle.
98 
100 
102 
103  void SwitchOnEvaporation() {evaporate=true;} // Evaporation instead of gammas (default)
104 
105  void SwitchOffEvaporation() {evaporate=false;} // Gammas instead of evaporation
106 
107 private:
108 
109  // Hide assignment operator as private
110  G4QLowEnergy& operator=(const G4QLowEnergy &right);
111 
112  // Copy constructor
113  G4QLowEnergy(const G4QLowEnergy&);
114 
115  // Calculate Cross-Section of the Diffraction Reaction (p is in GeV @@ units)
116  G4double CalculateXS(G4double p, G4int Z, G4int N, G4int pPDG);
117 
118  // BODY
119  // Static Parameters --------------------------------------------------------------------
120  static G4int nPartCWorld; // The#of particles for hadronization (limit of A of fragm.)
121  //--------------------------------- End of static parameters ---------------------------
122  // Working parameters
123  G4bool evaporate;
124  G4VQCrossSection* theCS;
125  G4LorentzVector EnMomConservation; // Residual of Energy/Momentum Cons.
126  G4int nOfNeutrons; // #of neutrons in the target nucleus
127 
128  // Modifires for the reaction
129  G4double Time; // Time shift of the capture reaction
130  G4double EnergyDeposition; // Energy deposited in the reaction
131  static std::vector <G4int> ElementZ; // Z of the element(i) in theLastCalc
132  static std::vector <G4double> ElProbInMat; // SumProbabilityElements in Material
133  static std::vector <std::vector<G4int>*> ElIsoN; // N of isotope(j) of Element(i)
134  static std::vector <std::vector<G4double>*> IsoProbInEl;// SumProbabIsotopes in Element i
135 };
136 #endif