source: trunk/source/processes/electromagnetic/utils/include/G4VAtomDeexcitation.hh@ 1301

Last change on this file since 1301 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

  • Property svn:executable set to *
File size: 5.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// $Id: G4VAtomDeexcitation.hh,v 1.1 2009/07/09 11:42:52 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name: G4VAtomDeexcitation
35//
36// Author: Alfonso Mantero & Vladimir Ivanchenko
37//
38// Creation date: 30.06.2009
39//
40// Modifications:
41//
42// Class Description:
43//
44// Abstract interface to energy loss models
45
46// -------------------------------------------------------------------
47//
48
49#ifndef G4VAtomDeexcitation_h
50#define G4VAtomDeexcitation_h 1
51
52#include "globals.hh"
53#include <vector>
54
55class G4AtomicShell;
56class G4ParticleDefinition;
57class G4DynamicParticle;
58
59class G4VAtomDeexcitation {
60
61 G4VAtomDeexcitation(const G4String& pname = "");
62
63 virtual ~G4VAtomDeexcitation();
64
65 //initialization
66 virtual void PreparePhysicsTable(const G4ParticleDefinition&);
67 virtual void BuildPhysicsTable(const G4ParticleDefinition&);
68
69 // Get atomic shell by shell index, used by discrete processes
70 // (for example, photoelectric), when shell vacancy sampled by the model
71 virtual const G4AtomicChell* GetAtomicShell(G4int Z, G4int ShellIndex);
72
73 // selection of random shell for ionisation process
74 virtual const G4AtomicShell* SelectRandomShell(const G4DynamicParticle*,
75 G4int Z);
76
77 // generation of deexcitation for given atom and shell vacancy
78 virtual void GenerateParticles(std::vector<G4DynamicParticle*>*,
79 const G4AtomicChell*, G4int Z);
80
81 // access or compute PIXE cross section
82 virtual G4double GetPIXECrossSection (const G4ParticleDefinition*,
83 G4int Z, G4double kinE);
84
85 // calculate PIXE cross section from the models
86 virtual G4double CalculatePIXECrossSection(const G4ParticleDefinition*,
87 G4int Z, G4double kinE);
88
89 // Sampling of PIXE for ionisation processes
90 virtual void
91 AlongStepDeexcitation(std::vector<G4DynamicParticle*>* secVect,
92 const G4DynamicParticle* icidentParticle,
93 const G4MaterialCutsCouple*,
94 G4double trueStepLenght,
95 G4double eLoss);
96
97 // Check if deexcitation is active for a given geometry volume
98 G4bool CheckActiveRegion(G4int coupleIndex);
99
100 // Access flags defined in the CheckActiveVolume method
101 inline G4bool IsFluorescenceActive() const;
102 inline G4bool IsPIXECrossSectionActive() const;
103
104 // PIXE model name
105 inline void SetPIXECrossSectionModel(const G4String&);
106 inline const G4String& PIXECrossSectionModel() const;
107
108 // Activation of deexcitation per detector region
109 void SetFluorescenceActiveRegion(const G4Region* region = 0);
110 void SetAugerActiveRegion(const G4Region* region = 0);
111 void SetPIXECrossSectionActiveRegion(const G4Region* region = 0);
112
113 void SetFluorescenceActiveRegion(const G4String& rname = "");
114 void SetAugerActiveRegion(const G4String& rname = "");
115 void SetPIXECrossSectionActiveRegion(const G4String& rname = "");
116
117private:
118
119 // copy constructor and hide assignment operator
120 G4VAtomDeexcitation(G4VAtomDeexcitation &);
121 G4VAtomDeexcitation & operator=(const G4VAtomDeexcitation &right);
122
123 G4String namePIXE;
124 G4bool isFluoActive;
125 G4bool isPIXEActive;
126
127};
128
129inline G4bool IsFluorescenceActive() const
130{
131 return isFluoActive;
132}
133
134inline G4bool IsPIXECrossSectionActive() const
135{
136 return isPIXEActive;
137}
138
139inline
140void G4VAtomDeexcitation::SetPIXECrossSectionModel(const G4String& n)
141{
142 namePIXE = n;
143}
144
145inline
146const G4String& G4VAtomDeexcitation::PIXECrossSectionModel() const
147{
148 return namePIXE;
149}
150
151#endif
152
Note: See TracBrowser for help on using the repository browser.