Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EmSaturation.hh
이 파일의 문서화 페이지로 가기
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: G4EmSaturation.hh 100346 2016-10-18 15:30:36Z gcosmo $
27 //
28 //
29 #ifndef G4EmSaturation_h
30 #define G4EmSaturation_h 1
31 
32 // -------------------------------------------------------------
33 //
34 // GEANT4 Class header file
35 //
36 //
37 // File name: G4EmSaturation
38 //
39 // Author: Vladimir Ivanchenko
40 //
41 // Creation date: 18.02.2008
42 //
43 // Modifications:
44 //
45 //
46 // Class Description:
47 // Compution on saturation effect, which reduce visible energy
48 // deposition at the step. Default implementation takes into
49 // account Birks effect. Birks coefficients for some materials
50 // from G4 database on materials are provided
51 //
52 // This class assumed to be G4ThreadLocal, because it is using
53 // cache value for material
54 //
55 // -------------------------------------------------------------
56 
57 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
58 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
59 
60 #include "globals.hh"
61 #include "G4Step.hh"
62 #include "G4ParticleDefinition.hh"
63 #include <vector>
64 
65 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
66 
67 class G4NistManager;
69 class G4Material;
70 
72 {
73 public:
74 
75  explicit G4EmSaturation(G4int verb);
76  virtual ~G4EmSaturation();
77 
78  // this method may be overwritten in the derived class
79  // which implements alternative algorithm of saturation
81  const G4MaterialCutsCouple*,
82  G4double length,
83  G4double edepTotal,
84  G4double edepNIEL = 0.0) const;
85 
86  // activate default model
88 
89  // find and Birks coefficient
91 
92  // dump coeffitients used in run time
93  void DumpBirksCoefficients();
94 
95  // dump G4 list
97 
98  // this method should not be overwitten
99  inline G4double VisibleEnergyDepositionAtAStep(const G4Step*) const;
100 
101  inline void SetVerbose(G4int);
102 
103 private:
104 
105  // hide assignment operator
106  G4EmSaturation & operator=(const G4EmSaturation &right) = delete;
107  G4EmSaturation(const G4EmSaturation&) = delete;
108 
110 
111  void InitialiseG4materials();
112 
116 
120 
122 
123  // list of materials used in run time
124  static std::vector<G4double> massFactors;
125  static std::vector<G4double> effCharges;
126 
127  // list of G4 materials
128  static std::vector<G4double> g4MatData;
129  static std::vector<G4String> g4MatNames;
130 };
131 
132 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
133 
135 {
136  verbose = val;
137 }
138 
139 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
140 
142  const G4Step* step) const
143 {
145  step->GetTrack()->GetMaterialCutsCouple(),
146  step->GetStepLength(),
147  step->GetTotalEnergyDeposit(),
149 }
150 
151 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
152 
153 #endif
154 
G4EmSaturation(G4int verb)
void DumpG4BirksCoefficients()
static G4int nMaterials
const G4ParticleDefinition * electron
const G4ParticleDefinition * proton
const G4ParticleDefinition * GetParticleDefinition() const
static std::vector< G4double > effCharges
virtual G4double VisibleEnergyDeposition(const G4ParticleDefinition *, const G4MaterialCutsCouple *, G4double length, G4double edepTotal, G4double edepNIEL=0.0) const
void InitialiseBirksCoefficient(const G4Material *)
static std::vector< G4double > massFactors
double G4double
Definition: G4Types.hh:76
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
G4double GetStepLength() const
G4Track * GetTrack() const
G4double GetTotalEnergyDeposit() const
Definition: G4Step.hh:76
void DumpBirksCoefficients()
G4double VisibleEnergyDepositionAtAStep(const G4Step *) const
static std::vector< G4String > g4MatNames
int G4int
Definition: G4Types.hh:78
static std::vector< G4double > g4MatData
G4NistManager * nist
virtual ~G4EmSaturation()
G4EmSaturation & operator=(const G4EmSaturation &right)=delete
void InitialiseG4Saturation()
G4double GetNonIonizingEnergyDeposit() const
void SetVerbose(G4int)
void InitialiseG4materials()
G4double FindG4BirksCoefficient(const G4Material *)