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: G4VGammaDeexcitation.hh,v 1.9 2010/11/17 16:50:53 vnivanch Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-04-ref-00 $ |
---|
28 | // |
---|
29 | // ------------------------------------------------------------------- |
---|
30 | // GEANT 4 class file |
---|
31 | // |
---|
32 | // CERN, Geneva, Switzerland |
---|
33 | // |
---|
34 | // File name: G4VGammaDeexcitation |
---|
35 | // |
---|
36 | // Author: Maria Grazia Pia (pia@genova.infn.it) |
---|
37 | // |
---|
38 | // Creation date: 23 October 1998 |
---|
39 | // |
---|
40 | // Modifications: |
---|
41 | // |
---|
42 | // 15 April 1999, Alessandro Brunengo (Alessandro.Brunengo@ge.infn.it) |
---|
43 | // Added creation time evaluation for products of evaporation |
---|
44 | // |
---|
45 | // 21 Nov 2001, Fan Lei (flei@space.qinetiq.com) |
---|
46 | // Modified GenerateGamma() and UpdateUncleus() for implementation |
---|
47 | // of Internal Conversion processs |
---|
48 | // |
---|
49 | // 8 March 2002, Fan Lei (flei@space.qinetiq.com) |
---|
50 | // Added SetEO () , GetEO(), UpdateElectrons() to allow the assignment |
---|
51 | // and modification of electron configuration. |
---|
52 | // |
---|
53 | // 18 October 2002, F. Lei |
---|
54 | // Added GetVaccantSN() and _vSN in order to link to ARM in low-e em |
---|
55 | // _vSN is updated in UpdateElectron() |
---|
56 | // Added SetVaccantSN(). It is need to to re-set _vSN after each |
---|
57 | // IC happened. |
---|
58 | // |
---|
59 | // 28 April 2010, V.Ivanchenko cleanup methods |
---|
60 | // |
---|
61 | // ------------------------------------------------------------------- |
---|
62 | // |
---|
63 | |
---|
64 | #ifndef G4VGAMMADEEXCITATION_HH |
---|
65 | #define G4VGAMMADEEXCITATION_HH 1 |
---|
66 | |
---|
67 | #include "globals.hh" |
---|
68 | #include "G4VGammaTransition.hh" |
---|
69 | #include "G4Fragment.hh" |
---|
70 | #include "G4FragmentVector.hh" |
---|
71 | #include "G4ElectronOccupancy.hh" |
---|
72 | |
---|
73 | class G4VGammaDeexcitation { |
---|
74 | |
---|
75 | public: |
---|
76 | |
---|
77 | G4VGammaDeexcitation(); |
---|
78 | |
---|
79 | virtual ~G4VGammaDeexcitation(); |
---|
80 | |
---|
81 | virtual G4VGammaTransition * CreateTransition() = 0; |
---|
82 | virtual G4bool CanDoTransition() = 0; |
---|
83 | |
---|
84 | // Single gamma transition |
---|
85 | G4FragmentVector * DoTransition(); |
---|
86 | |
---|
87 | // Chain of gamma transitions |
---|
88 | G4FragmentVector * DoChain(); |
---|
89 | |
---|
90 | G4Fragment * GenerateGamma(); |
---|
91 | |
---|
92 | inline G4Fragment* GetNucleus(); |
---|
93 | |
---|
94 | inline void SetNucleus(G4Fragment* nucleus); |
---|
95 | |
---|
96 | inline void SetVerboseLevel(G4int verbose); |
---|
97 | |
---|
98 | inline void Initialize(); |
---|
99 | |
---|
100 | inline void SetEO(G4ElectronOccupancy eo) { _electronO = eo; }; |
---|
101 | inline void SetVaccantSN( G4int val ) { _vSN = val;}; |
---|
102 | |
---|
103 | inline G4ElectronOccupancy GetEO() { return _electronO; }; |
---|
104 | inline G4int GetVacantSN() {return _vSN;}; |
---|
105 | |
---|
106 | protected: |
---|
107 | |
---|
108 | void Update(); |
---|
109 | |
---|
110 | G4VGammaTransition* _transition; // Owned pointer |
---|
111 | G4int _verbose; |
---|
112 | |
---|
113 | private: |
---|
114 | |
---|
115 | G4Fragment* _nucleus; |
---|
116 | G4ElectronOccupancy _electronO; |
---|
117 | G4int _vSN; |
---|
118 | |
---|
119 | G4VGammaDeexcitation(const G4VGammaDeexcitation & right); |
---|
120 | const G4VGammaDeexcitation & operator = (const G4VGammaDeexcitation & right); |
---|
121 | G4bool operator == (const G4VGammaDeexcitation & right) const; |
---|
122 | G4bool operator != (const G4VGammaDeexcitation & right) const; |
---|
123 | |
---|
124 | }; |
---|
125 | |
---|
126 | inline G4Fragment* G4VGammaDeexcitation::GetNucleus() |
---|
127 | { |
---|
128 | return _nucleus; |
---|
129 | } |
---|
130 | |
---|
131 | inline void G4VGammaDeexcitation::SetNucleus(G4Fragment* nucleus) |
---|
132 | { |
---|
133 | _nucleus = nucleus; |
---|
134 | } |
---|
135 | |
---|
136 | inline void G4VGammaDeexcitation::SetVerboseLevel(G4int verbose) |
---|
137 | { |
---|
138 | _verbose = verbose; |
---|
139 | } |
---|
140 | |
---|
141 | inline void G4VGammaDeexcitation::Initialize() |
---|
142 | { |
---|
143 | if (_transition != 0) { delete _transition; } |
---|
144 | _transition = CreateTransition(); |
---|
145 | if (_transition != 0) { |
---|
146 | _transition->SetEnergyFrom(_nucleus->GetExcitationEnergy()); |
---|
147 | } |
---|
148 | } |
---|
149 | |
---|
150 | #endif |
---|
151 | |
---|
152 | |
---|
153 | |
---|
154 | |
---|
155 | |
---|
156 | |
---|