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: G4ePolarizedIonisation.hh,v 1.3 2007/06/11 13:37:56 vnivanch Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-03-cand-01 $ |
---|
28 | // ------------------------------------------------------------------- |
---|
29 | // |
---|
30 | // GEANT4 Class header file |
---|
31 | // |
---|
32 | // |
---|
33 | // File name: G4ePolarizedIonisation |
---|
34 | // |
---|
35 | // Author: A.Schaelicke on base of Vladimir Ivanchenko code |
---|
36 | // |
---|
37 | // Creation date: 10.11.2005 |
---|
38 | // |
---|
39 | // Modifications: |
---|
40 | // |
---|
41 | // 10-11-05, include polarization description (A.Schaelicke) |
---|
42 | // , create asymmetry table and determine interactionlength |
---|
43 | // , update polarized differential cross section |
---|
44 | // |
---|
45 | // 20-08-06, modified interface (A.Schaelicke) |
---|
46 | // 11-06-07, add PostStepGetPhysicalInteractionLength (A.Schalicke) |
---|
47 | // |
---|
48 | // Class Description: |
---|
49 | // |
---|
50 | // polarized version of G4eIonisation |
---|
51 | // ---------------------------------------------------------------------------- |
---|
52 | // ------------------------------------------------------------------- |
---|
53 | // |
---|
54 | |
---|
55 | #ifndef G4ePolarizedIonisation_h |
---|
56 | #define G4ePolarizedIonisation_h 1 |
---|
57 | |
---|
58 | #include "G4VEnergyLossProcess.hh" |
---|
59 | #include "G4Electron.hh" |
---|
60 | #include "G4Positron.hh" |
---|
61 | |
---|
62 | class G4Material; |
---|
63 | class G4ParticleDefinition; |
---|
64 | class G4VEmFluctuationModel; |
---|
65 | class G4PolarizedMollerBhabhaModel; |
---|
66 | |
---|
67 | class G4ePolarizedIonisation : public G4VEnergyLossProcess |
---|
68 | { |
---|
69 | |
---|
70 | public: |
---|
71 | |
---|
72 | G4ePolarizedIonisation(const G4String& name = "pol-eIoni"); |
---|
73 | |
---|
74 | virtual ~G4ePolarizedIonisation(); |
---|
75 | |
---|
76 | G4bool IsApplicable(const G4ParticleDefinition& p); |
---|
77 | |
---|
78 | // Print out of the class parameters |
---|
79 | virtual void PrintInfo(); |
---|
80 | |
---|
81 | protected: |
---|
82 | |
---|
83 | virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*, |
---|
84 | const G4ParticleDefinition*); |
---|
85 | |
---|
86 | virtual G4double MinPrimaryEnergy(const G4ParticleDefinition*, |
---|
87 | const G4Material*, G4double cut); |
---|
88 | |
---|
89 | |
---|
90 | // for polarization |
---|
91 | G4double PostStepGetPhysicalInteractionLength( |
---|
92 | const G4Track& track, |
---|
93 | G4double previousStepSize, |
---|
94 | G4ForceCondition* condition |
---|
95 | ); |
---|
96 | |
---|
97 | G4double GetMeanFreePath(const G4Track& track, |
---|
98 | G4double previousStepSize, |
---|
99 | G4ForceCondition* condition); |
---|
100 | |
---|
101 | virtual void BuildPhysicsTable(const G4ParticleDefinition&); |
---|
102 | |
---|
103 | G4double ComputeAsymmetry(G4double energy, |
---|
104 | const G4MaterialCutsCouple* couple, |
---|
105 | const G4ParticleDefinition& particle, |
---|
106 | G4double cut, |
---|
107 | G4double &tasm); |
---|
108 | |
---|
109 | protected: |
---|
110 | |
---|
111 | const G4ParticleDefinition* DefineBaseParticle(const G4ParticleDefinition* p); |
---|
112 | |
---|
113 | private: |
---|
114 | G4ePolarizedIonisation & operator=(const G4ePolarizedIonisation &right); |
---|
115 | G4ePolarizedIonisation(const G4ePolarizedIonisation&); |
---|
116 | |
---|
117 | G4ParticleDefinition* theElectron; |
---|
118 | G4VEmFluctuationModel* flucModel; |
---|
119 | G4PolarizedMollerBhabhaModel* emModel; |
---|
120 | |
---|
121 | G4bool isElectron; |
---|
122 | G4bool isInitialised; |
---|
123 | |
---|
124 | // for polarization: |
---|
125 | G4ThreeVector theTargetPolarization; |
---|
126 | |
---|
127 | size_t numBinAsymmetryTable; |
---|
128 | |
---|
129 | G4PhysicsTable* theAsymmetryTable; // table for cross section assym. |
---|
130 | G4PhysicsTable* theTransverseAsymmetryTable; // table for transverse cross section assym. |
---|
131 | }; |
---|
132 | |
---|
133 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
134 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
135 | |
---|
136 | inline G4double G4ePolarizedIonisation::MinPrimaryEnergy(const G4ParticleDefinition*, |
---|
137 | const G4Material*, |
---|
138 | G4double cut) |
---|
139 | { |
---|
140 | G4double x = cut; |
---|
141 | if(isElectron) x += cut; |
---|
142 | return x; |
---|
143 | } |
---|
144 | |
---|
145 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
146 | |
---|
147 | inline G4bool G4ePolarizedIonisation::IsApplicable(const G4ParticleDefinition& p) |
---|
148 | { |
---|
149 | return (&p == G4Electron::Electron() || &p == G4Positron::Positron()); |
---|
150 | } |
---|
151 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
152 | |
---|
153 | #endif |
---|