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 | // ------------------------------------------------------------------- |
---|
28 | // $Id: G4PenelopeBremsstrahlung.hh,v 1.8 2006/06/29 19:36:15 gunter Exp $ |
---|
29 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
30 | // |
---|
31 | // Author: L.Pandola |
---|
32 | // |
---|
33 | // History: |
---|
34 | // ----------- |
---|
35 | // 03 Feb 2003 L. Pandola 1st implementation |
---|
36 | // 18 Mar 2003 L. Pandola positrons added |
---|
37 | // 23 May 2003 L. Pandola ebins added as private member |
---|
38 | // 25 May 2003 MGP ebins removed from data members |
---|
39 | // 11 Nov 2003 L. Pandola Code review: use std::map for angular data |
---|
40 | // Class description: |
---|
41 | // Penelope electromagnetic process, electron and positron Bremsstrahlung |
---|
42 | // -------------------------------------------------------------- |
---|
43 | |
---|
44 | |
---|
45 | #ifndef G4PENELOPEBREMSSTRAHLUNG_HH |
---|
46 | #define G4PENELOPEBREMSSTRAHLUNG_HH 1 |
---|
47 | |
---|
48 | #include "G4eLowEnergyLoss.hh" |
---|
49 | #include "G4DataVector.hh" |
---|
50 | #include "globals.hh" |
---|
51 | #include "G4PenelopeBremsstrahlungAngular.hh" |
---|
52 | |
---|
53 | class G4Track; |
---|
54 | class G4Step; |
---|
55 | class G4ParticleDefinition; |
---|
56 | class G4VParticleChange; |
---|
57 | class G4VEMDataSet; |
---|
58 | class G4VEnergySpectrum; |
---|
59 | class G4VCrossSectionHandler; |
---|
60 | class G4PenelopeBremsstrahlung : public G4eLowEnergyLoss |
---|
61 | { |
---|
62 | public: |
---|
63 | |
---|
64 | G4PenelopeBremsstrahlung(const G4String& processName = "PenelopeBrem"); |
---|
65 | |
---|
66 | ~G4PenelopeBremsstrahlung(); |
---|
67 | |
---|
68 | G4bool IsApplicable(const G4ParticleDefinition&); |
---|
69 | |
---|
70 | void BuildPhysicsTable(const G4ParticleDefinition& particleType); |
---|
71 | |
---|
72 | G4VParticleChange* PostStepDoIt(const G4Track& track, |
---|
73 | const G4Step& step); |
---|
74 | |
---|
75 | void SetCutForLowEnSecPhotons(G4double cut); |
---|
76 | |
---|
77 | void PrintInfoDefinition(); |
---|
78 | |
---|
79 | //For testing purpose only |
---|
80 | G4double DumpMeanFreePath(const G4Track& aTrack, |
---|
81 | G4double previousStepSize, |
---|
82 | G4ForceCondition* condition) |
---|
83 | { return GetMeanFreePath(aTrack, previousStepSize, condition); } |
---|
84 | |
---|
85 | protected: |
---|
86 | |
---|
87 | G4double GetMeanFreePath(const G4Track& track, |
---|
88 | G4double previousStepSize, |
---|
89 | G4ForceCondition* condition ); |
---|
90 | |
---|
91 | private: |
---|
92 | |
---|
93 | // Hide copy constructor and assignment operator as private |
---|
94 | G4PenelopeBremsstrahlung(const G4PenelopeBremsstrahlung& ); |
---|
95 | G4PenelopeBremsstrahlung& operator = (const G4PenelopeBremsstrahlung& right); |
---|
96 | |
---|
97 | void BuildLossTable(const G4ParticleDefinition& ParticleType); |
---|
98 | |
---|
99 | void LoadAngularData(); |
---|
100 | |
---|
101 | G4VCrossSectionHandler* crossSectionHandler; |
---|
102 | G4VEMDataSet* theMeanFreePath; |
---|
103 | G4VEnergySpectrum* energySpectrum; |
---|
104 | |
---|
105 | // Map to the objects containing tha angular data |
---|
106 | std::map<G4int,G4PenelopeBremsstrahlungAngular*> *angularData; |
---|
107 | |
---|
108 | |
---|
109 | // Lower limit for generation of gamma in this model |
---|
110 | G4DataVector cutForSecondaryPhotons; |
---|
111 | G4double cutForPhotons; |
---|
112 | |
---|
113 | }; |
---|
114 | |
---|
115 | |
---|
116 | |
---|
117 | #endif |
---|
118 | |
---|
119 | |
---|
120 | |
---|
121 | |
---|
122 | |
---|
123 | |
---|
124 | |
---|
125 | |
---|
126 | |
---|
127 | |
---|
128 | |
---|