Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QDiffraction.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// ---------------- G4QDiffraction header ----------------
29// by Mikhail Kossov, Aug 2007.
30// Header of G4QDiffraction class (hadron+A) of the CHIPS Simulation Branch in GEANT4
31// -------------------------------------------------------------------------------
32// This is a unique CHIPS class for the Hadron-Nuclear Diffractive Interaction Prosesses
33// -------------------------------------------------------------------------------
34// At present (Aug-07) it is based on the G4QDiffractionRatio class and is not tested.
35// The normalization is based on the temporary G4QProtonNuclearCrossSection class
36// -------------------------------------------------------------------------------
37// Short description: This is a process, which describes the diffraction
38// excitation of the projectile and the nucleus. On nuclei in addition there
39// can be a coherent diffraction process for the projectile, but it is
40// comparably small. The most important part of the diffraction is the
41// progectile diffraction excitation, as in this interaction proton can lose
42// only a small part of its energy and make the shower longer. This is because
43// only 1-2 (n) pions are produce in the diffraction escitation, and the mean
44// kept energy of the nucleon is (1-n/7)=80%. For kaons the kept energy is much
45// smaller (1-n/3.5)=60%, and for pions it is less important (about 40%).
46// ----------------------------------------------------------------------------
47
48#ifndef G4QDiffraction_hh
49#define G4QDiffraction_hh
50
51// GEANT4 Headers
52#include "globals.hh"
53#include "G4ios.hh"
54#include "Randomize.hh"
55#include "G4VDiscreteProcess.hh"
56#include "G4Track.hh"
57#include "G4Step.hh"
58#include "G4ParticleTypes.hh"
59#include "G4VParticleChange.hh"
61#include "G4DynamicParticle.hh"
62#include "G4ThreeVector.hh"
63#include "G4LorentzVector.hh"
64
65// CHIPS Headers
68#include "G4QIsotope.hh"
69#include "G4QCHIPSWorld.hh"
70#include "G4QHadronVector.hh"
71#include <vector>
72
74{
75public:
76
77 // Constructor
78 G4QDiffraction(const G4String& processName ="CHIPS_DiffractiveInteraction");
79
80 // Destructor
82
84
85 G4double GetMeanFreePath(const G4Track& aTrack, G4double previousStepSize,
87 // It returns the MeanFreePath of the process for the current track :
88 // (energy, material)
89 // The previousStepSize and G4ForceCondition* are not used.
90 // This function overloads a virtual function of the base class.
91 // It is invoked by the ProcessManager of the Particle.
92
93
94 G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep);
95 // It computes the final state of the process (at end of step),
96 // returned as a ParticleChange object.
97 // This function overloads a virtual function of the base class.
98 // It is invoked by the ProcessManager of the Particle.
99
100
102
104
105private:
106
107 // Hide assignment operator as private
108 G4QDiffraction& operator=(const G4QDiffraction &right);
109
110 // Copy constructor
112
113 // Calculate Cross-Section of the Diffraction Reaction (p is in GeV @@ units)
114 G4double CalculateXS(G4double p, G4int Z, G4int N, G4int pPDG);
115
116 // BODY
117 // Static Parameters --------------------------------------------------------------------
118 static G4int nPartCWorld; // The#of particles for hadronization (limit of A of fragm.)
119 //--------------------------------- End of static parameters ---------------------------
120 // Working parameters
121 G4VQCrossSection* theCS;
122 G4LorentzVector EnMomConservation; // Residual of Energy/Momentum Cons.
123 G4int nOfNeutrons; // #of neutrons in the target nucleus
124
125 // Modifires for the reaction
126 G4double Time; // Time shift of the capture reaction
127 G4double EnergyDeposition; // Energy deposited in the reaction
128 static std::vector <G4int> ElementZ; // Z of the element(i) in theLastCalc
129 static std::vector <G4double> ElProbInMat; // SumProbabilityElements in Material
130 static std::vector <std::vector<G4int>*> ElIsoN; // N of isotope(j) of Element(i)
131 static std::vector <std::vector<G4double>*> IsoProbInEl;// SumProbabIsotopes in Element i
132};
133#endif
G4double condition(const G4ErrorSymMatrix &m)
G4ForceCondition
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
bool G4bool
Definition: G4Types.hh:67
G4double GetMeanFreePath(const G4Track &aTrack, G4double previousStepSize, G4ForceCondition *condition)
G4int GetNumberOfNeutronsInTarget()
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep)
G4bool IsApplicable(const G4ParticleDefinition &particle)
G4LorentzVector GetEnegryMomentumConservation()
Definition: G4Step.hh:78