source: trunk/source/processes/electromagnetic/standard/include/G4ComptonScattering52.hh@ 966

Last change on this file since 966 was 961, checked in by garnier, 17 years ago

update processes

File size: 7.0 KB
Line 
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//
27// $Id: G4ComptonScattering52.hh,v 1.4 2007/05/16 14:00:56 vnivanch Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//------------------ G4ComptonScattering52 physics process -----------------------
31// by Michel Maire, April 1996
32//
33// 10-06-96, updated by M.Maire
34// 21-06-96, SetCuts implementation, M.Maire
35// 06-01-97, crossection table + meanfreepath table, M.Maire
36// 17-02-97, New Physics scheme
37// 25-02-97, GetMeanFreePath() now is public function
38// 12-03-97, new physics scheme again
39// 13-08-98, new methods SetBining() PrintInfo()
40// 03-08-01, new methods Store/Retrieve PhysicsTable (mma)
41// 06-08-01, BuildThePhysicsTable() called from constructor (mma)
42// 19-09-01, come back to previous ProcessName "compt"
43// 20-09-01, DoIt: fminimalEnergy = 1*eV (mma)
44// 01-10-01, come back to BuildPhysicsTable(const G4ParticleDefinition&)
45// 13-08-04, suppress icc file; make public ComputeCrossSectionPerAtom() (mma)
46// 09-11-04, Remove Retrieve tables (V.Ivantchenko)
47// 04-05-05, Add 52 to class name (V.Ivanchenko)
48// -----------------------------------------------------------------------------
49
50// class description
51//
52// inherit from G4VDiscreteProcess
53//
54
55//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
56//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
57
58#ifndef G4ComptonScattering52_h
59#define G4ComptonScattering52_h 1
60
61#include "G4ios.hh"
62#include "globals.hh"
63#include "Randomize.hh"
64#include "G4VDiscreteProcess.hh"
65#include "G4PhysicsTable.hh"
66#include "G4PhysicsLogVector.hh"
67#include "G4Element.hh"
68#include "G4Gamma.hh"
69#include "G4Electron.hh"
70#include "G4Step.hh"
71
72//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
73
74class G4ComptonScattering52 : public G4VDiscreteProcess
75
76{
77 public: // with description
78
79 G4ComptonScattering52(const G4String& processName ="compt",
80 G4ProcessType type = fElectromagnetic);
81
82 ~G4ComptonScattering52();
83
84 G4bool IsApplicable(const G4ParticleDefinition&);
85 // true for Gamma only.
86
87 void SetPhysicsTableBining(G4double lowE, G4double highE, G4int nBins);
88 // Allows to define the binning of the PhysicsTables,
89 // before to build them.
90
91 void BuildPhysicsTable(const G4ParticleDefinition&);
92 // It builds the total CrossSectionPerAtom table, for Gamma,
93 // and for every element contained in the elementTable.
94 // It builds the MeanFreePath table, for Gamma,
95 // and for every material contained in the materialTable.
96
97 G4bool StorePhysicsTable(const G4ParticleDefinition* ,
98 const G4String& directory, G4bool);
99 // store CrossSection and MeanFreePath tables into an external file
100 // specified by 'directory' (must exist before invokation)
101
102 //G4bool RetrievePhysicsTable(const G4ParticleDefinition* ,
103 // const G4String& directory, G4bool);
104 // retrieve CrossSection and MeanFreePath tables from an external file
105 // specified by 'directory'
106
107 void PrintInfoDefinition();
108 // Print few lines of informations about the process: validity range,
109 // origine ..etc..
110 // Invoked by BuildThePhysicsTable().
111
112 G4double GetMeanFreePath(const G4Track& aTrack,
113 G4double previousStepSize,
114 G4ForceCondition* condition);
115 // It returns the MeanFreePath of the process for the current track :
116 // (energy, material)
117 // The previousStepSize and G4ForceCondition* are not used.
118 // This function overloads a virtual function of the base class.
119 // It is invoked by the ProcessManager of the Particle.
120
121 G4double GetCrossSectionPerAtom(G4DynamicParticle* aDynamicGamma,
122 G4Element* anElement);
123 // It returns the total CrossSectionPerAtom of the process,
124 // for the current DynamicGamma (energy), in anElement.
125
126 G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
127 const G4Step& aStep);
128 // It computes the final state of the process (at end of step),
129 // returned as a ParticleChange object.
130 // This function overloads a virtual function of the base class.
131 // It is invoked by the ProcessManager of the Particle.
132
133 virtual
134 G4double ComputeCrossSectionPerAtom(G4double GammaEnergy,
135 G4double AtomicNumber);
136
137 G4double ComputeMeanFreePath(G4double GammaEnergy,
138 G4Material* aMaterial);
139 private:
140
141 // hide assignment operator as private
142 G4ComptonScattering52& operator=(const G4ComptonScattering52 &right);
143 G4ComptonScattering52(const G4ComptonScattering52& );
144
145 private:
146
147 G4PhysicsTable* theCrossSectionTable; // table for crosssection
148 G4PhysicsTable* theMeanFreePathTable; // table for mean free path
149
150 G4double LowestEnergyLimit; // low energy limit of the tables
151 G4double HighestEnergyLimit; // high energy limit of the tables
152 G4int NumbBinTable; // number of bins in the tables
153
154 protected:
155
156 G4double fminimalEnergy; // minimalEnergy of produced particles
157};
158
159//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
160
161#endif
162
Note: See TracBrowser for help on using the repository browser.